Klasse Member
- Alle implementierten Schnittstellen:
IJavaElement,IMember,IParent,ISourceManipulation,ISourceReference,org.eclipse.core.runtime.IAdaptable
- Bekannte direkte Unterklassen:
Initializer,NamedMember
- Siehe auch:
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
occurrenceCountVon 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_STRINGSVon 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
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected static booleanareSimilarMethods(String name1, String[] params1, String name2, String[] params2, String[] simpleNames1) protected static ObjectconvertConstant(Constant constant) Converts a field constant from the compiler's representation to the Java Model constant representation (Number or String).static IMethod[]findMethods(IMethod method, IMethod[] methods) String[]Returns the categories defined by this member's Javadoc.Returns the class file in which this member is declared, ornullif this member is not declared in a class file (for example, a source type).Returns the type in which this member is declared, ornullif this member is not declared in a type (for example, a top-level type).intgetFlags()Returns the modifier flags for this member.getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner) protected charReturns thecharthat marks the start of this handles contribution to a memento.Returns the Javadoc range if this element is from source or if this element is a binary element with an attached source, null otherwise.Returns the name range associated with this element.Returns the local or anonymous type declared in this source member with the given simple name and/or with the specified position relative to the order they are defined in the source.Returns the Java type root in which this member is declared.booleanisBinary()Returns whether this member is from a class file.protected booleanisMainMethod(IMethod method) booleanReturns whether this Java element is read-only.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
closing, copy, createElementInfo, delete, equals, findNode, generateInfos, getAnnotation, getAnnotations, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, isStructureKnown, move, rename, resource, toStringNameVon Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.JavaElement
appendEscapedDelimiter, close, escapeMementoName, exists, getAncestor, getAttachedJavadoc, getChildren, getChildrenOfType, getElementInfo, getElementInfo, getElementName, 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, validateAndCacheVon Klasse geerbte Methoden org.eclipse.core.runtime.PlatformObject
getAdapterVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.eclipse.core.runtime.IAdaptable
getAdapterVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IJavaElement
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementName, getElementType, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isStructureKnownVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IMember
getCompilationUnit, getOccurrenceCountVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IParent
getChildren, hasChildrenVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.ISourceManipulation
copy, delete, move, renameVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.ISourceReference
exists, getSource, getSourceRange
-
Konstruktordetails
-
Member
-
-
Methodendetails
-
areSimilarMethods
-
convertConstant
Converts a field constant from the compiler's representation to the Java Model constant representation (Number or String). -
findMethods
-
getCategories
Beschreibung aus Schnittstelle kopiert:IMemberReturns the categories defined by this member's Javadoc. A category is the identifier following the tag@categoryin the member's Javadoc. Returns an empty array if no category is defined in this member's Javadoc.- Angegeben von:
getCategoriesin SchnittstelleIMember- Gibt zurück:
- the categories defined by this member's doc
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getClassFile
Beschreibung aus Schnittstelle kopiert:IMemberReturns the class file in which this member is declared, ornullif this member is not declared in a class file (for example, a source type). This is a handle-only method.- Angegeben von:
getClassFilein SchnittstelleIMember- Setzt außer Kraft:
getClassFilein KlasseJavaElement- Gibt zurück:
- the class file in which this member is declared, or
nullif this member is not declared in a class file (for example, a source type) - Siehe auch:
-
getDeclaringType
Beschreibung aus Schnittstelle kopiert:IMemberReturns the type in which this member is declared, ornullif this member is not declared in a type (for example, a top-level type). This is a handle-only method.- Angegeben von:
getDeclaringTypein SchnittstelleIMember- Gibt zurück:
- the type in which this member is declared, or
nullif this member is not declared in a type (for example, a top-level type) - Siehe auch:
-
getFlags
Beschreibung aus Schnittstelle kopiert:IMemberReturns 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.AccAnnotationDefaultandFlags.AccDefaultMethodare 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.AccAnnotationDefaultas well.- Angegeben von:
getFlagsin SchnittstelleIMember- 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:
-
getHandleFromMemento
public IJavaElement getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner) - Setzt außer Kraft:
getHandleFromMementoin KlasseSourceRefElement
-
getHandleMementoDelimiter
protected char getHandleMementoDelimiter()Beschreibung aus Klasse kopiert:JavaElementReturns thecharthat marks the start of this handles contribution to a memento.- Angegeben von:
getHandleMementoDelimiterin KlasseJavaElement- Siehe auch:
-
getOuterMostLocalContext
-
getJavadocRange
Beschreibung aus Schnittstelle kopiert:IMemberReturns the Javadoc range if this element is from source or if this element is a binary element with an attached source, null otherwise.If this element is from source, the javadoc range is extracted from the corresponding source.
If this element is from a binary, the javadoc is extracted from the attached source if present.
If this element's openable is not consistent, then null is returned.
- Angegeben von:
getJavadocRangein SchnittstelleIMember- Gibt zurück:
- a source range corresponding to the javadoc source or
nullif no source is available, this element has no javadoc comment or this element's openable is not consistent - Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Siehe auch:
-
getNameRange
Beschreibung aus Schnittstelle kopiert:ISourceReferenceReturns the name range associated with this element.If the element is an
IMember, it returns the source range of this member's simple name, ornullif this member does not have a name (for example, an initializer), or if this member does not have associated source code (for example, a binary type).If this element is an
IImportDeclaration, the source range of this import declaration's name, ornullif this import declaration does not have associated source code (for example, a binary type).
The source range for the name includes the trailing '*' if the call toIImportDeclaration.isOnDemand()returns true.If this element is an
IPackageDeclaration, the source range of this package declaration's name, ornullif this package declaration does not have associated source code (for example, a binary type).If this element is an
IAnnotation, the source range of this annotation's name, ornullif this annotation does not have associated source code (for example, in a binary type).If this element is an
ITypeParameter, the source range of this type parameter's name, ornullif this type parameter does not have associated source code (for example, in a binary type).If this element is an
ITypeRootorIImportContainer, it returns null.- Angegeben von:
getNameRangein SchnittstelleISourceReference- Gibt zurück:
- the name range associated with this element, or
nullif not available - Löst aus:
JavaModelException- Siehe auch:
-
getType
Beschreibung aus Schnittstelle kopiert:IMemberReturns the local or anonymous type declared in this source member with the given simple name and/or with the specified position relative to the order they are defined in the source. The name is empty if it is an anonymous type. Numbering starts at 1 (thus the first occurrence is occurrence 1, not occurrence 0). This is a handle-only method. The type may or may not exist. Throws aRuntimeExceptionif this member is not a source member. -
getTypeRoot
Beschreibung aus Schnittstelle kopiert:IMemberReturns the Java type root in which this member is declared. This is a handle-only method.- Angegeben von:
getTypeRootin SchnittstelleIMember- Gibt zurück:
- the Java type root in which this member is declared.
- Siehe auch:
-
isBinary
public boolean isBinary()Beschreibung aus Schnittstelle kopiert:IMemberReturns whether this member is from a class file. This is a handle-only method. -
isMainMethod
- Löst aus:
JavaModelException
-
isReadOnly
public boolean isReadOnly()Beschreibung aus Schnittstelle kopiert:IJavaElementReturns whether this Java element is read-only. An element is read-only if its structure cannot be modified by the java model.Note this is different from IResource.isReadOnly(). For example, .jar files are read-only as the java model doesn't know how to add/remove elements in this file, but the underlying IFile can be writable.
This is a handle-only method.
- Angegeben von:
isReadOnlyin SchnittstelleIJavaElement- Setzt außer Kraft:
isReadOnlyin KlasseJavaElement- Gibt zurück:
trueif this element is read-only- Siehe auch:
-
readableName
- Setzt außer Kraft:
readableNamein KlasseJavaElement
-