| Modifier and Type | Field and Description |
|---|---|
| private boolean | hasBody
True if this method has a body. |
| private int | maxLineNum
The maximum line number for the body of this method, or 0 if unknown. |
| private int | minLineNum
The minimum line number for the body of this method, or 0 if unknown. |
| pack-priv AnnotationInfo[][] | parameterAnnotationInfo
Unaligned parameter annotations. |
| private transient MethodParameterInfo[] | parameterInfo
Aligned method parameter info. |
| private int[] | parameterModifiers
Unaligned parameter modifiers. |
| private String[] | parameterNames
Unaligned parameter names. |
| private String[] | |
| private transient ClassInfoList | |
| private transient List | typeAnnotationDecorators
The type annotation decorators for the |
| private transient MethodTypeSignature | typeDescriptor
The parsed type descriptor. |
| private transient MethodTypeSignature | typeSignature
The parsed type signature (or null if none). |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | MethodInfo(final String
The name of the enclosing class. definingClassName, final String The name of the method. methodName, final AnnotationInfoList The list of methodAnnotationInfo, final int AnnotationInfo objects for any annotations on the method.The method modifier bits. modifiers, final String The internal method type descriptor string. typeDescriptorStr, final String The internal method type signature string, or null if none. typeSignatureStr, final String[] The parameter names. parameterNames, final int[] The parameter modifiers. parameterModifiers, final AnnotationInfo[][] The parameter parameterAnnotationInfo, final boolean AnnotationInfo.True if this method has a body. hasBody, final int The minimum line number for the body of this method, or 0 if unknown. minLineNum, final int The maximum line number for the body of this method, or 0 if unknown. maxLineNum, final List<Classfile.Decorator lambdas for method type annotations. methodTypeAnnotationDecorators,exceptions thrown by this method. thrownExceptionNames)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the result of the comparison.the other other)MethodInfo to compare.Implements java. Sort in order of class name, method name, then type descriptor. |
| public boolean | Returns: true if equalthe object to compare for equality obj)Overrides java. Test class name, method name and type descriptor for equals(). |
| protected void | findReferencedClassInfo(final Map<String, ClassInfo>
the map from class name to classNameToClassInfo, final Set<ClassInfo> ClassInfo.the referenced class info refdClassInfo, final LogNode the log log)Overrides io. Get |
| public int | Returns: The line number of the last non-empty line in the body of this method, or 0 if unknown.The line number of the last non-empty line in the body of this method, or 0 if unknown. |
| public int | Returns: The line number of the first non-empty line in the body of this method, or 0 if unknown.The line number of the first non-empty line in the body of this method, or 0 if unknown. |
| public String | Returns: The modifiers for the method, as a String.Implements abstract io. Get the method modifiers as a String, e.g. "public static final". |
| public String | Returns: The name of the method.Overrides io. Implements io. Returns the name of the method. |
| public MethodParameterInfo[] | Returns: TheMethodParameterInfo objects for the method parameters, one per parameter.Get the available information on method parameters. |
| public String[] | Returns: The exceptions thrown by the method, as an array (the array may be empty).Returns the exceptions thrown by the method, as an array. |
| public ClassInfoList | Returns: The list of exceptions thrown by the method, as aClassInfoList (the list may be empty).Returns the list of exceptions thrown by the method, as a |
| public MethodTypeSignature | Returns: The parsed type descriptor for the method.Implements abstract io. Returns the parsed type descriptor for the method, which will not include type parameters. |
| public MethodTypeSignature | Returns: The parsed type signature for the method, or null if not available.Implements abstract io. Returns the parsed type signature for the method, possibly including type parameters. |
| public MethodTypeSignature | Returns: The parsed type signature for the method, or if not available, the parsed type descriptor for the method.Implements abstract io. Returns the parsed type signature for the method, possibly including type parameters. |
| pack-priv void | handleRepeatableAnnotations(final Set<String>
the names of all repeatable annotations allRepeatableAnnotationNames)Handle |
| public boolean | Returns: True if this method has a body.Returns true if this method has a body (i.e. has an implementation in the containing class). |
| public int | Returns: the hashcodeOverrides java. Use hashcode of class name, method name and type descriptor. |
| public boolean | Returns: true if this method has a parameter with the annotation.The method parameter annotation. annotation)Check if this method has a parameter with the annotation. |
| public boolean | Returns: true if this method has a parameter with the named annotation.The name of a method parameter annotation. annotationName)Check if this method has a parameter with the named annotation. |
| public boolean | |
| public boolean | |
| public boolean | Returns: True if this method is a constructor.Returns true if this method is a constructor. |
| public boolean | Returns: True if this is a default method.Returns true if this is a default method (i.e. if this is a method in an interface and the method has a body). |
| public boolean | |
| public boolean | |
| public boolean | Returns: True if this method is synchronized.Returns true if this method is synchronized. |
| public boolean | Returns: True if this is a varargs method.Returns true if this method is a varargs method. |
| public Constructor | Returns: TheConstructor reference for this constructor.Load the class this constructor is associated with, and get the |
| public Method | Returns: TheMethod reference for this method.Load the class this method is associated with, and get the |
| private Class | Returns: An array of theClass references for each method parameter.Load and return the classes of each of the method parameters. |
| pack-priv void | setScanResult(final ScanResult
the scan result scanResult)Overrides io. Set ScanResult backreferences in info objects after scan has completed. |
| protected void | toString(final boolean
the use simple names useSimpleNames, final StringBuilder the buf buf)Implements abstract io. Get a string representation of the method. |
| hasBody | back to summary |
|---|---|
| private boolean hasBody True if this method has a body. | |
| maxLineNum | back to summary |
|---|---|
| private int maxLineNum The maximum line number for the body of this method, or 0 if unknown. | |
| minLineNum | back to summary |
|---|---|
| private int minLineNum The minimum line number for the body of this method, or 0 if unknown. | |
| parameterAnnotationInfo | back to summary |
|---|---|
| pack-priv AnnotationInfo[][] parameterAnnotationInfo Unaligned parameter annotations. | |
| parameterInfo | back to summary |
|---|---|
| private transient MethodParameterInfo[] parameterInfo Aligned method parameter info. | |
| parameterModifiers | back to summary |
|---|---|
| private int[] parameterModifiers Unaligned parameter modifiers. These are only produced in JDK8+, and only if the commandline switch `-parameters` is provided at compiletime. | |
| parameterNames | back to summary |
|---|---|
| private String[] parameterNames Unaligned parameter names. These are only produced in JDK8+, and only if the commandline switch `-parameters` is provided at compiletime. | |
| thrownExceptionNames | back to summary |
|---|---|
| private String[] thrownExceptionNames | |
| thrownExceptions | back to summary |
|---|---|
| private transient ClassInfoList thrownExceptions | |
| typeAnnotationDecorators | back to summary |
|---|---|
| private transient List<Classfile. The type annotation decorators for the | |
| typeDescriptor | back to summary |
|---|---|
| private transient MethodTypeSignature typeDescriptor The parsed type descriptor. | |
| typeSignature | back to summary |
|---|---|
| private transient MethodTypeSignature typeSignature The parsed type signature (or null if none). Method parameter types are unaligned. | |
| MethodInfo | back to summary |
|---|---|
| pack-priv MethodInfo() Default constructor for deserialization. | |
| MethodInfo | back to summary |
|---|---|
| pack-priv MethodInfo(final String definingClassName, final String methodName, final AnnotationInfoList methodAnnotationInfo, final int modifiers, final String typeDescriptorStr, final String typeSignatureStr, final String[] parameterNames, final int[] parameterModifiers, final AnnotationInfo[][] parameterAnnotationInfo, final boolean hasBody, final int minLineNum, final int maxLineNum, final List<Classfile. Constructor.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(final MethodInfo other) Implements java. Sort in order of class name, method name, then type descriptor.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Test class name, method name and type descriptor for equals(). | |
| findReferencedClassInfo | back to summary |
|---|---|
| protected void findReferencedClassInfo(final Map<String, ClassInfo> classNameToClassInfo, final Set<ClassInfo> refdClassInfo, final LogNode log) Overrides io. Get | |
| getMaxLineNum | back to summary |
|---|---|
| public int getMaxLineNum() The line number of the last non-empty line in the body of this method, or 0 if unknown.
| |
| getMinLineNum | back to summary |
|---|---|
| public int getMinLineNum() The line number of the first non-empty line in the body of this method, or 0 if unknown.
| |
| getModifiersStr | back to summary |
|---|---|
| public String getModifiersStr() Implements abstract io. Get the method modifiers as a String, e.g. "public static final". For the modifier bits, call
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides io. Implements io. Returns the name of the method. Note that constructors are named | |
| getParameterInfo | back to summary |
|---|---|
| public MethodParameterInfo[] getParameterInfo() Get the available information on method parameters.
| |
| getThrownExceptionNames | back to summary |
|---|---|
| public String[] getThrownExceptionNames() Returns the exceptions thrown by the method, as an array.
| |
| getThrownExceptions | back to summary |
|---|---|
| public ClassInfoList getThrownExceptions() Returns the list of exceptions thrown by the method, as a
| |
| getTypeDescriptor | back to summary |
|---|---|
| public MethodTypeSignature getTypeDescriptor() Implements abstract io. Returns the parsed type descriptor for the method, which will not include type parameters. If you need
generic type parameters, call
| |
| getTypeSignature | back to summary |
|---|---|
| public MethodTypeSignature getTypeSignature() Implements abstract io. Returns the parsed type signature for the method, possibly including type parameters. If this returns null,
indicating that no type signature information is available for this method, call
| |
| getTypeSignatureOrTypeDescriptor | back to summary |
|---|---|
| public MethodTypeSignature getTypeSignatureOrTypeDescriptor() Implements abstract io. Returns the parsed type signature for the method, possibly including type parameters. If the type signature string is null, indicating that no type signature information is available for this method, returns the parsed type descriptor instead.
| |
| handleRepeatableAnnotations | back to summary |
|---|---|
| pack-priv void handleRepeatableAnnotations(final Set<String> allRepeatableAnnotationNames) Handle | |
| hasBody | back to summary |
|---|---|
| public boolean hasBody() Returns true if this method has a body (i.e. has an implementation in the containing class).
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Use hashcode of class name, method name and type descriptor.
| |
| hasParameterAnnotation | back to summary |
|---|---|
| public boolean hasParameterAnnotation(final Class<? extends Annotation> annotation) Check if this method has a parameter with the annotation.
| |
| hasParameterAnnotation | back to summary |
|---|---|
| public boolean hasParameterAnnotation(final String annotationName) Check if this method has a parameter with the named annotation.
| |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() Returns true if this method is abstract.
| |
| isBridge | back to summary |
|---|---|
| public boolean isBridge() Returns true if this method is a bridge method.
| |
| isConstructor | back to summary |
|---|---|
| public boolean isConstructor() Returns true if this method is a constructor. Constructors have the method name
| |
| isDefault | back to summary |
|---|---|
| public boolean isDefault() Returns true if this is a default method (i.e. if this is a method in an interface and the method has a body).
| |
| isNative | back to summary |
|---|---|
| public boolean isNative() Returns true if this method is a native method.
| |
| isStrict | back to summary |
|---|---|
| public boolean isStrict() Returns true if this method is strict.
| |
| isSynchronized | back to summary |
|---|---|
| public boolean isSynchronized() Returns true if this method is synchronized.
| |
| isVarArgs | back to summary |
|---|---|
| public boolean isVarArgs() Returns true if this method is a varargs method.
| |
| loadClassAndGetConstructor | back to summary |
|---|---|
| public Constructor Load the class this constructor is associated with, and get the
| |
| loadClassAndGetMethod | back to summary |
|---|---|
| public Method loadClassAndGetMethod() throws IllegalArgumentException Load the class this method is associated with, and get the
| |
| loadParameterClasses | back to summary |
|---|---|
| private Class Load and return the classes of each of the method parameters. | |
| setScanResult | back to summary |
|---|---|
| pack-priv void setScanResult(final ScanResult scanResult) Overrides io. Doc from io. Set ScanResult backreferences in info objects after scan has completed.
| |
| toString | back to summary |
|---|---|
| protected void toString(final boolean useSimpleNames, final StringBuilder buf) Implements abstract io. Get a string representation of the method. Note that constructors are named
| |