Klasse BinaryModule
- Alle implementierten Schnittstellen:
IAnnotatable
,IJavaElement
,IMember
,IModuleDescription
,IParent
,ISourceManipulation
,ISourceReference
,AbstractModule
,org.eclipse.core.runtime.IAdaptable
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.core.AbstractModule
AbstractModule.AutoModule
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.NamedMember
name
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
occurrenceCount
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.JavaElement
JEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_DELIMITER_ESCAPE, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LAMBDA_EXPRESSION, JEM_LAMBDA_METHOD, JEM_LOCALVARIABLE, JEM_METHOD, JEM_MODULAR_CLASSFILE, JEM_MODULE, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_STRING, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, NO_STRINGS
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.IJavaElement
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_MODULE, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER
-
Konstruktorübersicht
KonstruktorBeschreibungBinaryModule
(JavaElement parent, String name) For creating a pure handle from its memento.BinaryModule
(JavaElement parent, IBinaryModule info) For creating a populated handle from a class file. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the annotations for this element.getAttachedJavadoc
(org.eclipse.core.runtime.IProgressMonitor monitor) Returns the Javadoc as HTML source if this element has attached Javadoc,null
otherwise.Returns the immediate children of this element.int
getFlags()
Returns the modifier flags for this member.char
Returns thechar
that marks the start of this handles contribution to a memento.getJavadocContents
(org.eclipse.core.runtime.IProgressMonitor monitor) getKey
(boolean forceOpen) Returns the source range associated with this element.boolean
isBinary()
Returns whether this member is from a class file.boolean
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.BinaryMember
copy, getAnnotations, getCategories, getKey, getNameRange, getStandardAnnotations, isStructureKnown, move, rename, setContents
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.NamedMember
getElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getKey, getOccurrenceCountSignature, getPackageFragment, getTypeParameters, getTypeQualifiedName, resolveType, resolveType
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.Member
areSimilarMethods, convertConstant, findMethods, getClassFile, getDeclaringType, getHandleFromMemento, getJavadocRange, getOuterMostLocalContext, getType, getTypeRoot, isMainMethod, isMainMethodCandidate, isReadOnly, readableName
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
closing, createElementInfo, delete, equals, findNode, generateInfos, getAnnotation, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getUnderlyingResource, hasChildren, resource, toStringName
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.JavaElement
appendEscapedDelimiter, close, escapeMementoName, exists, getAncestor, getChildrenOfType, getElementInfo, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenable, getParent, getPrimaryElement, getPrimaryElement, getResource, getSchedulingRule, getSourceElementAt, getSourceMapper, getURLContents, hashCode, isAncestorOf, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, resolved, setParent, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringInfo, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCache
Von Klasse geerbte Methoden org.eclipse.core.runtime.PlatformObject
getAdapter
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.AbstractModule
getElementInfo, getElementType, getExportedPackageNames, getExportedPackages, getOpenedPackageNames, getOpenedPackages, getProvidedServiceNames, getProvidedServices, getRequiredModuleNames, getRequiredModules, getUsedServiceNames, getUsedServices, toStringContent
Von Schnittstelle geerbte Methoden org.eclipse.core.runtime.IAdaptable
getAdapter
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IAnnotatable
getAnnotation
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IJavaElement
exists, getAncestor, getCorrespondingResource, getElementName, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IMember
getCategories, getClassFile, getCompilationUnit, getDeclaringType, getJavadocRange, getOccurrenceCount, getType, getTypeRoot
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IModuleDescription
isAutoModule
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IParent
hasChildren
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.ISourceManipulation
copy, delete, move, rename
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.ISourceReference
exists, getNameRange, getSource
-
Konstruktordetails
-
BinaryModule
For creating a pure handle from its memento. -
BinaryModule
For creating a populated handle from a class file.
-
-
Methodendetails
-
getModuleInfo
- Angegeben von:
getModuleInfo
in SchnittstelleAbstractModule
- Löst aus:
JavaModelException
-
getAnnotations
Beschreibung aus Schnittstelle kopiert:IAnnotatable
Returns the annotations for this element. Returns an empty array if this element has no annotations.- Angegeben von:
getAnnotations
in SchnittstelleIAnnotatable
- Setzt außer Kraft:
getAnnotations
in KlasseSourceRefElement
- Gibt zurück:
- the annotations of this element, in the order declared in the source, or an empty array if none
- Löst aus:
JavaModelException
- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getChildren
Beschreibung aus Schnittstelle kopiert:IParent
Returns the immediate children of this element. Unless otherwise specified by the implementing element, the children are in no particular order.- Angegeben von:
getChildren
in SchnittstelleIParent
- Setzt außer Kraft:
getChildren
in KlasseJavaElement
- Gibt zurück:
- the immediate children of this element
- Löst aus:
JavaModelException
- if this element does not exist or if an exception occurs while accessing its corresponding resource- Siehe auch:
-
isBinary
public boolean isBinary()Beschreibung aus Schnittstelle kopiert:IMember
Returns whether this member is from a class file. This is a handle-only method.- Angegeben von:
isBinary
in SchnittstelleIMember
- Setzt außer Kraft:
isBinary
in KlasseBinaryMember
- Gibt zurück:
true
if from a class file, andfalse
if from a compilation unit- Siehe auch:
-
isSystemModule
public boolean isSystemModule()- Angegeben von:
isSystemModule
in SchnittstelleIModuleDescription
- Gibt zurück:
- true if this module is a system module, else false
-
getFlags
Beschreibung aus Schnittstelle kopiert:IMember
Returns the modifier flags for this member. The flags can be examined using classFlags
.For binary members, flags from the class file as well as derived flags
Flags.AccAnnotationDefault
andFlags.AccDefaultMethod
are included.For source members, only flags as indicated in the source are returned. Thus if an interface defines a method
void myMethod();
, the flags don't include the 'public' flag. Source flags includeFlags.AccAnnotationDefault
as well.- Angegeben von:
getFlags
in SchnittstelleIMember
- Setzt außer Kraft:
getFlags
in KlasseMember
- Gibt zurück:
- the modifier flags for this member
- Löst aus:
JavaModelException
- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Siehe auch:
-
getHandleMementoDelimiter
public char getHandleMementoDelimiter()Beschreibung aus Klasse kopiert:JavaElement
Returns thechar
that marks the start of this handles contribution to a memento.- Setzt außer Kraft:
getHandleMementoDelimiter
in KlasseMember
- Siehe auch:
-
getKey
- Angegeben von:
getKey
in KlasseBinaryMember
- Löst aus:
JavaModelException
- Siehe auch:
-
getSourceRange
Beschreibung aus Schnittstelle kopiert:ISourceReference
Returns the source range associated with this element.For class files, this returns the range of the entire compilation unit associated with the class file (if there is one).
If this element has no associated source code, either
null
is returned, or a source range with a -1 offset and a 0 length.SourceRange.isAvailable(ISourceRange)
can be used to detect that case.- Angegeben von:
getSourceRange
in SchnittstelleISourceReference
- Setzt außer Kraft:
getSourceRange
in KlasseBinaryMember
- Gibt zurück:
- the source range, or either
null
or [-1, 0] if this element has no associated source code - Löst aus:
JavaModelException
- if an exception occurs while accessing its corresponding resource- Siehe auch:
-
getAttachedJavadoc
public String getAttachedJavadoc(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:IJavaElement
Returns the Javadoc as HTML source if this element has attached Javadoc,
null
otherwise.This should be used only for binary elements. Source elements will always return
null
.The encoding used to read the Javadoc is the one defined by the content type of the file. If none is defined, then the project's encoding of this Java element is used. If the project's encoding cannot be retrieved, then the platform encoding is used.
In case the Javadoc doesn't exist for this element,
null
is returned.The HTML is extracted from the attached Javadoc and provided as is. No transformation or validation is done.
- Angegeben von:
getAttachedJavadoc
in SchnittstelleIJavaElement
- Setzt außer Kraft:
getAttachedJavadoc
in KlasseJavaElement
- Parameter:
monitor
- the given progress monitor, can benull
- Gibt zurück:
- the extracted javadoc from the attached javadoc,
null
if none - Löst aus:
JavaModelException
- if:- this element does not exist
- retrieving the attached javadoc fails (timed-out, invalid URL, ...)
- the format of the javadoc doesn't match expected standards (different anchors,...)
- Siehe auch:
-
getJavadocContents
public JavadocContents getJavadocContents(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException - Löst aus:
JavaModelException
-
toString
- Angegeben von:
toString
in SchnittstelleAbstractModule
-