Package org.biojava.utils.bytecode
Interface CodeMethod
- 
- All Known Implementing Classes:
- GeneratedCodeMethod
 
 public interface CodeMethod Wrap up details about a method in a Java class file- Author:
- Thomas Down, Matthew Pocock
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description CodeClassgetContainingClass()The class that contains this methodStringgetDescriptor()A human-readable description of the classStringgetFullName()The fully qualified name for this classintgetModifiers()Get the modifiers, such as PUBLIC, ABSTRACT and so onStringgetName()The name of the method.CodeClassgetParameterType(int pos)Get the type of the parameter at a given positionCodeClassgetReturnType()Get the return typeintnumParameters()Get the number of parameters taken by this method
 
- 
- 
- 
Method Detail- 
getContainingClassCodeClass getContainingClass() The class that contains this method- Returns:
- the containing class
 
 - 
getFullNameString getFullName() The fully qualified name for this class- Returns:
- the full name
 
 - 
getDescriptorString getDescriptor() A human-readable description of the class- Returns:
- the class description
 
 - 
getModifiersint getModifiers() Get the modifiers, such as PUBLIC, ABSTRACT and so on- Returns:
- the class modifiers
 
 - 
getReturnTypeCodeClass getReturnType() Get the return type- Returns:
- the return type
 
 - 
numParametersint numParameters() Get the number of parameters taken by this method- Returns:
- the number of parameters
 
 - 
getParameterTypeCodeClass getParameterType(int pos) Get the type of the parameter at a given position- Parameters:
- pos- the position to fetch the parameter type for
- Returns:
- the type of the parameter at that position
 
 
- 
 
-