org.aspectj.org.eclipse.jdt.internal.core
Class LambdaExpression

java.lang.Object
  extended by PlatformObject
      extended by org.aspectj.org.eclipse.jdt.internal.core.JavaElement
          extended by org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
              extended by org.aspectj.org.eclipse.jdt.internal.core.Member
                  extended by org.aspectj.org.eclipse.jdt.internal.core.NamedMember
                      extended by org.aspectj.org.eclipse.jdt.internal.core.SourceType
                          extended by org.aspectj.org.eclipse.jdt.internal.core.LambdaExpression
All Implemented Interfaces:
IAnnotatable, IJavaElement, IMember, IParent, ISourceManipulation, ISourceReference, IType
Direct Known Subclasses:
BinaryLambdaExpression, ResolvedLambdaExpression

public class LambdaExpression
extends SourceType


Field Summary
protected  int arrowPosition
           
protected  java.lang.String interphase
           
protected  int sourceEnd
           
protected  int sourceStart
           
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceType
localOccurrenceCount
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.NamedMember
name
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
occurrenceCount
 
Fields inherited from class 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_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_STRING, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, parent
 
Fields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER
 
Method Summary
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.
 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
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceType
codeComplete, codeComplete, codeComplete, codeComplete, codeComplete, createField, createInitializer, createMethod, createType, findMethods, getAnnotations, getChildrenForCategory, 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, isResolved, loadTypeHierachy, loadTypeHierachy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, toStringInfo
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.NamedMember
getElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getTypeQualifiedName, resolveType, resolveType
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.Member
areSimilarMethods, convertConstant, findMethods, getCategories, getClassFile, getFlags, getJavadocRange, getNameRange, getOuterMostLocalContext, getType, getTypeRoot, isBinary, isMainMethod, isReadOnly, readableName
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
copy, createElementInfo, delete, findNode, generateInfos, getAnnotation, getCompilationUnit, getCorrespondingResource, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, isStructureKnown, move, rename, resource
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement
appendEscapedDelimiter, 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, validateAndCache
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IType
getElementName, resolveType, resolveType
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IMember
getCategories, getClassFile, getCompilationUnit, getFlags, getJavadocRange, getOccurrenceCount, getType, getTypeRoot, isBinary
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceReference
exists, getNameRange, getSource, getSourceRange
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceManipulation
copy, delete, move, rename
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent
hasChildren
 
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IAnnotatable
getAnnotation
 

Field Detail

sourceStart

protected int sourceStart

sourceEnd

protected int sourceEnd

arrowPosition

protected int arrowPosition

interphase

protected java.lang.String interphase
Method Detail

closing

protected void closing(java.lang.Object info)
                throws JavaModelException
Description copied from class: SourceRefElement
This element is being closed. Do any necessary cleanup.

Overrides:
closing in class SourceType
Throws:
JavaModelException

equals

public boolean equals(java.lang.Object o)
Description copied from class: JavaElement
Returns 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:
equals in class SourceType
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Description copied from class: JavaElement
Returns the hash code for this Java element. By default, the hash code for an element is a combination of its name and parent's hash code. Elements with other requirements must override this method.

Overrides:
hashCode in class JavaElement

getElementInfo

public java.lang.Object getElementInfo(IProgressMonitor monitor)
                                throws JavaModelException
Description copied from class: JavaElement
Returns 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:
getElementInfo in class JavaElement
Throws:
JavaModelException - if the element is not present or not accessible

getHandleMementoDelimiter

protected char getHandleMementoDelimiter()
Description copied from class: JavaElement
Returns the char that marks the start of this handles contribution to a memento.

Overrides:
getHandleMementoDelimiter in class Member
See Also:
JavaElement.getHandleMemento()

getHandleMemento

protected void getHandleMemento(java.lang.StringBuffer buff)
Overrides:
getHandleMemento in class SourceRefElement

getHandleMemento

protected void getHandleMemento(java.lang.StringBuffer buff,
                                boolean serializeParent,
                                boolean serializeChild)

getHandleFromMemento

public IJavaElement getHandleFromMemento(java.lang.String token,
                                         MementoTokenizer memento,
                                         WorkingCopyOwner workingCopyOwner)
Overrides:
getHandleFromMemento in class SourceType

getChildren

public IJavaElement[] getChildren()
                           throws JavaModelException
Description copied from interface: IParent
Returns the immediate children of this element. Unless otherwise specified by the implementing element, the children are in no particular order.

Specified by:
getChildren in interface IParent
Overrides:
getChildren in class JavaElement
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:
IParent

isLocal

public boolean isLocal()
Description copied from interface: IType
Returns 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:
isLocal in interface IType
Overrides:
isLocal in class SourceType
Returns:
true if this type represents a local type, false otherwise
See Also:
IType.isLocal()

resolved

public JavaElement resolved(Binding binding)
Overrides:
resolved in class SourceType

getMethod

public IMethod getMethod()

isLambda

public boolean isLambda()
Description copied from interface: IType
Returns whether this type represents a lambda expression.

Specified by:
isLambda in interface IType
Overrides:
isLambda in class SourceType
Returns:
true if this type represents a lambda expression, false otherwise

isAnonymous

public boolean isAnonymous()
Description copied from interface: IType
Returns whether this type represents an anonymous type.

Specified by:
isAnonymous in interface IType
Overrides:
isAnonymous in class SourceType
Returns:
true if this type represents an anonymous type, false otherwise
See Also:
IType.isAnonymous()

toStringName

public void toStringName(java.lang.StringBuffer buffer)
Description copied from class: JavaElement
Debugging purposes

Overrides:
toStringName in class SourceRefElement

getPrimaryElement

public IJavaElement getPrimaryElement(boolean checkOwner)
Overrides:
getPrimaryElement in class SourceType

getSuperInterfaceTypeSignatures

public java.lang.String[] getSuperInterfaceTypeSignatures()
                                                   throws JavaModelException
Description copied from interface: IType
Returns 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 Signature for details.

Specified by:
getSuperInterfaceTypeSignatures in interface IType
Overrides:
getSuperInterfaceTypeSignatures in class SourceType
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:
IType.getSuperInterfaceTypeSignatures()