jas
Class Method
java.lang.Object
jas.Method
public class Method
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Method
public Method(short macc,
AsciiCP name,
AsciiCP desc)
- Parameters:
macc
- method access permissions. It is a combination
of the constants provided from RuntimeConstantsname
- CP item representing name of method.desc
- CP item representing descnature for object
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.