Class RequiresInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.RequiresInfo
- All Implemented Interfaces:
IRequiresInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintAnswer back the requires flags.intAnswer back the requires index.char[]Answer back the requires module name.intAnswer back the requires version index.char[]Answer back the requires version string.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)
-
Constructor Details
-
RequiresInfo
public RequiresInfo(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException - Throws:
ClassFormatException
-
-
Method Details
-
getRequiresIndex
public int getRequiresIndex()Description copied from interface:IRequiresInfoAnswer back the requires index.- Specified by:
getRequiresIndexin interfaceIRequiresInfo- Returns:
- the requires index
-
getRequiresModuleName
public char[] getRequiresModuleName()Description copied from interface:IRequiresInfoAnswer back the requires module name.- Specified by:
getRequiresModuleNamein interfaceIRequiresInfo- Returns:
- the requires module name
-
getRequiresFlags
public int getRequiresFlags()Description copied from interface:IRequiresInfoAnswer back the requires flags.- Specified by:
getRequiresFlagsin interfaceIRequiresInfo- Returns:
- the requires flags
-
getRequiresVersionIndex
public int getRequiresVersionIndex()Description copied from interface:IRequiresInfoAnswer back the requires version index.- Specified by:
getRequiresVersionIndexin interfaceIRequiresInfo- Returns:
- the requires version index
-
getRequiresVersionValue
public char[] getRequiresVersionValue()Description copied from interface:IRequiresInfoAnswer back the requires version string.- Specified by:
getRequiresVersionValuein interfaceIRequiresInfo- Returns:
- the requires version string
-