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 org.aspectj.org.eclipse.jdt.internal.compiler.env.IModule
IModule.IModuleReference, IModule.IPackageExport, IModule.IService
-
Field Summary
Modifier and TypeFieldDescriptionprotected AnnotationInfo[]
protected org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ModuleInfo.PackageExportInfo[]
protected int
protected int
protected char[]
protected org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ModuleInfo.PackageExportInfo[]
protected int
protected int
protected org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ModuleInfo.ModuleReferenceInfo[]
protected int
protected int
protected char[]
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IModule
MODULE_INFO, MODULE_INFO_CLASS, MODULE_INFO_JAVA, NO_EXPORTS, NO_MODULE_REFS, NO_MODULES, NO_OPENS, NO_PROVIDES, NO_USES
-
Constructor Summary
ModifierConstructorDescriptionprotected
ModuleInfo
(byte[] classFileBytes, int[] offsets, int offset) -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleInfo
createModule
(byte[] classFileBytes, int[] offsets, int offset) boolean
exports()
int
long
getURI()
int
hashCode()
boolean
isOpen()
char[]
name()
opens()
provides()
int
requires()
int
void
setName
(char[] name) toString()
protected void
toStringContent
(StringBuilder buffer) char[][]
uses()
int
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
doubleAt, floatAt, i4At, i8At, reset, u1At, u2At, u4At, utf8At
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IModule
isAutomatic, isAutoNameFromManifest
-
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
public boolean isOpen() -
requiresCount
public int requiresCount() -
exportsCount
public int exportsCount() -
usesCount
public int usesCount() -
providesCount
public int providesCount() -
name
public char[] name() -
setName
public void setName(char[] name) -
requires
-
exports
-
uses
public char[][] uses() -
provides
-
opens
-
getAnnotations
- Specified by:
getAnnotations
in interfaceIBinaryModule
-
getTagBits
public long getTagBits()- Specified by:
getTagBits
in 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
public int hashCode() -
toString
-
toStringContent
-
getURI
- Specified by:
getURI
in interfaceIBinaryModule
-