Klasse BinaryType
- Alle implementierten Schnittstellen:
IAnnotatable,IJavaElement,IMember,IParent,ISourceManipulation,ISourceReference,IType,SuffixConstants,org.eclipse.core.runtime.IAdaptable
- Bekannte direkte Unterklassen:
ResolvedBinaryType
- Siehe auch:
-
Feldübersicht
FelderVon Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.NamedMember
nameVon 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_PARAMETERVon Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidThis element is being closed.voidcodeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor) Do code completion inside a code snippet in the context of the current type.voidcodeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor, WorkingCopyOwner owner) Do code completion inside a code snippet in the context of the current type.voidcodeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Do code completion inside a code snippet in the context of the current type.voidcodeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Do code completion inside a code snippet in the context of the current type.voidcodeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, ICompletionRequestor requestor) Veraltet.voidcodeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, ICompletionRequestor requestor, WorkingCopyOwner owner) Veraltet.createField(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a field in this type with the given contents.createInitializer(String contents, IJavaElement sibling, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a static initializer in this type with the given contents.createMethod(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a method or constructor in this type with the given contents.createType(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type in this type with the given contents.booleanReturns true if this handle represents the same Java element as the given handle.IMethod[]findMethods(IMethod method) Finds the methods in this type that correspond to the given method.Returns the annotations for this element.getAttachedJavadoc(org.eclipse.core.runtime.IProgressMonitor monitor) Returns the Javadoc as HTML source if this element has attached Javadoc,nullotherwise.Returns the immediate children of this element.getChildrenForCategory(String category) Returns the children of this type that have the given category as a@categorytag.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).protected org.aspectj.org.eclipse.jdt.internal.core.ClassFileInfoReturns the type in which this member is declared, ornullif this member is not declared in a type (for example, a top-level type).getElementInfo(org.eclipse.core.runtime.IProgressMonitor monitor) Returns the info for this handle.intReturns this element's kind encoded as an integer.Returns the field with the specified name in this type (for example,"bar").IField[]Returns the fields declared by this type in the order in which they appear in the source or class file.intgetFlags()Returns the modifier flags for this member.Returns the fully qualified name of this type, including qualification for any containing types and packages.getFullyQualifiedName(char enclosingTypeSeparator) Returns the fully qualified name of this type, including qualification for any containing types and packages.Returns this type's fully qualified name using a '.' enclosing type separator followed by its type parameters between angle brackets if it is a generic type.getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner) getInitializer(int count) Returns the initializer with the specified position relative to the order they are defined in the source.Returns the initializers declared by this type.getJavadocContents(org.eclipse.core.runtime.IProgressMonitor monitor) getKey(boolean forceOpen) Returns the method with the specified name and parameter types in this type (for example,"foo", {"I", "QString;"}).IMethod[]Returns the methods and constructors declared by this type.Returns the package fragment in which this element is defined.String[]Returns the names of types that this sealed type permits to be its sub types.getRecordComponent(String compName) Returns the record component with the specified name in this type (for example,"bar").IField[]Returns the record components declared by this record class, or an empty array if this is not a record.getSourceFileName(IBinaryType info) Returns the name of this type's superclass, ornullfor source types that do not specify a superclass.Returns the type signature of this type's superclass, ornullif none.String[]Returns the names of interfaces that this type implements or extends, in the order in which they are listed in the source.String[]Returns the type signatures of the interfaces that this type implements or extends, in the order in which they are listed in the source.Returns the member type declared in this type with the given simple name.getTypeParameter(String typeParameterName) Returns the type parameter declared in this type with the given name.Returns the formal type parameters for this type.String[]Returns the formal type parameter signatures for this type.Returns the type-qualified name of this type, including qualification for any enclosing types, but not including package qualification.getTypeQualifiedName(char enclosingTypeSeparator) Returns the type-qualified name of this type, including qualification for any enclosing types, but not including package qualification.IType[]getTypes()Returns the immediate member types declared by this type.booleanReturns whether this type represents an annotation type.booleanReturns whether this type represents an anonymous type.booleanisClass()Returns whether this type represents a class.booleanisEnum()Returns whether this type represents an enumeration class.booleanReturns whether this type represents an interface.booleanisLambda()Returns whether this type represents a lambda expression.booleanisLocal()Returns whether this type represents a local type.booleanisMember()Returns whether this type represents a member type.booleanisRecord()Returns whether this type represents a record class.booleanReturns whether this type represents a resolved type.booleanisSealed()Returns whether this type is a sealed type.loadTypeHierachy(InputStream input, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) loadTypeHierachy(InputStream input, org.eclipse.core.runtime.IProgressMonitor monitor) Loads a previously saved ITypeHierarchy from an input stream.newSupertypeHierarchy(ICompilationUnit[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type and all of its supertypes, considering types in the given working copies.newSupertypeHierarchy(IWorkingCopy[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) Veraltet.newSupertypeHierarchy(WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type and all of its supertypes, considering types in the working copies with the given owner.newSupertypeHierarchy(org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type and all of its supertypes.newTypeHierarchy(ICompilationUnit[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace, considering types in the given working copies.newTypeHierarchy(IJavaProject project, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the context of the given project, considering types in the working copies with the given owner.newTypeHierarchy(IJavaProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the context of the given project.newTypeHierarchy(IWorkingCopy[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) Veraltet.newTypeHierarchy(WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace, considering types in the working copies with the given owner.newTypeHierarchy(org.eclipse.core.runtime.IProgressMonitor monitor) Veraltet.sourceFileName(IBinaryType info) protected voidtoStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) Debugging purposesprotected voidtoStringName(StringBuffer buffer) Debugging purposesVon Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.BinaryMember
copy, getAnnotations, getCategories, getKey, getNameRange, getSourceRange, getStandardAnnotations, isBinary, isStructureKnown, move, rename, setContentsVon Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.NamedMember
getElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getKey, getOccurrenceCountSignature, getTypeQualifiedName, resolveType, resolveTypeVon Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.Member
areSimilarMethods, convertConstant, findMethods, getHandleMementoDelimiter, getJavadocRange, getOuterMostLocalContext, getType, getTypeRoot, isMainMethod, isReadOnly, readableNameVon Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
createElementInfo, delete, findNode, generateInfos, getAnnotation, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getUnderlyingResource, hasChildren, resourceVon Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.JavaElement
appendEscapedDelimiter, close, escapeMementoName, exists, getAncestor, getChildrenOfType, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenable, getParent, getPrimaryElement, getPrimaryElement, getResource, getSchedulingRule, getSourceElementAt, getSourceMapper, getURLContents, hashCode, isAncestorOf, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, setParent, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, 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.IAnnotatable
getAnnotationVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IJavaElement
exists, getAncestor, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnownVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IMember
getCategories, getCompilationUnit, getJavadocRange, getOccurrenceCount, getType, getTypeRoot, isBinaryVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IParent
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, getNameRange, getSource, getSourceRangeVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IType
getElementName, getKey, resolveType, resolveType
-
Felddetails
-
EMPTY_JAVADOC
-
-
Konstruktordetails
-
BinaryType
-
-
Methodendetails
-
closing
Beschreibung aus Klasse kopiert:SourceRefElementThis element is being closed. Do any necessary cleanup.- Setzt außer Kraft:
closingin KlasseSourceRefElement- Löst aus:
JavaModelException
-
codeComplete
public void codeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, ICompletionRequestor requestor) throws JavaModelException Veraltet.Beschreibung aus Schnittstelle kopiert:ITypeDo code completion inside a code snippet in the context of the current type. If the type has access to its source code and the insertion position is valid, then completion is performed against the source. Otherwise the completion is performed against the type structure and the given locals variables.- Angegeben von:
codeCompletein SchnittstelleIType- Parameter:
snippet- the code snippetinsertion- the position with in source where the snippet is inserted. This position must not be in comments. A possible value is -1, if the position is not known.position- the position within snippet where the user is performing code assist.localVariableTypeNames- an array (possibly empty) of fully qualified type names of local variables visible at the current scopelocalVariableNames- an array (possibly empty) of local variable names that are visible at the current scopelocalVariableModifiers- an array (possible empty) of modifiers for local variablesisStatic- whether the current scope is in a static contextrequestor- the completion requestor- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Siehe auch:
-
codeComplete
public void codeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, ICompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException Veraltet.Beschreibung aus Schnittstelle kopiert:ITypeDo code completion inside a code snippet in the context of the current type. It considers types in the working copies with the given owner first. In other words, the owner's working copies will take precedence over their original compilation units in the workspace.Note that if a working copy is empty, it will be as if the original compilation unit had been deleted.
If the type has access to its source code and the insertion position is valid, then completion is performed against the source. Otherwise the completion is performed against the type structure and the given locals variables.
- Angegeben von:
codeCompletein SchnittstelleIType- Parameter:
snippet- the code snippetinsertion- the position with in source where the snippet is inserted. This position must not be in comments. A possible value is -1, if the position is not known.position- the position with in snippet where the user is performing code assist.localVariableTypeNames- an array (possibly empty) of fully qualified type names of local variables visible at the current scopelocalVariableNames- an array (possibly empty) of local variable names that are visible at the current scopelocalVariableModifiers- an array (possible empty) of modifiers for local variablesisStatic- whether the current scope is in a static contextrequestor- the completion requestorowner- the owner of working copies that take precedence over their original compilation units- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Siehe auch:
-
codeComplete
public void codeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeDo code completion inside a code snippet in the context of the current type. If the type has access to its source code and the insertion position is valid, then completion is performed against the source. Otherwise the completion is performed against the type structure and the given locals variables.- Angegeben von:
codeCompletein SchnittstelleIType- Parameter:
snippet- the code snippetinsertion- the position with in source where the snippet is inserted. This position must not be in comments. A possible value is -1, if the position is not known.position- the position within snippet where the user is performing code assist.localVariableTypeNames- an array (possibly empty) of fully qualified type names of local variables visible at the current scopelocalVariableNames- an array (possibly empty) of local variable names that are visible at the current scopelocalVariableModifiers- an array (possible empty) of modifiers for local variablesisStatic- whether the current scope is in a static contextrequestor- the completion requestor- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
codeComplete
public void codeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeDo code completion inside a code snippet in the context of the current type. If the type has access to its source code and the insertion position is valid, then completion is performed against the source. Otherwise the completion is performed against the type structure and the given locals variables.If
IProgressMonitoris notnullthen some proposals which can be very long to compute are proposed. To avoid that the code assist operation take too much time aIProgressMonitorwhich automatically cancel the code assist operation when a specified amount of time is reached could be used.new IProgressMonitor() { private final static int TIMEOUT = 500; //ms private long endTime; public void beginTask(String name, int totalWork) { fEndTime= System.currentTimeMillis() + TIMEOUT; } public boolean isCanceled() { return endTime Ungültige Eingabe: "<"= System.currentTimeMillis(); } ... };- Angegeben von:
codeCompletein SchnittstelleIType- Parameter:
snippet- the code snippetinsertion- the position with in source where the snippet is inserted. This position must not be in comments. A possible value is -1, if the position is not known.position- the position within snippet where the user is performing code assist.localVariableTypeNames- an array (possibly empty) of fully qualified type names of local variables visible at the current scopelocalVariableNames- an array (possibly empty) of local variable names that are visible at the current scopelocalVariableModifiers- an array (possible empty) of modifiers for local variablesisStatic- whether the current scope is in a static contextrequestor- the completion requestormonitor- the progress monitor used to report progress- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
codeComplete
public void codeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeDo code completion inside a code snippet in the context of the current type. It considers types in the working copies with the given owner first. In other words, the owner's working copies will take precedence over their original compilation units in the workspace.Note that if a working copy is empty, it will be as if the original compilation unit had been deleted.
If the type has access to its source code and the insertion position is valid, then completion is performed against the source. Otherwise the completion is performed against the type structure and the given locals variables.
- Angegeben von:
codeCompletein SchnittstelleIType- Parameter:
snippet- the code snippetinsertion- the position with in source where the snippet is inserted. This position must not be in comments. A possible value is -1, if the position is not known.position- the position with in snippet where the user is performing code assist.localVariableTypeNames- an array (possibly empty) of fully qualified type names of local variables visible at the current scopelocalVariableNames- an array (possibly empty) of local variable names that are visible at the current scopelocalVariableModifiers- an array (possible empty) of modifiers for local variablesisStatic- whether the current scope is in a static contextrequestor- the completion requestorowner- the owner of working copies that take precedence over their original compilation units- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
codeComplete
public void codeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeDo code completion inside a code snippet in the context of the current type. It considers types in the working copies with the given owner first. In other words, the owner's working copies will take precedence over their original compilation units in the workspace.Note that if a working copy is empty, it will be as if the original compilation unit had been deleted.
If the type has access to its source code and the insertion position is valid, then completion is performed against the source. Otherwise the completion is performed against the type structure and the given locals variables.
If
IProgressMonitoris notnullthen some proposals which can be very long to compute are proposed. To avoid that the code assist operation take too much time aIProgressMonitorwhich automatically cancel the code assist operation when a specified amount of time is reached could be used.new IProgressMonitor() { private final static int TIMEOUT = 500; //ms private long endTime; public void beginTask(String name, int totalWork) { endTime= System.currentTimeMillis() + TIMEOUT; } public boolean isCanceled() { return endTime Ungültige Eingabe: "<"= System.currentTimeMillis(); } ... };- Angegeben von:
codeCompletein SchnittstelleIType- Parameter:
snippet- the code snippetinsertion- the position with in source where the snippet is inserted. This position must not be in comments. A possible value is -1, if the position is not known.position- the position with in snippet where the user is performing code assist.localVariableTypeNames- an array (possibly empty) of fully qualified type names of local variables visible at the current scopelocalVariableNames- an array (possibly empty) of local variable names that are visible at the current scopelocalVariableModifiers- an array (possible empty) of modifiers for local variablesisStatic- whether the current scope is in a static contextrequestor- the completion requestorowner- the owner of working copies that take precedence over their original compilation unitsmonitor- the progress monitor used to report progress- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
createField
public IField createField(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a field in this type with the given contents.Optionally, the new element can be positioned before the specified sibling. If no sibling is specified, the element will be inserted as the last field declaration in this type.
It is possible that a field with the same name already exists in this type. The value of the
forceparameter affects the resolution of such a conflict:-
true- in this case the field is created with the new contents -
false- in this case aJavaModelExceptionis thrown
- Angegeben von:
createFieldin SchnittstelleIType- Parameter:
contents- the given contentssibling- the given siblingforce- a flag in case the same name already exists in this typemonitor- the given progress monitor- Gibt zurück:
- a field in this type with the given contents
- Löst aus:
JavaModelException- if the element could not be created. Reasons include:- This Java element does not exist (ELEMENT_DOES_NOT_EXIST)
- A
CoreExceptionoccurred while updating an underlying resource - The specified sibling is not a child of this type (INVALID_SIBLING)
- The contents could not be recognized as a field declaration (INVALID_CONTENTS)
- This type is read-only (binary) (READ_ONLY)
- There was a naming collision with an existing field (NAME_COLLISION)
-
-
createInitializer
public IInitializer createInitializer(String contents, IJavaElement sibling, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a static initializer in this type with the given contents.Optionally, the new element can be positioned before the specified sibling. If no sibling is specified, the new initializer is positioned after the last existing initializer declaration, or as the first member in the type if there are no initializers.
- Angegeben von:
createInitializerin SchnittstelleIType- Parameter:
contents- the given contentssibling- the given siblingmonitor- the given progress monitor- Gibt zurück:
- a static initializer in this type with the given contents
- Löst aus:
JavaModelException- if the element could not be created. Reasons include:- This element does not exist
- A
CoreExceptionoccurred while updating an underlying resource - The specified sibling is not a child of this type (INVALID_SIBLING)
- The contents could not be recognized as an initializer declaration (INVALID_CONTENTS)
- This type is read-only (binary) (READ_ONLY)
-
createMethod
public IMethod createMethod(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a method or constructor in this type with the given contents.Optionally, the new element can be positioned before the specified sibling. If no sibling is specified, the element will be appended to this type.
It is possible that a method with the same signature already exists in this type. The value of the
forceparameter affects the resolution of such a conflict:-
true- in this case the method is created with the new contents -
false- in this case aJavaModelExceptionis thrown
- Angegeben von:
createMethodin SchnittstelleIType- Parameter:
contents- the given contentssibling- the given siblingforce- a flag in case the same name already exists in this typemonitor- the given progress monitor- Gibt zurück:
- a method or constructor in this type with the given contents
- Löst aus:
JavaModelException- if the element could not be created. Reasons include:- This Java element does not exist (ELEMENT_DOES_NOT_EXIST)
- A
CoreExceptionoccurred while updating an underlying resource - The specified sibling is not a child of this type (INVALID_SIBLING)
- The contents could not be recognized as a method or constructor declaration (INVALID_CONTENTS)
- This type is read-only (binary) (READ_ONLY)
- There was a naming collision with an existing method (NAME_COLLISION)
-
-
createType
public IType createType(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type in this type with the given contents.Optionally, the new type can be positioned before the specified sibling. If no sibling is specified, the type will be appended to this type.
It is possible that a type with the same name already exists in this type. The value of the
forceparameter affects the resolution of such a conflict:-
true- in this case the type is created with the new contents -
false- in this case aJavaModelExceptionis thrown
- Angegeben von:
createTypein SchnittstelleIType- Parameter:
contents- the given contentssibling- the given siblingforce- a flag in case the same name already exists in this typemonitor- the given progress monitor- Gibt zurück:
- a type in this type with the given contents
- Löst aus:
JavaModelException- if the element could not be created. Reasons include:- This Java element does not exist (ELEMENT_DOES_NOT_EXIST)
- A
CoreExceptionoccurred while updating an underlying resource - The specified sibling is not a child of this type (INVALID_SIBLING)
- The contents could not be recognized as a type declaration (INVALID_CONTENTS)
- This type is read-only (binary) (READ_ONLY)
- There was a naming collision with an existing field (NAME_COLLISION)
-
-
equals
Beschreibung aus Klasse kopiert:JavaElementReturns true if this handle represents the same Java element as the given handle. By default, two handles represent the same element if they are identical or if they represent the same type of element, have equal names, parents, and occurrence counts.If a subclass has other requirements for equality, this method must be overridden.
- Setzt außer Kraft:
equalsin KlasseSourceRefElement- Siehe auch:
-
findMethods
Beschreibung aus Schnittstelle kopiert:ITypeFinds the methods in this type that correspond to the given method. A method m1 corresponds to another method m2 if:- m1 has the same element name as m2.
- m1 has the same number of arguments as m2 and the simple names of the argument types must be equals.
- m1 exists.
- Angegeben von:
findMethodsin SchnittstelleIType- Parameter:
method- the given method- Gibt zurück:
- the found method or
nullif no such methods can be found.
-
getAnnotations
Beschreibung aus Schnittstelle kopiert:IAnnotatableReturns the annotations for this element. Returns an empty array if this element has no annotations.- Angegeben von:
getAnnotationsin SchnittstelleIAnnotatable- Setzt außer Kraft:
getAnnotationsin 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:IParentReturns the immediate children of this element. Unless otherwise specified by the implementing element, the children are in no particular order.- Angegeben von:
getChildrenin SchnittstelleIParent- Setzt außer Kraft:
getChildrenin 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:
-
getChildrenForCategory
Beschreibung aus Schnittstelle kopiert:ITypeReturns the children of this type that have the given category as a@categorytag. Returns an empty array if no children with this category exist.The results are listed in the order in which they appear in the source or class file.
- Angegeben von:
getChildrenForCategoryin SchnittstelleIType- Gibt zurück:
- the children for the given category.
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getClassFileInfo
protected org.aspectj.org.eclipse.jdt.internal.core.ClassFileInfo getClassFileInfo() throws JavaModelException- Löst aus:
JavaModelException
-
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- Angegeben von:
getClassFilein SchnittstelleIType- Setzt außer Kraft:
getClassFilein KlasseMember- 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- Setzt außer Kraft:
getDeclaringTypein KlasseMember- 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:
-
getElementInfo
public Object getElementInfo(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Klasse kopiert:JavaElementReturns the info for this handle. If this element is not already open, it and all of its parents are opened. Does not return null. NOTE: BinaryType infos are NOT rooted under JavaElementInfo.- Setzt außer Kraft:
getElementInfoin KlasseJavaElement- Löst aus:
JavaModelException- if the element is not present or not accessible
-
getElementType
public int getElementType()Beschreibung aus Schnittstelle kopiert:IJavaElementReturns this element's kind encoded as an integer. This is a handle-only method.- Angegeben von:
getElementTypein SchnittstelleIJavaElement- Gibt zurück:
- the kind of element; one of the constants declared in
IJavaElement - Siehe auch:
-
getField
Beschreibung aus Schnittstelle kopiert:ITypeReturns the field with the specified name in this type (for example,"bar"). This is a handle-only method. The field may or may not exist. -
getFields
Beschreibung aus Schnittstelle kopiert:ITypeReturns the fields declared by this type in the order in which they appear in the source or class file. For binary types, this includes synthetic fields. This does not include the implicit fields representing record components.- Angegeben von:
getFieldsin SchnittstelleIType- Gibt zurück:
- the fields declared by this type
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getRecordComponents
Beschreibung aus Schnittstelle kopiert:ITypeReturns the record components declared by this record class, or an empty array if this is not a record.- Angegeben von:
getRecordComponentsin SchnittstelleIType- Gibt zurück:
- record components declared by this record class
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getRecordComponent
Beschreibung aus Schnittstelle kopiert:ITypeReturns the record component with the specified name in this type (for example,"bar"). This is a handle-only method. The record component may or may not exist.- Angegeben von:
getRecordComponentin SchnittstelleIType- Parameter:
compName- the given name- Gibt zurück:
- the record component with the specified name in this record
-
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- Setzt außer Kraft:
getFlagsin 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:
-
getFullyQualifiedName
Beschreibung aus Schnittstelle kopiert:ITypeReturns the fully qualified name of this type, including qualification for any containing types and packages. This is the name of the package, followed by'.', followed by the type-qualified name.Note: The enclosing type separator used in the type-qualified name is
This method is fully equivalent to'$', not'.'.getFullyQualifiedName('$'). This is a handle-only method.- Angegeben von:
getFullyQualifiedNamein SchnittstelleIType- Gibt zurück:
- the fully qualified name of this type
- Siehe auch:
-
getFullyQualifiedName
Beschreibung aus Schnittstelle kopiert:ITypeReturns the fully qualified name of this type, including qualification for any containing types and packages. This is the name of the package, followed by'.', followed by the type-qualified name using theenclosingTypeSeparator. For example:- the fully qualified name of a class B defined as a member of a class A in a compilation unit A.java in a package x.y using the '.' separator is "x.y.A.B"
- the fully qualified name of a class B defined as a member of a class A in a compilation unit A.java in a package x.y using the '$' separator is "x.y.A$B"
- the fully qualified name of a binary type whose class file is x/y/A$B.class using the '.' separator is "x.y.A.B"
- the fully qualified name of a binary type whose class file is x/y/A$B.class using the '$' separator is "x.y.A$B"
- the fully qualified name of an anonymous binary type whose class file is x/y/A$1.class using the '.' separator is "x.y.A.1"
- Angegeben von:
getFullyQualifiedNamein SchnittstelleIType- Parameter:
enclosingTypeSeparator- the given enclosing type separator- Gibt zurück:
- the fully qualified name of this type, including qualification for any containing types and packages
- Siehe auch:
-
getFullyQualifiedParameterizedName
Beschreibung aus Schnittstelle kopiert:ITypeReturns this type's fully qualified name using a '.' enclosing type separator followed by its type parameters between angle brackets if it is a generic type. For example, "p.X<T>", "java.util.Map<java.lang.String, p.X>"- Angegeben von:
getFullyQualifiedParameterizedNamein SchnittstelleIType- Gibt zurück:
- the fully qualified parameterized representation of this type
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getHandleFromMemento
public IJavaElement getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner) - Setzt außer Kraft:
getHandleFromMementoin KlasseMember
-
getInitializer
Beschreibung aus Schnittstelle kopiert:ITypeReturns the initializer with the specified position relative to the order they are defined in the source. Numbering starts at 1 (thus the first occurrence is occurrence 1, not occurrence 0). This is a handle-only method. The initializer may or may not be present.- Angegeben von:
getInitializerin SchnittstelleIType- Parameter:
count- the specified position- Gibt zurück:
- the initializer with the specified position relative to the order they are defined in the source
-
getInitializers
Beschreibung aus Schnittstelle kopiert:ITypeReturns the initializers declared by this type. For binary types this is an empty collection. For source types, the results are listed in the order in which they appear in the source.- Angegeben von:
getInitializersin SchnittstelleIType- Gibt zurück:
- the initializers declared by this type
-
getKey
- Angegeben von:
getKeyin KlasseBinaryMember- Löst aus:
JavaModelException- Siehe auch:
-
getMethod
Beschreibung aus Schnittstelle kopiert:ITypeReturns the method with the specified name and parameter types in this type (for example,"foo", {"I", "QString;"}). To get the handle for a constructor, the name specified must be the simple name of the enclosing type. This is a handle-only method. The method may or may not be present.The type signatures may be either unresolved (for source types) or resolved (for binary types), and either basic (for basic types) or rich (for parameterized types). See
Signaturefor details. Note that the parameter type signatures for binary methods are expected to be dot-based. -
getMethods
Beschreibung aus Schnittstelle kopiert:ITypeReturns the methods and constructors declared by this type. For binary types, this may include the special<clinit>method and synthetic methods.The results are listed in the order in which they appear in the source or class file.
- Angegeben von:
getMethodsin SchnittstelleIType- Gibt zurück:
- the methods and constructors declared by this type
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getPackageFragment
Beschreibung aus Schnittstelle kopiert:ITypeReturns the package fragment in which this element is defined. This is a handle-only method.- Angegeben von:
getPackageFragmentin SchnittstelleIType- Setzt außer Kraft:
getPackageFragmentin KlasseNamedMember- Gibt zurück:
- the package fragment in which this element is defined
-
getSuperclassTypeSignature
Beschreibung aus Schnittstelle kopiert:ITypeReturns the type signature of this type's superclass, ornullif none.The type signature may be either unresolved (for source types) or resolved (for binary types), and either basic (for basic types) or rich (for parameterized types). See
Signaturefor details.- Angegeben von:
getSuperclassTypeSignaturein SchnittstelleIType- Gibt zurück:
- the type signature of this type's superclass, or
nullif none - Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Seit:
- 3.0
- Siehe auch:
-
getSourceFileName
-
getSuperclassName
Beschreibung aus Schnittstelle kopiert:ITypeReturns the name of this type's superclass, ornullfor source types that do not specify a superclass.For interfaces, the superclass name is always
"java.lang.Object". For source types, the name as declared is returned, for binary types, the resolved, qualified name is returned. For anonymous types, the superclass name is the name appearing after the 'new' keyword'. If the superclass is a parameterized type, the string may include its type arguments enclosed in "<>". If the returned string is needed for anything other than display purposes, useIType.getSuperclassTypeSignature()which returns a structured type signature string containing more precise information.- Angegeben von:
getSuperclassNamein SchnittstelleIType- Gibt zurück:
- the name of this type's superclass, or
nullfor source types that do not specify a superclass - Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getSuperInterfaceNames
Beschreibung aus Schnittstelle kopiert:ITypeReturns the names of interfaces that this type implements or extends, in the order in which they are listed in the source.For classes, this gives the interfaces that this class implements. For interfaces, this gives the interfaces that this interface extends. An empty collection is returned if this type does not implement or extend any interfaces. For source types, simple names are returned, for binary types, qualified names are returned. For anonymous types, an empty collection is always returned. If the list of supertypes includes parameterized types, the string may include type arguments enclosed in "<>". If the result is needed for anything other than display purposes, use
IType.getSuperInterfaceTypeSignatures()which returns structured signature strings containing more precise information.- Angegeben von:
getSuperInterfaceNamesin SchnittstelleIType- Gibt zurück:
- the names of interfaces that this type implements or extends, in the order in which they are listed in the source, an empty collection if none
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getPermittedSubtypeNames
Beschreibung aus Schnittstelle kopiert:ITypeReturns the names of types that this sealed type permits to be its sub types. For a non sealed type, an empty array is returned. If type declares an explicit permits clause, then the permitted sub-types are returned in the declared order. If a sealed type does not explicitly declare permitted sub types, then the implicit permitted types, that is, the types in the same compilation unit that are sub types of this sealed type are returned in the order they appear within the compilation unit.- Angegeben von:
getPermittedSubtypeNamesin SchnittstelleIType- Gibt zurück:
- names of types that this type permits to be its sub types
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
getSuperInterfaceTypeSignatures
Beschreibung aus Schnittstelle kopiert:ITypeReturns the type signatures of the interfaces that this type implements or extends, in the order in which they are listed in the source.For classes and enum types, this gives the interfaces that this class implements. For interfaces and annotation types, this gives the interfaces that this interface extends. An empty collection is returned if this type does not implement or extend any interfaces. For anonymous types, an empty collection is always returned.
The type signatures may be either unresolved (for source types) or resolved (for binary types), and either basic (for basic types) or rich (for parameterized types). See
Signaturefor details.- Angegeben von:
getSuperInterfaceTypeSignaturesin SchnittstelleIType- Gibt zurück:
- the type signatures of interfaces that this type implements or extends, in the order in which they are listed in the source, an empty collection if none
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Seit:
- 3.0
- Siehe auch:
-
getTypeParameters
Beschreibung aus Schnittstelle kopiert:ITypeReturns the formal type parameters for this type. Returns an empty array if this type has no formal type parameters.- Angegeben von:
getTypeParametersin SchnittstelleIType- Setzt außer Kraft:
getTypeParametersin KlasseNamedMember- Gibt zurück:
- the formal type parameters of this type, in the order declared in the source, 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.
-
getTypeParameterSignatures
Beschreibung aus Schnittstelle kopiert:ITypeReturns the formal type parameter signatures for this type. Returns an empty array if this type has no formal type parameters.The formal type parameter signatures may be either unresolved (for source types) or resolved (for binary types). See
Signaturefor details.- Angegeben von:
getTypeParameterSignaturesin SchnittstelleIType- Gibt zurück:
- the formal type parameter signatures of this type, in the order declared in the source, 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.- Seit:
- 3.0
- Siehe auch:
-
getType
Beschreibung aus Schnittstelle kopiert:ITypeReturns the member type declared in this type with the given simple name. This is a handle-only method. The type may or may not exist. -
getTypeParameter
Beschreibung aus Schnittstelle kopiert:ITypeReturns the type parameter declared in this type with the given name. This is a handle-only method. The type parameter may or may not exist.- Angegeben von:
getTypeParameterin SchnittstelleIType- Parameter:
typeParameterName- the given simple name- Gibt zurück:
- the type parameter declared in this type with the given name
-
getTypeQualifiedName
Beschreibung aus Schnittstelle kopiert:ITypeReturns the type-qualified name of this type, including qualification for any enclosing types, but not including package qualification. For source types, this consists of the simple names of any enclosing types, separated by'$', followed by the simple name of this type or the occurrence count of this type if it is anonymous. For binary types, this is the name of the class file without the ".class" suffix. This method is fully equivalent togetTypeQualifiedName('$'). This is a handle-only method.- Angegeben von:
getTypeQualifiedNamein SchnittstelleIType- Gibt zurück:
- the type-qualified name of this type
- Siehe auch:
-
getTypeQualifiedName
Beschreibung aus Schnittstelle kopiert:ITypeReturns the type-qualified name of this type, including qualification for any enclosing types, but not including package qualification. For source types, this consists of the simple names of any enclosing types, separated byenclosingTypeSeparator, followed by the simple name of this type or the occurrence count of this type if it is anonymous. For binary types, this is the name of the class file without the ".class" suffix, and - since 3.4 - the '$' characters in the class file name are replaced with theenclosingTypeSeparatorcharacter. For example:- the type qualified name of a class B defined as a member of a class A using the '.' separator is "A.B"
- the type qualified name of a class B defined as a member of a class A using the '$' separator is "A$B"
- the type qualified name of a binary type whose class file is A$B.class using the '.' separator is "A.B"
- the type qualified name of a binary type whose class file is A$B.class using the '$' separator is "A$B"
- the type qualified name of an anonymous binary type whose class file is A$1.class using the '.' separator is "A.1"
- Angegeben von:
getTypeQualifiedNamein SchnittstelleIType- Parameter:
enclosingTypeSeparator- the specified enclosing type separator- Gibt zurück:
- the type-qualified name of this type
-
getTypes
Beschreibung aus Schnittstelle kopiert:ITypeReturns the immediate member types declared by this type. The results are listed in the order in which they appear in the source or class file.- Angegeben von:
getTypesin SchnittstelleIType- Gibt zurück:
- the immediate member types declared by this type
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
isAnonymous
Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type represents an anonymous type.- Angegeben von:
isAnonymousin SchnittstelleIType- Gibt zurück:
- true if this type represents an anonymous type, false otherwise
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
isClass
Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type represents a class.Note that a class can neither be an interface, an enumeration class, nor an annotation type.
- Angegeben von:
isClassin SchnittstelleIType- Gibt zurück:
- true if this type represents a class, false otherwise
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
isEnum
Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type represents an enumeration class.Note that an enumeration class can neither be a class, an interface, nor an annotation type.
- Angegeben von:
isEnumin SchnittstelleIType- Gibt zurück:
- true if this type represents an enumeration class, false otherwise
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Seit:
- 3.0
- Siehe auch:
-
isRecord
Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type represents a record class.Note that a record class can neither be an enumeration, an interface, nor an annotation type.
- Angegeben von:
isRecordin SchnittstelleIType- Gibt zurück:
- true if this type represents a record class, false otherwise
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Seit:
- 3.26
- Siehe auch:
-
isSealed
Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type is a sealed type.- Angegeben von:
isSealedin SchnittstelleIType- Gibt zurück:
- true if this type this type is a sealed type, false otherwise
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Siehe auch:
-
isInterface
Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type represents an interface.Note that an interface can also be an annotation type, but it can neither be a class nor an enumeration class.
- Angegeben von:
isInterfacein SchnittstelleIType- Gibt zurück:
- true if this type represents an interface, false otherwise
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
isAnnotation
Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type represents an annotation type.Note that an annotation type is also an interface, but it can neither be a class nor an enumeration class.
- Angegeben von:
isAnnotationin SchnittstelleIType- Gibt zurück:
- true if this type represents an annotation type, false otherwise
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Seit:
- 3.0
- Siehe auch:
-
isLocal
Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type represents a local type. For an anonymous type, this method returns true.Note: This deviates from JLS3 14.3, which states that anonymous types are not local types since they do not have a name.
- Angegeben von:
isLocalin SchnittstelleIType- Gibt zurück:
- true if this type represents a local type, false otherwise
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Siehe auch:
-
isMember
Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type represents a member type.- Angegeben von:
isMemberin SchnittstelleIType- Gibt zurück:
- true if this type represents a member type, false otherwise
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
isResolved
public boolean isResolved()Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type represents a resolved type. If a type is resolved, its key contains resolved information.- Angegeben von:
isResolvedin SchnittstelleIType- Gibt zurück:
- whether this type represents a resolved type.
-
loadTypeHierachy
public ITypeHierarchy loadTypeHierachy(InputStream input, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeLoads a previously saved ITypeHierarchy from an input stream. A type hierarchy can be stored using ITypeHierachy#store(OutputStream). Only hierarchies originally created by the following methods can be loaded:- IType#newSupertypeHierarchy(IProgressMonitor)
- IType#newTypeHierarchy(IJavaProject, IProgressMonitor)
- IType#newTypeHierarchy(IProgressMonitor)
- Angegeben von:
loadTypeHierachyin SchnittstelleIType- Parameter:
input- stream where hierarchy will be readmonitor- the given progress monitor- Gibt zurück:
- the stored hierarchy
- Löst aus:
JavaModelException- if the hierarchy could not be restored, reasons include: - type is not the focus of the hierarchy or - unable to read the input stream (wrong format, IOException during reading, ...)- Siehe auch:
-
loadTypeHierachy
public ITypeHierarchy loadTypeHierachy(InputStream input, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException - Löst aus:
JavaModelException
-
newSupertypeHierarchy
public ITypeHierarchy newSupertypeHierarchy(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type hierarchy for this type containing this type and all of its supertypes.- Angegeben von:
newSupertypeHierarchyin SchnittstelleIType- Parameter:
monitor- the given progress monitor- Gibt zurück:
- a type hierarchy for this type containing this type and all of its supertypes
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
newSupertypeHierarchy
public ITypeHierarchy newSupertypeHierarchy(ICompilationUnit[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type hierarchy for this type containing this type and all of its supertypes, considering types in the given working copies. In other words, the list of working copies will take precedence over their original compilation units in the workspace.Note that passing an empty working copy will be as if the original compilation unit had been deleted.
- Angegeben von:
newSupertypeHierarchyin SchnittstelleIType- Parameter:
workingCopies- the working copies that take precedence over their original compilation unitsmonitor- the given progress monitor- Gibt zurück:
- a type hierarchy for this type containing this type and all of its supertypes
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
newSupertypeHierarchy
public ITypeHierarchy newSupertypeHierarchy(IWorkingCopy[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Veraltet.Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type hierarchy for this type containing this type and all of its supertypes, considering types in the given working copies. In other words, the list of working copies will take precedence over their original compilation units in the workspace.Note that passing an empty working copy will be as if the original compilation unit had been deleted.
- Angegeben von:
newSupertypeHierarchyin SchnittstelleIType- Parameter:
workingCopies- the working copies that take precedence over their original compilation unitsmonitor- the given progress monitor- Gibt zurück:
- a type hierarchy for this type containing this type and all of its supertypes
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Siehe auch:
-
newSupertypeHierarchy
public ITypeHierarchy newSupertypeHierarchy(WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type hierarchy for this type containing this type and all of its supertypes, considering types in the working copies with the given owner. In other words, the owner's working copies will take precedence over their original compilation units in the workspace.Note that if a working copy is empty, it will be as if the original compilation unit had been deleted.
- Angegeben von:
newSupertypeHierarchyin SchnittstelleIType- Parameter:
owner- the owner of working copies that take precedence over their original compilation unitsmonitor- the given progress monitor- Gibt zurück:
- a type hierarchy for this type containing this type and all of its supertypes
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
newTypeHierarchy
public ITypeHierarchy newTypeHierarchy(IJavaProject project, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the context of the given project.- Angegeben von:
newTypeHierarchyin SchnittstelleIType- Parameter:
project- the given projectmonitor- the given progress monitor- Gibt zurück:
- a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the context of the given project
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
newTypeHierarchy
public ITypeHierarchy newTypeHierarchy(IJavaProject project, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the context of the given project, considering types in the working copies with the given owner. In other words, the owner's working copies will take precedence over their original compilation units in the workspace.Note that if a working copy is empty, it will be as if the original compilation unit had been deleted.
- Angegeben von:
newTypeHierarchyin SchnittstelleIType- Parameter:
project- the given projectowner- the owner of working copies that take precedence over their original compilation unitsmonitor- the given progress monitor- Gibt zurück:
- a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the context of the given project
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
newTypeHierarchy
public ITypeHierarchy newTypeHierarchy(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Veraltet.Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace.- Angegeben von:
newTypeHierarchyin SchnittstelleIType- Parameter:
monitor- the given progress monitor- Gibt zurück:
- a type hierarchy for this type containing
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Siehe auch:
-
newTypeHierarchy
public ITypeHierarchy newTypeHierarchy(ICompilationUnit[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace, considering types in the given working copies. In other words, the list of working copies that will take precedence over their original compilation units in the workspace.Note that passing an empty working copy will be as if the original compilation unit had been deleted.
- Angegeben von:
newTypeHierarchyin SchnittstelleIType- Parameter:
workingCopies- the working copies that take precedence over their original compilation unitsmonitor- the given progress monitor- Gibt zurück:
- a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
newTypeHierarchy
public ITypeHierarchy newTypeHierarchy(IWorkingCopy[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Veraltet.Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace, considering types in the given working copies. In other words, the list of working copies that will take precedence over their original compilation units in the workspace.Note that passing an empty working copy will be as if the original compilation unit had been deleted.
- Angegeben von:
newTypeHierarchyin SchnittstelleIType- Parameter:
workingCopies- the working copies that take precedence over their original compilation unitsmonitor- the given progress monitor- Gibt zurück:
- a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Siehe auch:
-
newTypeHierarchy
public ITypeHierarchy newTypeHierarchy(WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:ITypeCreates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace, considering types in the working copies with the given owner. In other words, the owner's working copies will take precedence over their original compilation units in the workspace.Note that if a working copy is empty, it will be as if the original compilation unit had been deleted.
- Angegeben von:
newTypeHierarchyin SchnittstelleIType- Parameter:
owner- the owner of working copies that take precedence over their original compilation unitsmonitor- the given progress monitor- Gibt zurück:
- a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace
- Löst aus:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
resolved
- Setzt außer Kraft:
resolvedin KlasseJavaElement
-
sourceFileName
-
toStringInfo
Beschreibung aus Klasse kopiert:JavaElementDebugging purposes- Setzt außer Kraft:
toStringInfoin KlasseJavaElement- Parameter:
showResolvedInfo- TODO
-
toStringName
Beschreibung aus Klasse kopiert:JavaElementDebugging purposes- Setzt außer Kraft:
toStringNamein KlasseSourceRefElement
-
getAttachedJavadoc
public String getAttachedJavadoc(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Beschreibung aus Schnittstelle kopiert:IJavaElementReturns the Javadoc as HTML source if this element has attached Javadoc,
nullotherwise.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,
nullis returned.The HTML is extracted from the attached Javadoc and provided as is. No transformation or validation is done.
- Angegeben von:
getAttachedJavadocin SchnittstelleIJavaElement- Setzt außer Kraft:
getAttachedJavadocin KlasseJavaElement- Parameter:
monitor- the given progress monitor, can benull- Gibt zurück:
- the extracted javadoc from the attached javadoc,
nullif 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
-
isLambda
public boolean isLambda()Beschreibung aus Schnittstelle kopiert:ITypeReturns whether this type represents a lambda expression.
-