Package org.openjdk.jmc.common.util
Class MCMethod
- java.lang.Object
- 
- org.openjdk.jmc.common.util.MCMethod
 
- 
- All Implemented Interfaces:
- IMCMethod
 
 public class MCMethod extends Object implements IMCMethod Base implementation of theIMCMethodinterface.Methods in this class should not be overridden. If you want to override anything, then implement the IMCMethodinterface instead and optionally delegate calls to this class.Please do not add utility methods to this class. Use the helper class MethodToolkitif you want to do common utility stuff.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetFormalDescriptor()Returns the formal descriptor.StringgetMethodName()Returns the method name not including parameters.IntegergetModifier()Returns the modifier used in the Java class file.IMCTypegetType()Returns the class this method is declared in.inthashCode()BooleanisHidden()Whether this method is hidden.BooleanisNative()Whether this method is native.
 
- 
- 
- 
Constructor Detail- 
MCMethodpublic MCMethod(IMCType type, String methodName, String formalDescriptor, Integer modifier, Boolean isNative) Create a new instance.- Parameters:
- type- the class that this method is declared in
- methodName- the method name
- formalDescriptor- the formal descriptor, see- IMCMethod.getFormalDescriptor()
- modifier- method modifier bit pattern, see- IMCMethod.getModifier()
- isNative- whether the method is native, see- IMCMethod.isNative()
 
 
- 
 - 
Method Detail- 
getTypepublic final IMCType getType() Description copied from interface:IMCMethodReturns the class this method is declared in.
 - 
getMethodNamepublic final String getMethodName() Description copied from interface:IMCMethodReturns the method name not including parameters.An example is "mymethod". If the method is native the format is undefined. - Specified by:
- getMethodNamein interface- IMCMethod
- Returns:
- the name of this method, or nullif unavailable
 
 - 
getFormalDescriptorpublic final String getFormalDescriptor() Description copied from interface:IMCMethodReturns 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:
- getFormalDescriptorin interface- IMCMethod
- Returns:
- the formal method descriptor, or nullif unavailable
 
 - 
getModifierpublic final Integer getModifier() Description copied from interface:IMCMethodReturns the modifier used in the Java class file.Examples of modifiers are "protected", "public", etc. See Modifierfor more information about the bit pattern and for methods that can be used to decode it.- Specified by:
- getModifierin interface- IMCMethod
- Returns:
- the modifier used in the class file, or nullif not available
 
 - 
isNativepublic final Boolean isNative() Description copied from interface:IMCMethodWhether this method is native.
 - 
isHiddenpublic final Boolean isHidden() Description copied from interface:IMCMethodWhether this method is hidden.
 
- 
 
-