Class EnclosingMethodAttribute
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileAttribute
org.aspectj.org.eclipse.jdt.internal.core.util.EnclosingMethodAttribute
- All Implemented Interfaces:
IClassFileAttribute, IEnclosingMethodAttribute
public class EnclosingMethodAttribute
extends ClassFileAttribute
implements IEnclosingMethodAttribute
Default implementation of EnclosingMethodAttribute.
- Since:
- 3.0
-
Field Summary
Fields inherited from class ClassFileAttribute
NO_ATTRIBUTES -
Method Summary
Modifier and TypeMethodDescriptionchar[]Answer back the enclosing class name as specified in the JVM specifications.intAnswer back the enclosing class name index.char[]Answer back the method descriptor of the enclosing method as specified in the JVM specifications.intAnswer back the descriptor index of the enclosing method.char[]Answer back the name of the enclosing method as specified in the JVM specifications.intAnswer back the name and type index of this attribute.intAnswer back the name index of the enclosing method.Methods inherited from class ClassFileAttribute
getAttributeLength, getAttributeName, getAttributeNameIndexModifier and TypeMethodDescriptionlongAnswer back the attribute length as specified in the JVM specifications.char[]Answer back the attribute name as specified in the JVM specifications.intAnswer back the attribute name index in the constant pool as specified in the JVM specifications.Methods inherited from class ClassFileStruct
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8AtModifier and TypeMethodDescriptionprotected doubledoubleAt(byte[] reference, int relativeOffset, int structOffset) protected floatfloatAt(byte[] reference, int relativeOffset, int structOffset) protected inti1At(byte[] reference, int relativeOffset, int structOffset) protected inti2At(byte[] reference, int relativeOffset, int structOffset) protected inti4At(byte[] reference, int relativeOffset, int structOffset) protected longi8At(byte[] reference, int relativeOffset, int structOffset) protected intu1At(byte[] reference, int relativeOffset, int structOffset) protected intu2At(byte[] reference, int relativeOffset, int structOffset) protected intu4At(byte[] reference, int relativeOffset, int structOffset) Returns an 32 bit integer created of 4 bytes.protected char[]utf8At(byte[] reference, int relativeOffset, int structOffset, int bytesAvailable)
-
Method Details
-
getEnclosingClass
public char[] getEnclosingClass()Description copied from interface:IEnclosingMethodAttributeAnswer back the enclosing class name as specified in the JVM specifications.- Specified by:
getEnclosingClassin interfaceIEnclosingMethodAttribute- Returns:
- the enclosing class name as specified in the JVM specifications
-
getEnclosingClassIndex
public int getEnclosingClassIndex()Description copied from interface:IEnclosingMethodAttributeAnswer back the enclosing class name index.- Specified by:
getEnclosingClassIndexin interfaceIEnclosingMethodAttribute- Returns:
- the enclosing class name index
-
getMethodDescriptor
public char[] getMethodDescriptor()Description copied from interface:IEnclosingMethodAttributeAnswer back the method descriptor of the enclosing method as specified in the JVM specifications.- Specified by:
getMethodDescriptorin interfaceIEnclosingMethodAttribute- Returns:
- the method descriptor of the enclosing method as specified in the JVM specifications
-
getMethodDescriptorIndex
public int getMethodDescriptorIndex()Description copied from interface:IEnclosingMethodAttributeAnswer back the descriptor index of the enclosing method.- Specified by:
getMethodDescriptorIndexin interfaceIEnclosingMethodAttribute- Returns:
- the descriptor index of the enclosing method
-
getMethodName
public char[] getMethodName()Description copied from interface:IEnclosingMethodAttributeAnswer back the name of the enclosing method as specified in the JVM specifications.- Specified by:
getMethodNamein interfaceIEnclosingMethodAttribute- Returns:
- the name of the enclosing method as specified in the JVM specifications
-
getMethodNameIndex
public int getMethodNameIndex()Description copied from interface:IEnclosingMethodAttributeAnswer back the name index of the enclosing method.- Specified by:
getMethodNameIndexin interfaceIEnclosingMethodAttribute- Returns:
- the name index of the enclosing method
-
getMethodNameAndTypeIndex
public int getMethodNameAndTypeIndex()Description copied from interface:IEnclosingMethodAttributeAnswer back the name and type index of this attribute.- Specified by:
getMethodNameAndTypeIndexin interfaceIEnclosingMethodAttribute- Returns:
- the name and type index of this attribute
-