public abstract class NodeHelper
extends java.lang.Object
| Constructor and Description |
|---|
NodeHelper() |
| Modifier and Type | Method and Description |
|---|---|
abstract FieldNode |
createField(int access,
java.lang.String name,
java.lang.String desc,
java.lang.String[] signature,
java.lang.Object initialValue) |
abstract MethodNode |
createReturnConstantMethod(java.lang.String methodName,
int value)
Creates a Method that always returns the given value.
|
static NodeHelper |
getInstance() |
int |
getLineNumberOfMethod(MethodNode mn)
Returns the line number of the first LineNumberNode in the instructions
of the given MethodNode, or -1, if none found.
|
public static NodeHelper getInstance()
public int getLineNumberOfMethod(MethodNode mn)
mn - The MethodNode to look intopublic abstract MethodNode createReturnConstantMethod(java.lang.String methodName,
int value)
methodName - value - public abstract FieldNode createField(int access,
java.lang.String name,
java.lang.String desc,
java.lang.String[] signature,
java.lang.Object initialValue)