Package org.jboss.classfilewriter
Class ClassMethod
- java.lang.Object
-
- org.jboss.classfilewriter.ClassMethod
-
- All Implemented Interfaces:
WritableEntry
public class ClassMethod extends Object implements WritableEntry
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCheckedExceptions(Class<? extends Exception>... exceptions)voidaddCheckedExceptions(String... exceptions)booleanequals(Object obj)intgetAccessFlags()ClassFilegetClassFile()CodeAttributegetCodeAttribute()StringgetDescriptor()StringgetName()String[]getParameters()StringgetReturnType()AnnotationsAttributegetRuntimeVisibleAnnotationsAttribute()ParameterAnnotationsAttributegetRuntimeVisibleParameterAnnotationsAttribute()StringgetSignature()inthashCode()booleanisConstructor()booleanisStatic()voidsetSignature(String signature)StringtoString()voidwrite(ByteArrayDataOutputStream stream)
-
-
-
Method Detail
-
addCheckedExceptions
public void addCheckedExceptions(String... exceptions)
-
write
public void write(ByteArrayDataOutputStream stream) throws IOException
- Specified by:
writein interfaceWritableEntry- Throws:
IOException
-
getCodeAttribute
public CodeAttribute getCodeAttribute()
-
getAccessFlags
public int getAccessFlags()
-
getReturnType
public String getReturnType()
-
getParameters
public String[] getParameters()
-
getName
public String getName()
-
getDescriptor
public String getDescriptor()
-
isConstructor
public boolean isConstructor()
-
isStatic
public boolean isStatic()
-
getClassFile
public ClassFile getClassFile()
-
getRuntimeVisibleAnnotationsAttribute
public AnnotationsAttribute getRuntimeVisibleAnnotationsAttribute()
-
getRuntimeVisibleParameterAnnotationsAttribute
public ParameterAnnotationsAttribute getRuntimeVisibleParameterAnnotationsAttribute()
-
getSignature
public String getSignature()
-
setSignature
public void setSignature(String signature)
-
-