Class ModuleInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ModuleInfo
- All Implemented Interfaces:
IBinaryInfo, IBinaryModule, IElementInfo, IModule
-
Nested Class Summary
Nested classes/interfaces inherited from interface IModule
IModule.IModuleReference, IModule.IPackageExport, IModule.IServiceModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AnnotationInfo[]protected org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ModuleInfo.PackageExportInfo[]protected intprotected intprotected char[]protected org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ModuleInfo.PackageExportInfo[]protected intprotected intprotected org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ModuleInfo.ModuleReferenceInfo[]protected intprotected intprotected char[]Fields inherited from interface IModule
MODULE_INFO, MODULE_INFO_CLASS, MODULE_INFO_JAVA, NO_EXPORTS, NO_MODULE_REFS, NO_MODULES, NO_OPENS, NO_PROVIDES, NO_USESModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final IModule.IPackageExport[]static final IModule.IModuleReference[]static final IModule[]static final IModule.IPackageExport[]static final IModule.IService[]static final char[][] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModuleInfo(byte[] classFileBytes, int[] offsets, int offset) -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleInfocreateModule(byte[] classFileBytes, int[] offsets, int offset) booleanexports()intlonggetURI()inthashCode()booleanisOpen()char[]name()opens()provides()intrequires()intvoidsetName(char[] name) toString()protected voidtoStringContent(StringBuilder buffer) char[][]uses()intMethods inherited from class ClassFileStruct
doubleAt, floatAt, i4At, i8At, reset, u1At, u2At, u4At, utf8AtModifier and TypeMethodDescriptiondoubledoubleAt(int relativeOffset) floatfloatAt(int relativeOffset) inti4At(int relativeOffset) longi8At(int relativeOffset) protected voidreset()intu1At(int relativeOffset) intu2At(int relativeOffset) intu4At(int relativeOffset) Returns an 32 bit integer created of 4 bytes.char[]utf8At(int relativeOffset, int bytesAvailable) Methods inherited from interface IModule
isAutomatic, isAutoNameFromManifestModifier and TypeMethodDescriptiondefault booleandefault boolean
-
Field Details
-
flags
protected int flags -
requiresCount
protected int requiresCount -
exportsCount
protected int exportsCount -
usesCount
protected int usesCount -
providesCount
protected int providesCount -
opensCount
protected int opensCount -
name
protected char[] name -
version
protected char[] version -
requires
protected org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ModuleInfo.ModuleReferenceInfo[] requires -
exports
protected org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ModuleInfo.PackageExportInfo[] exports -
opens
protected org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ModuleInfo.PackageExportInfo[] opens -
annotations
-
path
-
-
Constructor Details
-
ModuleInfo
protected ModuleInfo(byte[] classFileBytes, int[] offsets, int offset) - Parameters:
classFileBytes- byte[]offsets- int[]offset- int
-
-
Method Details
-
isOpen
-
requiresCount
public int requiresCount() -
exportsCount
public int exportsCount() -
usesCount
public int usesCount() -
providesCount
public int providesCount() -
name
-
setName
public void setName(char[] name) -
requires
-
exports
-
uses
-
provides
-
opens
-
getAnnotations
- Specified by:
getAnnotationsin interfaceIBinaryModule
-
getTagBits
public long getTagBits()- Specified by:
getTagBitsin interfaceIBinaryModule
-
createModule
- Parameters:
classFileBytes- bytes of the enclosing class fileoffsets- constant pool offsetsoffset- offset to the "Module" attribute- Returns:
- a module info initialized from the "Module" attribute, which was already detected by the caller
-
equals
-
hashCode
-
toString
-
toStringContent
-
getURI
- Specified by:
getURIin interfaceIBinaryModule
-