public class Method extends Metadata
Modifier and Type | Method and Description |
---|---|
void |
dumpReplayData(java.io.PrintStream out) |
java.lang.String |
externalNameAndSignature()
Returns name and signature in external form for debugging
purposes
|
long |
getAccessFlags() |
AccessFlags |
getAccessFlagsObj() |
long |
getBackedgeCount() |
byte[] |
getByteCode() |
byte |
getBytecodeByteArg(int bci) |
int |
getBytecodeIntArg(int bci)
Fetches a 32-bit big-endian ("Java ordered") value from the
bytecode stream
|
int |
getBytecodeOrBPAt(int bci)
Get a bytecode or breakpoint at the given bci
|
short |
getBytecodeShortArg(int bci)
Fetches a 16-bit big-endian ("Java ordered") value from the
bytecode stream
|
CheckedExceptionElement[] |
getCheckedExceptions()
Should only be called if table is present
|
long |
getCodeSize() |
ConstantPool |
getConstants() |
ConstMethod |
getConstMethod() |
ExceptionTableElement[] |
getExceptionTable() |
Symbol |
getGenericSignature() |
long |
getGenericSignatureIndex() |
long |
getInvocationCount() |
int |
getLineNumberFromBCI(int bci) |
LineNumberTableElement[] |
getLineNumberTable() |
Symbol |
getLocalVariableName(int bci,
int slot) |
LocalVariableTableElement[] |
getLocalVariableTable()
Should only be called if table is present
|
OopMapCacheEntry |
getMaskFor(int bci) |
long |
getMaxLocals() |
long |
getMaxStack() |
MethodCounters |
getMethodCounters() |
MethodData |
getMethodData() |
InstanceKlass |
getMethodHolder() |
long |
getMethodSize()
WARNING: this is in words, not useful in this system; use getObjectSize() instead
|
Symbol |
getName() |
long |
getNameIndex() |
int |
getNativeIntArg(int bci)
Fetches a 32-bit native ordered value from the
bytecode stream
|
NMethod |
getNativeMethod() |
short |
getNativeShortArg(int bci)
Fetches a 16-bit native ordered value from the
bytecode stream
|
int |
getOrigBytecodeAt(int bci)
Fetch the original non-breakpoint bytecode at the specified
bci.
|
Symbol |
getSignature() |
long |
getSignatureIndex() |
long |
getSize() |
long |
getSizeOfParameters() |
long |
getVtableIndex() |
boolean |
hasCheckedExceptions() |
boolean |
hasExceptionTable() |
boolean |
hasLineNumberTable() |
boolean |
hasLocalVariableTable() |
int |
interpreterInvocationCount() |
int |
interpreterThrowoutCount() |
boolean |
isAbstract() |
boolean |
isBridge() |
boolean |
isConstructor() |
boolean |
isFinal() |
boolean |
isMethod() |
boolean |
isNative() |
boolean |
isObsolete() |
boolean |
isPackagePrivate() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isStaticInitializer() |
boolean |
isStrict() |
boolean |
isSynchronized() |
boolean |
isSynthetic() |
boolean |
isVarArgs() |
void |
iterateFields(MetadataVisitor visitor) |
void |
printValueOn(java.io.PrintStream tty) |
instantiateWrapperFor, iterate
equals, getAddress, hashCode, toString
public Method(Address addr)
public boolean isMethod()
public ConstMethod getConstMethod()
public ConstantPool getConstants()
public MethodData getMethodData()
public MethodCounters getMethodCounters()
public long getMethodSize()
public long getMaxStack()
public long getMaxLocals()
public long getSizeOfParameters()
public long getNameIndex()
public long getSignatureIndex()
public long getGenericSignatureIndex()
public long getAccessFlags()
public long getCodeSize()
public long getVtableIndex()
public long getInvocationCount()
public long getBackedgeCount()
public NMethod getNativeMethod()
public AccessFlags getAccessFlagsObj()
public int getBytecodeOrBPAt(int bci)
public int getOrigBytecodeAt(int bci)
public byte getBytecodeByteArg(int bci)
public short getBytecodeShortArg(int bci)
public short getNativeShortArg(int bci)
public int getBytecodeIntArg(int bci)
public int getNativeIntArg(int bci)
public byte[] getByteCode()
public Symbol getName()
public Symbol getSignature()
public Symbol getGenericSignature()
public InstanceKlass getMethodHolder()
public boolean isPublic()
public boolean isPrivate()
public boolean isProtected()
public boolean isPackagePrivate()
public boolean isStatic()
public boolean isFinal()
public boolean isSynchronized()
public boolean isBridge()
public boolean isVarArgs()
public boolean isNative()
public boolean isAbstract()
public boolean isStrict()
public boolean isSynthetic()
public boolean isConstructor()
public boolean isStaticInitializer()
public boolean isObsolete()
public OopMapCacheEntry getMaskFor(int bci)
public long getSize()
public void printValueOn(java.io.PrintStream tty)
printValueOn
in class Metadata
public void iterateFields(MetadataVisitor visitor)
public boolean hasLineNumberTable()
public int getLineNumberFromBCI(int bci)
public LineNumberTableElement[] getLineNumberTable()
public boolean hasLocalVariableTable()
public LocalVariableTableElement[] getLocalVariableTable()
public Symbol getLocalVariableName(int bci, int slot)
public boolean hasExceptionTable()
public ExceptionTableElement[] getExceptionTable()
public boolean hasCheckedExceptions()
public CheckedExceptionElement[] getCheckedExceptions()
public java.lang.String externalNameAndSignature()
public void dumpReplayData(java.io.PrintStream out)
dumpReplayData
in class Metadata
public int interpreterThrowoutCount()
public int interpreterInvocationCount()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.