public interface Bytecode
ResolvedJavaMethod that allows
for different properties than those returned by ResolvedJavaMethod. Since the bytecode
accessed directly from ResolvedJavaMethod may have been subject to bytecode
instrumentation and VM rewriting, this indirection can be used to enable access to the original
bytecode of a method (i.e., as defined in a class file).| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
appendLocation(StringBuilder sb,
Bytecode bytecode,
int bci) |
StackTraceElement |
asStackTraceElement(int bci) |
byte[] |
getCode() |
int |
getCodeSize() |
ConstantPool |
getConstantPool() |
ExceptionHandler[] |
getExceptionHandlers() |
LineNumberTable |
getLineNumberTable() |
LocalVariableTable |
getLocalVariableTable() |
int |
getMaxLocals() |
int |
getMaxStackSize() |
ResolvedJavaMethod |
getMethod()
Gets the method this object supplies bytecode for.
|
BytecodeProvider |
getOrigin()
Gets the
BytecodeProvider from which this object was acquired. |
static String |
toLocation(Bytecode bytecode,
int bci) |
ResolvedJavaMethod getMethod()
byte[] getCode()
int getCodeSize()
int getMaxStackSize()
int getMaxLocals()
ConstantPool getConstantPool()
LineNumberTable getLineNumberTable()
LocalVariableTable getLocalVariableTable()
StackTraceElement asStackTraceElement(int bci)
ExceptionHandler[] getExceptionHandlers()
BytecodeProvider getOrigin()
BytecodeProvider from which this object was acquired.static StringBuilder appendLocation(StringBuilder sb, Bytecode bytecode, int bci)