|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.biojava.utils.bytecode.GeneratedCodeMethod
public final class GeneratedCodeMethod
A method that will be generated.
These are instantiated by factory methods on GeneratedCodeClass, and
can not be instantiated directly.
| Method Summary | |
|---|---|
void |
addThrownException(CodeClass cc)
Adds a feature to the ThrownException attribute of the GeneratedCodeMethod object |
CodeClass |
getContainingClass()
The class that contains this method |
java.lang.String |
getDescriptor()
A human-readable description of the class |
java.lang.String |
getFullName()
The fully qualified name for this class |
int |
getModifiers()
Get the modifiers, such as PUBLIC, ABSTRACT and so on |
java.lang.String |
getName()
The name of the method. |
CodeClass |
getParameterType(int pos)
Get the type of the parameter at a given position |
CodeClass |
getReturnType()
Get the return type |
LocalVariable |
getThis()
Gets the This attribute of the GeneratedCodeMethod object |
java.util.Set |
getThrownExceptions()
Gets the ThrownExceptions attribute of the GeneratedCodeMethod object |
LocalVariable |
getVariable(int pos)
Gets the Variable attribute of the GeneratedCodeMethod object. |
LocalVariable |
getVariable(java.lang.String argName)
Gets the Variable attribute of the GenerateCodeMethod object by name. |
int |
numParameters()
Get the number of parameters taken by this method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getName()
CodeMethod
getName in interface CodeMethodpublic java.lang.String getFullName()
CodeMethod
getFullName in interface CodeMethodpublic CodeClass getContainingClass()
CodeMethod
getContainingClass in interface CodeMethodpublic java.lang.String getDescriptor()
CodeMethod
getDescriptor in interface CodeMethodpublic int getModifiers()
CodeMethod
getModifiers in interface CodeMethodpublic CodeClass getReturnType()
CodeMethod
getReturnType in interface CodeMethodpublic int numParameters()
CodeMethod
numParameters in interface CodeMethodpublic CodeClass getParameterType(int pos)
CodeMethod
getParameterType in interface CodeMethodpos - the position to fetch the parameter type for
public LocalVariable getVariable(int pos)
There is one local variable for each of the arguments of the method, indexed from 0.
pos - the index of the local variable
public LocalVariable getVariable(java.lang.String argName)
throws java.util.NoSuchElementException
All methods have a variable under the string "this". If it was constructed with a String [] naming the args, the locals for each local can be retrieved by name.
argName - a String naming the local
java.util.NoSuchElementException - if there is no local with that namepublic LocalVariable getThis()
public java.util.Set getThrownExceptions()
public void addThrownException(CodeClass cc)
cc - The feature to be added to the ThrownException attribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||