Class ModuleAttribute
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.ModuleAttribute
- All Implemented Interfaces:
IClassFileAttribute, IModuleAttribute
- Since:
- 3.14
-
Field Summary
Fields inherited from class ClassFileAttribute
NO_ATTRIBUTES -
Method Summary
Modifier and TypeMethodDescriptionintAnswer back the exports count.Answer back the array of exports infos of the .class file, an empty array if none.intAnswer back the module flags.char[]Answer back the module name.intAnswer back the module name index.intAnswer back the module version index.char[]Answer back the module version string.intAnswer back the opens count.Answer back the array of opens infos of the .class file, an empty array if none.intAnswer back the provides count.Answer back the array of provides infos of the .class file, an empty array if none.intAnswer back the requires count.Answer back the array of requires infos of the .class file, an empty array if none.char[][]Answer back the array of uses class names of the .class file, an empty array if none.intAnswer back the uses count.int[]Answer back the array of uses indices of the .class file, an empty array if none.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
-
getModuleNameIndex
public int getModuleNameIndex()Description copied from interface:IModuleAttributeAnswer back the module name index.- Specified by:
getModuleNameIndexin interfaceIModuleAttribute- Returns:
- the module name index
-
getModuleName
public char[] getModuleName()Description copied from interface:IModuleAttributeAnswer back the module name.- Specified by:
getModuleNamein interfaceIModuleAttribute- Returns:
- the module name
-
getModuleFlags
public int getModuleFlags()Description copied from interface:IModuleAttributeAnswer back the module flags.- Specified by:
getModuleFlagsin interfaceIModuleAttribute- Returns:
- the module flags
-
getModuleVersionIndex
public int getModuleVersionIndex()Description copied from interface:IModuleAttributeAnswer back the module version index.- Specified by:
getModuleVersionIndexin interfaceIModuleAttribute- Returns:
- the module version index
-
getModuleVersionValue
public char[] getModuleVersionValue()Description copied from interface:IModuleAttributeAnswer back the module version string.- Specified by:
getModuleVersionValuein interfaceIModuleAttribute- Returns:
- the module version string
-
getRequiresCount
public int getRequiresCount()Description copied from interface:IModuleAttributeAnswer back the requires count.- Specified by:
getRequiresCountin interfaceIModuleAttribute- Returns:
- the requires counts
-
getRequiresInfo
Description copied from interface:IModuleAttributeAnswer back the array of requires infos of the .class file, an empty array if none.- Specified by:
getRequiresInfoin interfaceIModuleAttribute- Returns:
- the array of requires infos of the .class file, an empty array if none
-
getExportsCount
public int getExportsCount()Description copied from interface:IModuleAttributeAnswer back the exports count.- Specified by:
getExportsCountin interfaceIModuleAttribute- Returns:
- the exports counts
-
getExportsInfo
Description copied from interface:IModuleAttributeAnswer back the array of exports infos of the .class file, an empty array if none.- Specified by:
getExportsInfoin interfaceIModuleAttribute- Returns:
- the array of exports infos of the .class file, an empty array if none
-
getOpensCount
public int getOpensCount()Description copied from interface:IModuleAttributeAnswer back the opens count.- Specified by:
getOpensCountin interfaceIModuleAttribute- Returns:
- the opens counts
-
getOpensInfo
Description copied from interface:IModuleAttributeAnswer back the array of opens infos of the .class file, an empty array if none.- Specified by:
getOpensInfoin interfaceIModuleAttribute- Returns:
- the array of opens infos of the .class file, an empty array if none
-
getUsesCount
public int getUsesCount()Description copied from interface:IModuleAttributeAnswer back the uses count.- Specified by:
getUsesCountin interfaceIModuleAttribute- Returns:
- the uses counts
-
getUsesIndices
public int[] getUsesIndices()Description copied from interface:IModuleAttributeAnswer back the array of uses indices of the .class file, an empty array if none.- Specified by:
getUsesIndicesin interfaceIModuleAttribute- Returns:
- the array of uses indices of the .class file, an empty array if none
-
getUsesClassNames
public char[][] getUsesClassNames()Description copied from interface:IModuleAttributeAnswer back the array of uses class names of the .class file, an empty array if none.- Specified by:
getUsesClassNamesin interfaceIModuleAttribute- Returns:
- the array of uses class names of the .class file, an empty array if none
-
getProvidesCount
public int getProvidesCount()Description copied from interface:IModuleAttributeAnswer back the provides count.- Specified by:
getProvidesCountin interfaceIModuleAttribute- Returns:
- the provides counts
-
getProvidesInfo
Description copied from interface:IModuleAttributeAnswer back the array of provides infos of the .class file, an empty array if none.- Specified by:
getProvidesInfoin interfaceIModuleAttribute- Returns:
- the array of provides infos of the .class file, an empty array if none
-