Class StructTypes.JfrMethod
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v1.StructTypes.JfrMethod
-
- All Implemented Interfaces:
IMCMethod
- Enclosing class:
- StructTypes
static class StructTypes.JfrMethod extends java.lang.Object implements IMCMethod
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object
descriptor
java.lang.Object
hidden
java.lang.Object
modifiers
java.lang.Object
name
java.lang.Object
type
-
Constructor Summary
Constructors Constructor Description JfrMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getFormalDescriptor()
Returns the formal descriptor.java.lang.String
getMethodName()
Returns the method name not including parameters.java.lang.Integer
getModifier()
Returns the modifier used in the Java class file.IMCType
getType()
Returns the class this method is declared in.int
hashCode()
java.lang.Boolean
isNative()
Whether this method is native.
-
-
-
Method Detail
-
getType
public IMCType getType()
Description copied from interface:IMCMethod
Returns the class this method is declared in.
-
getMethodName
public java.lang.String getMethodName()
Description copied from interface:IMCMethod
Returns the method name not including parameters.An example is "mymethod". If the method is native the format is undefined.
- Specified by:
getMethodName
in interfaceIMCMethod
- Returns:
- the name of this method, or
null
if unavailable
-
getFormalDescriptor
public java.lang.String getFormalDescriptor()
Description copied from interface:IMCMethod
Returns the formal descriptor.For example, the method descriptor for the method
Object mymethod(int i, double d, Thread t)
is(IDLjava/lang/Thread;)Ljava/lang/Object;
- Specified by:
getFormalDescriptor
in interfaceIMCMethod
- Returns:
- the formal method descriptor, or
null
if unavailable
-
getModifier
public java.lang.Integer getModifier()
Description copied from interface:IMCMethod
Returns the modifier used in the Java class file.Examples of modifiers are "protected", "public", etc.
See
Modifier
for more information about the bit pattern and for methods that can be used to decode it.- Specified by:
getModifier
in interfaceIMCMethod
- Returns:
- the modifier used in the class file, or
null
if not available
-
isNative
public java.lang.Boolean isNative()
Description copied from interface:IMCMethod
Whether this method is native.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-