jas
Class Method

java.lang.Object
  extended by jas.Method

public class Method
extends Object


Constructor Summary
Method(short macc, AsciiCP name, AsciiCP desc)
           
 
Method Summary
 Annotation addAnnotation(boolean visible, String clsname, int paramnum)
           
 Annotation addAnnotation(boolean visible, String clsname)
           
 Annotation addAnnotation()
           
 void addGenericAttr(GenericAttr g)
          Add a generic attribute to the method.
 void setCode(CodeAttr cd, ExceptAttr ex)
           
 void setDeprecated(DeprecatedAttr depr)
           
 void setSignature(SignatureAttr sig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

Method

public Method(short macc,
              AsciiCP name,
              AsciiCP desc)
Parameters:
macc - method access permissions. It is a combination of the constants provided from RuntimeConstants
name - CP item representing name of method.
desc - CP item representing descnature for object
Method Detail

setCode

public void setCode(CodeAttr cd,
                    ExceptAttr ex)

setSignature

public void setSignature(SignatureAttr sig)

setDeprecated

public void setDeprecated(DeprecatedAttr depr)

addGenericAttr

public void addGenericAttr(GenericAttr g)
Add a generic attribute to the method. A generic attribute contains a stream of uninterpreted bytes which is ignored by the VM (as long as its name doesn't conflict with other names for attributes that are understood by the VM)


addAnnotation

public Annotation addAnnotation(boolean visible,
                                String clsname)

addAnnotation

public Annotation addAnnotation(boolean visible,
                                String clsname,
                                int paramnum)
                         throws jasError
Throws:
jasError

addAnnotation

public Annotation addAnnotation()
                         throws jasError
Throws:
jasError


Copyright © 2006 Jonathan Meyer, USA All rights reserved.