public abstract class NodeHelper extends Object
Constructor and Description |
---|
NodeHelper() |
Modifier and Type | Method and Description |
---|---|
abstract org.objectweb.asm.tree.FieldNode |
createField(int access,
String name,
String desc,
String[] signature,
Object initialValue) |
abstract org.objectweb.asm.tree.MethodNode |
createReturnConstantMethod(String methodName,
int value)
Creates a Method that always returns the given value.
|
static NodeHelper |
getInstance() |
int |
getLineNumberOfMethod(org.objectweb.asm.tree.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(org.objectweb.asm.tree.MethodNode mn)
mn
- The MethodNode to look intopublic abstract org.objectweb.asm.tree.MethodNode createReturnConstantMethod(String methodName, int value)
methodName
- value
- Copyright © 2015. All Rights Reserved.