Package org.jboss.classfilewriter
Class ClassMethod
java.lang.Object
org.jboss.classfilewriter.ClassMethod
- All Implemented Interfaces:
WritableEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final ClassFileprivate final CodeAttributeprivate final booleanprivate final Stringprivate final intthe index of the descriptor into the const poolprivate final ExceptionsAttributeprivate final Stringprivate final intThe index of the name into the const poolprivate final String[]private final Stringprivate final AnnotationsAttributeprivate final ParameterAnnotationsAttributeprivate Stringprivate SignatureAttribute -
Constructor Summary
ConstructorsConstructorDescriptionClassMethod(String name, String returnType, String[] parameters, int accessFlags, ClassFile classFile) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCheckedExceptions(Class<? extends Exception>... exceptions) voidaddCheckedExceptions(String... exceptions) booleanintgetName()String[]inthashCode()booleanbooleanisStatic()voidsetSignature(String signature) toString()voidwrite(ByteArrayDataOutputStream stream)
-
Field Details
-
returnType
-
parameters
-
name
-
descriptor
-
accessFlags
private final int accessFlags -
classFile
-
nameIndex
private final int nameIndexThe index of the name into the const pool -
descriptorIndex
private final int descriptorIndexthe index of the descriptor into the const pool -
attributes
-
codeAttribute
-
exceptionsAttribute
-
constructor
private final boolean constructor -
runtimeVisibleAnnotationsAttribute
-
runtimeVisibleParameterAnnotationsAttribute
-
signatureAttribute
-
signature
-
-
Constructor Details
-
ClassMethod
-
-
Method Details
-
addCheckedExceptions
-
addCheckedExceptions
-
write
- Specified by:
writein interfaceWritableEntry- Throws:
IOException
-
getCodeAttribute
-
getAccessFlags
public int getAccessFlags() -
getReturnType
-
getParameters
-
getName
-
getDescriptor
-
isConstructor
public boolean isConstructor() -
isStatic
public boolean isStatic() -
getClassFile
-
getRuntimeVisibleAnnotationsAttribute
-
getRuntimeVisibleParameterAnnotationsAttribute
-
getSignature
-
setSignature
-
hashCode
public int hashCode() -
equals
-
toString
-