public class LambdaExpression extends SourceType
| Modifier and Type | Field and Description |
|---|---|
protected int |
arrowPosition |
protected java.lang.String |
interphase |
protected int |
sourceEnd |
protected int |
sourceStart |
localOccurrenceCountnameoccurrenceCountJEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_DELIMITER_ESCAPE, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LAMBDA_EXPRESSION, JEM_LAMBDA_METHOD, JEM_LOCALVARIABLE, JEM_METHOD, JEM_MODULAR_CLASSFILE, JEM_MODULE, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_STRING, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, NO_STRINGS, parentANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_MODULE, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER| Modifier and Type | Method and Description |
|---|---|
protected void |
closing(java.lang.Object info)
This element is being closed.
|
boolean |
equals(java.lang.Object o)
Returns true if this handle represents the same Java element
as the given handle.
|
TypeBinding |
findLambdaSuperType(LambdaExpression lambdaExpression) |
IJavaElement[] |
getChildren()
Returns the immediate children of this element.
|
java.lang.Object |
getElementInfo(IProgressMonitor monitor)
Returns the info for this handle.
|
IJavaElement |
getHandleFromMemento(java.lang.String token,
MementoTokenizer memento,
WorkingCopyOwner workingCopyOwner) |
protected void |
getHandleMemento(java.lang.StringBuffer buff) |
protected void |
getHandleMemento(java.lang.StringBuffer buff,
boolean serializeParent,
boolean serializeChild) |
protected char |
getHandleMementoDelimiter()
Returns the
char that marks the start of this handles
contribution to a memento. |
IMethod |
getMethod() |
IJavaElement |
getPrimaryElement(boolean checkOwner) |
java.lang.String[] |
getSuperInterfaceTypeSignatures()
Returns the type signatures of the interfaces that this type
implements or extends, in the order in which they are listed in the
source.
|
int |
hashCode()
Returns the hash code for this Java element.
|
boolean |
isAnonymous()
Returns whether this type represents an anonymous type.
|
boolean |
isLambda()
Returns whether this type represents a lambda expression.
|
boolean |
isLocal()
Returns whether this type represents a local type.
|
JavaElement |
resolved(Binding binding) |
void |
toStringName(java.lang.StringBuffer buffer)
Debugging purposes
|
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, getSuperclassName, getSuperclassTypeSignature, getSuperInterfaceNames, getType, getTypeParameter, getTypeParameters, getTypeParameterSignatures, getTypeQualifiedName, getTypeQualifiedName, getTypes, isAnnotation, isClass, isEnum, isInterface, isMember, isRecord, isResolved, loadTypeHierachy, loadTypeHierachy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, toStringInfogetElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getKey, getTypeQualifiedName, resolveType, resolveTypeareSimilarMethods, convertConstant, findMethods, getCategories, getFlags, getJavadocRange, getNameRange, getOuterMostLocalContext, getType, getTypeRoot, isBinary, isMainMethod, isReadOnly, readableNamecopy, createElementInfo, delete, findNode, generateInfos, getAnnotation, getCompilationUnit, getCorrespondingResource, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, isStructureKnown, move, rename, resourceappendEscapedDelimiter, close, escapeMementoName, exists, getAncestor, getAttachedJavadoc, getChildrenOfType, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, getSourceElementAt, getSourceMapper, getURLContents, isAncestorOf, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCacheclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetElementName, resolveType, resolveTypegetCategories, getCompilationUnit, getFlags, getJavadocRange, getOccurrenceCount, getType, getTypeRoot, isBinaryexists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnownexists, getNameRange, getSource, getSourceRangecopy, delete, move, renamehasChildrengetAnnotationprotected int sourceStart
protected int sourceEnd
protected int arrowPosition
protected java.lang.String interphase
public TypeBinding findLambdaSuperType(LambdaExpression lambdaExpression)
protected void closing(java.lang.Object info)
throws JavaModelException
SourceRefElementclosing in class SourceTypeJavaModelExceptionpublic boolean equals(java.lang.Object o)
JavaElementIf a subclass has other requirements for equality, this method must be overridden.
equals in class SourceTypeObject.equals(java.lang.Object)public int hashCode()
JavaElementhashCode in class JavaElementpublic java.lang.Object getElementInfo(IProgressMonitor monitor)
throws JavaModelException
JavaElementgetElementInfo in class JavaElementJavaModelException - if the element is not present or not accessibleprotected char getHandleMementoDelimiter()
JavaElementchar that marks the start of this handles
contribution to a memento.getHandleMementoDelimiter in class MemberJavaElement.getHandleMemento()protected void getHandleMemento(java.lang.StringBuffer buff)
getHandleMemento in class SourceRefElementprotected void getHandleMemento(java.lang.StringBuffer buff,
boolean serializeParent,
boolean serializeChild)
public IJavaElement getHandleFromMemento(java.lang.String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner)
getHandleFromMemento in class SourceTypepublic IJavaElement[] getChildren() throws JavaModelException
IParentgetChildren in interface IParentgetChildren in class JavaElementJavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resourceIParentpublic boolean isLocal()
ITypeNote: This deviates from JLS3 14.3, which states that anonymous types are not local types since they do not have a name.
isLocal in interface ITypeisLocal in class SourceTypeIType.isLocal()public JavaElement resolved(Binding binding)
resolved in class SourceTypepublic IMethod getMethod()
public boolean isLambda()
ITypeisLambda in interface ITypeisLambda in class SourceTypepublic boolean isAnonymous()
ITypeisAnonymous in interface ITypeisAnonymous in class SourceTypeIType.isAnonymous()public void toStringName(java.lang.StringBuffer buffer)
JavaElementtoStringName in class SourceRefElementpublic IJavaElement getPrimaryElement(boolean checkOwner)
getPrimaryElement in class SourceTypepublic java.lang.String[] getSuperInterfaceTypeSignatures()
throws JavaModelException
ITypeFor 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 Signature for details.
getSuperInterfaceTypeSignatures in interface ITypegetSuperInterfaceTypeSignatures in class SourceTypeJavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resource.IType.getSuperInterfaceTypeSignatures()