ist.palcom.st.ast
Class ASTMethod

java.lang.Object
  extended by ist.palcom.st.ast.ASTInvokable
      extended by ist.palcom.st.ast.ASTMethod
All Implemented Interfaces:
ISerializableInvokable, ISerializableItem, ISerializableLiteral, ISerializableMethod

public class ASTMethod
extends ASTInvokable
implements ISerializableMethod


Field Summary
 ASTAnnotation annotation
           
 ASTBlock block
           
 ASTPattern pattern
           
 
Fields inherited from interface ist.palcom.bytecode.ISerializableMethod
MARKER
 
Constructor Summary
ASTMethod(ASTPattern pattern)
           
ASTMethod(ASTPattern pattern, ASTBlock block, ASTAnnotation annotation)
           
 
Method Summary
 void compile(int fileNameNumber)
           
 ASTAnnotation getAnnotation()
           
 byte[] getBytecodes()
           
 ISerializableLiteral[] getLiterals()
           
 int getMaximumExpressionStackSize()
           
 ISerializableMetaInfo[] getMetaInfo()
           
 int getNumberOfLocals()
           
 java.lang.String getSignature()
           
 void inlineBlocks()
           
 void setFields(java.util.List fields, ASTBlock context)
           
 
Methods inherited from class ist.palcom.st.ast.ASTInvokable
is_primitive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern

public ASTPattern pattern

block

public ASTBlock block

annotation

public ASTAnnotation annotation
Constructor Detail

ASTMethod

public ASTMethod(ASTPattern pattern,
                 ASTBlock block,
                 ASTAnnotation annotation)

ASTMethod

public ASTMethod(ASTPattern pattern)
Method Detail

compile

public void compile(int fileNameNumber)
Specified by:
compile in class ASTInvokable

inlineBlocks

public void inlineBlocks()
Specified by:
inlineBlocks in class ASTInvokable

setFields

public void setFields(java.util.List fields,
                      ASTBlock context)
Specified by:
setFields in class ASTInvokable

getBytecodes

public byte[] getBytecodes()
Specified by:
getBytecodes in interface ISerializableMethod

getSignature

public java.lang.String getSignature()
Specified by:
getSignature in interface ISerializableInvokable
Overrides:
getSignature in class ASTInvokable

getLiterals

public ISerializableLiteral[] getLiterals()
Specified by:
getLiterals in interface ISerializableMethod

getNumberOfLocals

public int getNumberOfLocals()
Specified by:
getNumberOfLocals in interface ISerializableMethod

getMaximumExpressionStackSize

public int getMaximumExpressionStackSize()
Specified by:
getMaximumExpressionStackSize in interface ISerializableMethod

getAnnotation

public ASTAnnotation getAnnotation()

getMetaInfo

public ISerializableMetaInfo[] getMetaInfo()
Specified by:
getMetaInfo in interface ISerializableMethod