public class ClassMethod extends java.lang.Object implements WritableEntry
Modifier and Type | Field and Description |
---|---|
private int |
accessFlags |
private java.util.List<Attribute> |
attributes |
private ClassFile |
classFile |
private CodeAttribute |
codeAttribute |
private boolean |
constructor |
private java.lang.String |
descriptor |
private short |
descriptorIndex
the index of the descriptor into the const pool
|
private ExceptionsAttribute |
exceptionsAttribute |
private java.lang.String |
name |
private short |
nameIndex
The index of the name into the const pool
|
private java.lang.String[] |
parameters |
private java.lang.String |
returnType |
private AnnotationsAttribute |
runtimeVisibleAnnotationsAttribute |
private ParameterAnnotationsAttribute |
runtimeVisibleParameterAnnotationsAttribute |
private java.lang.String |
signature |
private SignatureAttribute |
signatureAttribute |
Constructor and Description |
---|
ClassMethod(java.lang.String name,
java.lang.String returnType,
java.lang.String[] parameters,
int accessFlags,
ClassFile classFile) |
Modifier and Type | Method and Description |
---|---|
void |
addCheckedExceptions(java.lang.Class<? extends java.lang.Exception>... exceptions) |
void |
addCheckedExceptions(java.lang.String... exceptions) |
boolean |
equals(java.lang.Object obj) |
int |
getAccessFlags() |
ClassFile |
getClassFile() |
CodeAttribute |
getCodeAttribute() |
java.lang.String |
getDescriptor() |
java.lang.String |
getName() |
java.lang.String[] |
getParameters() |
java.lang.String |
getReturnType() |
AnnotationsAttribute |
getRuntimeVisibleAnnotationsAttribute() |
ParameterAnnotationsAttribute |
getRuntimeVisibleParameterAnnotationsAttribute() |
java.lang.String |
getSignature() |
int |
hashCode() |
boolean |
isConstructor() |
boolean |
isStatic() |
void |
setSignature(java.lang.String signature) |
java.lang.String |
toString() |
void |
write(ByteArrayDataOutputStream stream) |
private final java.lang.String returnType
private final java.lang.String[] parameters
private final java.lang.String name
private final java.lang.String descriptor
private final int accessFlags
private final ClassFile classFile
private final short nameIndex
private final short descriptorIndex
private final java.util.List<Attribute> attributes
private final CodeAttribute codeAttribute
private final ExceptionsAttribute exceptionsAttribute
private final boolean constructor
private final AnnotationsAttribute runtimeVisibleAnnotationsAttribute
private final ParameterAnnotationsAttribute runtimeVisibleParameterAnnotationsAttribute
private SignatureAttribute signatureAttribute
private java.lang.String signature
ClassMethod(java.lang.String name, java.lang.String returnType, java.lang.String[] parameters, int accessFlags, ClassFile classFile)
public void addCheckedExceptions(java.lang.Class<? extends java.lang.Exception>... exceptions)
public void addCheckedExceptions(java.lang.String... exceptions)
public void write(ByteArrayDataOutputStream stream) throws java.io.IOException
write
in interface WritableEntry
java.io.IOException
public CodeAttribute getCodeAttribute()
public int getAccessFlags()
public java.lang.String getReturnType()
public java.lang.String[] getParameters()
public java.lang.String getName()
public java.lang.String getDescriptor()
public boolean isConstructor()
public boolean isStatic()
public ClassFile getClassFile()
public AnnotationsAttribute getRuntimeVisibleAnnotationsAttribute()
public ParameterAnnotationsAttribute getRuntimeVisibleParameterAnnotationsAttribute()
public java.lang.String getSignature()
public void setSignature(java.lang.String signature)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object