ist.palcom.assembler
Class Method

java.lang.Object
  extended by ist.palcom.assembler.Literal
      extended by ist.palcom.assembler.Method
All Implemented Interfaces:
ISerializableInvokable, ISerializableItem, ISerializableLiteral, ISerializableMethod

public class Method
extends Literal
implements ISerializableMethod


Field Summary
 
Fields inherited from interface ist.palcom.bytecode.ISerializableMethod
MARKER
 
Constructor Summary
Method(java.lang.String signature, int number_of_locals, int maximum_expression_stack_size, ISerializableLiteral[] literals, byte[] bytecodes, ISerializableMetaInfo[] meta_info)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 byte[] getBytecodes()
           
 ISerializableLiteral[] getLiterals()
           
 int getMaximumExpressionStackSize()
           
 ISerializableMetaInfo[] getMetaInfo()
           
 int getNumberOfLocals()
           
 java.lang.String getSignature()
           
static Method parse(Tokenizer input, java.lang.String languagePrefix)
           
static Method parseBody(Tokenizer input, java.lang.String languagePrefix)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Method

public Method(java.lang.String signature,
              int number_of_locals,
              int maximum_expression_stack_size,
              ISerializableLiteral[] literals,
              byte[] bytecodes,
              ISerializableMetaInfo[] meta_info)
Method Detail

parse

public static Method parse(Tokenizer input,
                           java.lang.String languagePrefix)
                    throws java.lang.Exception
Throws:
java.lang.Exception

parseBody

public static Method parseBody(Tokenizer input,
                               java.lang.String languagePrefix)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getSignature

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

getNumberOfLocals

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

getMaximumExpressionStackSize

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

getLiterals

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

getBytecodes

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

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

getMetaInfo

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