Class LambdaExpression
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.aspectj.org.eclipse.jdt.internal.core.JavaElement
org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
org.aspectj.org.eclipse.jdt.internal.core.Member
org.aspectj.org.eclipse.jdt.internal.core.NamedMember
org.aspectj.org.eclipse.jdt.internal.core.SourceType
org.aspectj.org.eclipse.jdt.internal.core.LambdaExpression
- All Implemented Interfaces:
IAnnotatable, IJavaElement, IMember, IParent, ISourceManipulation, ISourceReference, IType, org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
BinaryLambdaExpression, ResolvedLambdaExpression
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final Stringprotected LambdaMethodprotected final intprotected final intFields inherited from class SourceType
localOccurrenceCountFields inherited from class NamedMember
nameFields inherited from class 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_STRINGSModifier and TypeFieldDescriptionstatic final charstatic final charstatic final charstatic final charstatic final charBefore ')','&'and '"' became the newest additions as delimiters, the former two were allowed as part of element attributes and possibly stored.static final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charprotected static final JavaElement[]protected static final Objectstatic final String[]Fields inherited from interface 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_PARAMETERModifier and TypeFieldDescriptionstatic final intConstant representing an annotation.static final intConstant representing a class file.static final intConstant representing a Java compilation unit.static final intConstant representing a field.static final intConstant representing all import declarations within a compilation unit.static final intConstant representing an import declaration within a compilation unit.static final intConstant representing a stand-alone instance or class initializer.static final intConstant representing a Java model (workspace level object).static final intConstant represents a module descriptor.static final intConstant representing a Java project.static final intConstant representing a local variable declaration.static final intConstant representing a method or constructor.static final intConstant representing a package declaration within a compilation unit.static final intConstant representing a package fragment.static final intConstant representing a package fragment root.static final intConstant representing a type (a class or interface).static final intConstant representing a type parameter declaration. -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected voidThis element is being closed.booleanReturns true if this handle represents the same Java element as the given handle.findLambdaSuperType(LambdaExpression lambdaExpression) Returns the immediate children of this element.getElementInfo(org.eclipse.core.runtime.IProgressMonitor monitor) Returns the info for this handle.getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner) protected voidprotected voidgetHandleMemento(StringBuilder buff, boolean serializeParent, boolean serializeChild) protected charReturns thecharthat marks the start of this handles contribution to a memento.getPrimaryElement(boolean checkOwner) 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.booleanReturns whether this type represents an anonymous type.booleanisLambda()Returns whether this type represents a lambda expression.booleanisLocal()Returns whether this type represents a local type.voidtoStringName(StringBuilder buffer) Debugging purposesMethods inherited from class SourceType
codeComplete, codeComplete, codeComplete, codeComplete, codeComplete, codeComplete, createField, createInitializer, createMethod, createType, findMethods, getAnnotations, getChildrenForCategory, getClassFile, getDeclaringType, getElementType, getField, getFields, getFullyQualifiedName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getInitializer, getInitializers, getKey, getMethod, getMethods, getOccurrenceCountSignature, getPackageFragment, getPermittedSubtypeNames, getRecordComponent, getRecordComponents, getSuperclassName, getSuperclassTypeSignature, getSuperInterfaceNames, getType, getTypeParameter, getTypeParameters, getTypeParameterSignatures, getTypeQualifiedName, getTypeQualifiedName, getTypes, isAnnotation, isClass, isEnum, isImplicitlyDeclared, isInterface, isMember, isRecord, isResolved, isSealed, loadTypeHierachy, loadTypeHierachy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, toStringInfoModifier and TypeMethodDescriptionvoidcodeComplete(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) Deprecated.voidcodeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, ICompletionRequestor requestor, WorkingCopyOwner owner) Deprecated.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.IMethod[]findMethods(IMethod method) Finds the methods in this type that correspond to the given method.Returns the annotations for 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).Returns the type in which this member is declared, ornullif this member is not declared in a type (for example, a top-level type).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.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.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.getKey()Returns the binding key for this type only if the given type isresolved.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.protected StringReturns the package fragment in which this element is defined.String[]Returns the names of types that this sealed type permits to be its subtypes.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.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.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.booleanisClass()Returns whether this type represents a class.booleanisEnum()Returns whether this type represents an enumeration class.booleanReturns whether this type is implicitly declared.booleanReturns whether this type represents an interface.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) NOTE: This method is not part of the API has it is not clear clients would easily use it: they would need to first make sure all working copies for the given owner exist before calling it.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) Deprecated.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) Deprecated.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) Creates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace.protected voidtoStringInfo(int tab, StringBuilder buffer, Object info, boolean showResolvedInfo) for debugging onlyMethods inherited from class NamedMember
getElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getKey, getTypeQualifiedName, resolveType, resolveTypeModifier and TypeMethodDescriptionReturns the name of this element.getFullyQualifiedName(char enclosingTypeSeparator, boolean showParameters) protected StringgetFullyQualifiedParameterizedName(String fullyQualifiedName, String uniqueKey) protected Stringprotected Stringprotected StringgetKey(IModuleDescription module, boolean forceOpen) protected StringgetTypeQualifiedName(char enclosingTypeSeparator, boolean showParameters) String[][]resolveType(String typeName) String[][]resolveType(String typeName, WorkingCopyOwner owner) Methods inherited from class Member
areSimilarMethods, convertConstant, findMethods, getCategories, getFlags, getJavadocRange, getNameRange, getOuterMostLocalContext, getType, getTypeRoot, isBinary, isMainMethod, isMainMethodCandidate, isReadOnly, readableNameModifier and TypeMethodDescriptionprotected 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.intgetFlags()Returns the modifier flags for this member.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) protected booleanisMainMethodCandidate(IMethod method) booleanReturns whether this Java element is read-only.Methods inherited from class SourceRefElement
copy, createElementInfo, delete, findNode, generateInfos, getAnnotation, getCompilationUnit, getCorrespondingResource, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, incOccurrenceCount, isStructureKnown, move, rename, resource, setOccurrenceCountModifier and TypeMethodDescriptionvoidcopy(IJavaElement container, IJavaElement sibling, String rename, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) protected JavaElementInfoReturns a new element info for this element.voiddelete(boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) findNode(CompilationUnit ast) Returns theASTNodethat corresponds to thisJavaElementornullif there is no corresponding node.protected voidgenerateInfos(IElementInfo info, Map<IJavaElement, IElementInfo> newElements, org.eclipse.core.runtime.IProgressMonitor pm) Generates the element infos for this element, its ancestors (if they are not opened) and its children (if it is an Openable).getAnnotation(String name) org.eclipse.core.resources.IResourceElements within compilation units and class files have no corresponding resource.getHandleUpdatingCountFromMemento(MementoTokenizer memento, WorkingCopyOwner owner) intReturn the first instance of IOpenable in the hierarchy of this type (going up the hierarchy from this type);org.eclipse.core.runtime.IPathgetPath()Returns the path to the innermost resource enclosing this element.Returns the source code associated with this element.Returns the source range associated with this element.org.eclipse.core.resources.IResourceReturns the smallest underlying resource that contains this element, ornullif this element is not contained in a resource.booleanvoidbooleanReturns whether the structure of this element is known.voidmove(IJavaElement container, IJavaElement sibling, String rename, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) voidorg.eclipse.core.resources.IResourceresource()voidsetOccurrenceCount(int occurrenceCount) Methods inherited from class JavaElement
appendEscapedDelimiter, close, escapeMementoName, exists, getAncestor, getAttachedJavadoc, getChildrenOfType, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, getSourceElementAt, getSourceMapper, getURLContents, hashCode, isAncestorOf, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, resetHashCode, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCacheModifier and TypeMethodDescriptionprotected voidappendEscapedDelimiter(StringBuilder buffer, char delimiter) voidclose()protected voidescapeMementoName(StringBuilder buffer, String mementoName) booleanexists()Returns whether this Java element exists in the model.getAncestor(int ancestorType) Returns this Java element or the first ancestor of this element that has the given type.getAttachedJavadoc(org.eclipse.core.runtime.IProgressMonitor monitor) Returns the Javadoc as HTML source if this element has attached Javadoc,nullotherwise.getChildrenOfType(int type) Returns a collection of (immediate) children of this node of the specified type.Returns the info for this handle.getHandleFromMemento(MementoTokenizer memento, WorkingCopyOwner owner) Returns a string representation of this element handle.protected URLReturns the Java model.Returns the Java project this element is contained in, ornullif this element is not contained in any Java project (for instance, theIJavaModelis not contained in any Java project).protected static URLReturns the first openable parent.Returns the element directly containing this element, ornullif this element has no parent.Returns the primary element (whose compilation unit is the primary compilation unit) this working copy element was created from, or this element if it is a descendant of a primary compilation unit or if it is not a descendant of a working copy (e.g.org.eclipse.core.resources.IResourceReturns the innermost resource enclosing this element.org.eclipse.core.runtime.jobs.ISchedulingRuleReturns the scheduling rule associated with this Java element.protected IJavaElementgetSourceElementAt(int position) Returns the element that is located at the given source position in this element.Returns the SourceMapper facility for this element, ornullif this element does not have a SourceMapper.protected StringgetURLContents(URL baseLoc, String docUrlValue) final inthashCode()Returns the hash code for this Java element.booleanReturns true if this element is an ancestor of the given element, otherwise false.protected JavaModelStatusnewJavaModelException(org.eclipse.core.runtime.IStatus status) Creates and returns a new Java model exception for this element with the given status.Creates and returns a new not present exception for this element.protected IElementInfoopenWhenClosed(IElementInfo info, boolean forceAdd, org.eclipse.core.runtime.IProgressMonitor monitor) protected voidshould not be needed but some implementations do have mutable member "occurrenceCount"protected StringtabString(int tab) Debugging purposestoString()Debugging purposesprotected voidtoString(int tab, StringBuilder buffer) Debugging purposesprotected voidtoStringAncestors(StringBuilder buffer) Debugging purposesprotected voidtoStringChildren(int tab, StringBuilder buffer, Object info) Debugging purposestoStringInfo(int tab, StringBuilder buffer) Debugging purposesDebugging purposestoStringWithAncestors(boolean showResolvedInfo) Debugging purposesprotected voidvalidateAndCache(URL baseLoc, FileNotFoundException e) Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from interface IAnnotatable
getAnnotationModifier and TypeMethodDescriptiongetAnnotation(String name) Returns the annotation with the given name declared on this element.Methods inherited from interface IMember
getCompilationUnit, getOccurrenceCountModifier and TypeMethodDescriptionReturns the compilation unit in which this member is declared, ornullif this member is not declared in a compilation unit (for example, a binary type).intReturns the position relative to the order this member is defined in the source.Methods inherited from interface IParent
hasChildrenModifier and TypeMethodDescriptionbooleanReturns whether this element has one or more immediate children.Methods inherited from interface ISourceManipulation
copy, delete, move, renameModifier and TypeMethodDescriptionvoidcopy(IJavaElement container, IJavaElement sibling, String rename, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Copies this element to the given container.voiddelete(boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Deletes this element, forcing if specified and necessary.voidmove(IJavaElement container, IJavaElement sibling, String rename, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Moves this element to the given container.voidRenames this element to the given name.Methods inherited from interface ISourceReference
existsModifier and TypeMethodDescriptionbooleanexists()Returns whether this element exists in the model.Methods inherited from interface IType
getElementName, resolveType, resolveTypeModifier and TypeMethodDescriptionReturns the simple name of this type, unqualified by package or enclosing type.String[][]resolveType(String typeName) Resolves the given type name within the context of this type (depending on the type hierarchy and its imports).String[][]resolveType(String typeName, WorkingCopyOwner owner) Resolves the given type name within the context of this type (depending on the type hierarchy and its imports) and using the given owner's working copies, considering types in the working copies with the given owner.
-
Field Details
-
lambdaMethod
-
sourceStart
protected final int sourceStart -
sourceEnd
protected final int sourceEnd -
arrowPosition
protected final int arrowPosition -
interphase
-
-
Method Details
-
findLambdaSuperType
-
closing
Description copied from class:SourceRefElementThis element is being closed. Do any necessary cleanup.- Overrides:
closingin classSourceType- Throws:
JavaModelException
-
equals
Description copied from class: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.
- Overrides:
equalsin classSourceType- See Also:
-
calculateHashCode
protected int calculateHashCode()- Overrides:
calculateHashCodein classSourceRefElement
-
getElementInfo
public SourceTypeElementInfo getElementInfo(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Description copied from class: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.- Overrides:
getElementInfoin classJavaElement- Throws:
JavaModelException- if the element is not present or not accessible
-
getHandleMementoDelimiter
protected char getHandleMementoDelimiter()Description copied from class:JavaElementReturns thecharthat marks the start of this handles contribution to a memento.- Overrides:
getHandleMementoDelimiterin classMember- See Also:
-
getHandleMemento
- Overrides:
getHandleMementoin classSourceRefElement
-
getHandleMemento
protected void getHandleMemento(StringBuilder buff, boolean serializeParent, boolean serializeChild) -
getHandleFromMemento
public IJavaElement getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner) - Overrides:
getHandleFromMementoin classSourceType
-
getChildren
Description copied from interface:IParentReturns the immediate children of this element. Unless otherwise specified by the implementing element, the children are in no particular order.- Specified by:
getChildrenin interfaceIParent- Overrides:
getChildrenin classJavaElement- Returns:
- the immediate children of this element
- Throws:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource- See Also:
-
isLocal
public boolean isLocal()Description copied from interface: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.
- Specified by:
isLocalin interfaceIType- Overrides:
isLocalin classSourceType- Returns:
- true if this type represents a local type, false otherwise
- See Also:
-
resolved
- Overrides:
resolvedin classSourceType
-
getMethod
-
isLambda
public boolean isLambda()Description copied from interface:ITypeReturns whether this type represents a lambda expression.- Specified by:
isLambdain interfaceIType- Overrides:
isLambdain classSourceType- Returns:
- true if this type represents a lambda expression, false otherwise
-
isAnonymous
public boolean isAnonymous()Description copied from interface:ITypeReturns whether this type represents an anonymous type.- Specified by:
isAnonymousin interfaceIType- Overrides:
isAnonymousin classSourceType- Returns:
- true if this type represents an anonymous type, false otherwise
- See Also:
-
toStringName
Description copied from class:JavaElementDebugging purposes- Overrides:
toStringNamein classSourceRefElement
-
getPrimaryElement
- Overrides:
getPrimaryElementin classSourceType
-
getSuperInterfaceTypeSignatures
Description copied from interface: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.- Specified by:
getSuperInterfaceTypeSignaturesin interfaceIType- Overrides:
getSuperInterfaceTypeSignaturesin classSourceType- Returns:
- 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
- Throws:
JavaModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.- See Also:
-