Klasse LambdaMethod

Alle implementierten Schnittstellen:
IAnnotatable, IJavaElement, IMember, IMethod, IParent, ISourceManipulation, ISourceReference, org.eclipse.core.runtime.IAdaptable
Bekannte direkte Unterklassen:
BinaryLambdaMethod

public class LambdaMethod extends SourceMethod
  • Methodendetails

    • getReturnType

      public String getReturnType() throws JavaModelException
      Beschreibung aus Schnittstelle kopiert: IMethod
      Returns the type signature of the return value of this method. For constructors, this returns the signature for void.

      For example, a source method declared as public String getName() would return "QString;".

      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 Signature for details.

      Angegeben von:
      getReturnType in Schnittstelle IMethod
      Setzt außer Kraft:
      getReturnType in Klasse SourceMethod
      Gibt zurück:
      the type signature of the return value of this method, void for constructors
      Löst aus:
      JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource.
      Siehe auch:
    • getSignature

      public String getSignature() throws JavaModelException
      Beschreibung aus Schnittstelle kopiert: IMethod
      Returns the signature of this method. This includes the signatures for the parameter types and return type, but does not include the method name, exception types, or type parameters.

      For example, a source method declared as public void foo(String text, int length) would return "(QString;I)V".

      The type signatures embedded in the method 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 Signature for details.

      Angegeben von:
      getSignature in Schnittstelle IMethod
      Setzt außer Kraft:
      getSignature in Klasse SourceMethod
      Gibt zurück:
      the signature of this method
      Löst aus:
      JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource.
      Siehe auch:
    • isLambdaMethod

      public boolean isLambdaMethod()
      Beschreibung aus Schnittstelle kopiert: IMethod
      Returns whether this method represents a lambda expression.
      Angegeben von:
      isLambdaMethod in Schnittstelle IMethod
      Setzt außer Kraft:
      isLambdaMethod in Klasse SourceMethod
      Gibt zurück:
      true if this method represents a lambda expression, false otherwise.
      Siehe auch:
    • closing

      protected void closing(Object info)
      Beschreibung aus Klasse kopiert: SourceRefElement
      This element is being closed. Do any necessary cleanup.
      Setzt außer Kraft:
      closing in Klasse SourceMethod
    • equals

      public boolean equals(Object o)
      Beschreibung aus Klasse kopiert: 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.

      Setzt außer Kraft:
      equals in Klasse SourceMethod
      Siehe auch:
    • getElementInfo

      public Object getElementInfo(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException
      Beschreibung aus Klasse kopiert: 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.
      Setzt außer Kraft:
      getElementInfo in Klasse JavaElement
      Löst aus:
      JavaModelException - if the element is not present or not accessible
    • getHandleMemento

      public void getHandleMemento(StringBuffer buff, boolean serializeParent)
    • getHandleMemento

      public void getHandleMemento(StringBuffer buff)
      Setzt außer Kraft:
      getHandleMemento in Klasse SourceMethod
      Siehe auch:
    • getHandleMementoDelimiter

      protected char getHandleMementoDelimiter()
      Beschreibung aus Klasse kopiert: JavaElement
      Returns the char that marks the start of this handles contribution to a memento.
      Setzt außer Kraft:
      getHandleMementoDelimiter in Klasse SourceMethod
      Siehe auch:
    • getKey

      public String getKey()
      Beschreibung aus Schnittstelle kopiert: IMethod
      Returns the binding key for this method only if the given method is resolved. A binding key is a key that uniquely identifies this method. It allows access to:
      • generic info for parameterized methods
      • the actual return type for references to Object.getClass()
      • the actual parameter types and return type for references to signature polymorphic methods from class MethodHandle

      If the given method is not resolved, the returned key is simply the java element's key.

      Angegeben von:
      getKey in Schnittstelle IMethod
      Setzt außer Kraft:
      getKey in Klasse SourceMethod
      Gibt zurück:
      the binding key for this method
      Siehe auch:
    • hashCode

      public int hashCode()
      Beschreibung aus Klasse kopiert: 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.
      Setzt außer Kraft:
      hashCode in Klasse SourceMethod
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.internal.core.JavaElement#hashCode()
    • isResolved

      public boolean isResolved()
      Beschreibung aus Schnittstelle kopiert: IMethod
      Returns whether this method represents a resolved method. If a method is resolved, its key contains resolved information.
      Angegeben von:
      isResolved in Schnittstelle IMethod
      Setzt außer Kraft:
      isResolved in Klasse SourceMethod
      Gibt zurück:
      whether this method represents a resolved method.
    • resolved

      public JavaElement resolved(Binding binding)
      Setzt außer Kraft:
      resolved in Klasse SourceMethod