Klasse AnonymousClassDeclaration

java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.ASTNode
org.aspectj.org.eclipse.jdt.core.dom.AnonymousClassDeclaration

public class AnonymousClassDeclaration extends ASTNode
Anonymous class declaration AST node type. For JLS2, this type of node appears only as a child on a class instance creation expression. For JLS3, this type of node appears may also appear as the child of an enum constant declaration.
 AnonymousClassDeclaration:
        { ClassBodyDeclaration }
 
Seit:
2.0
Siehe auch:
  • Felddetails

  • Methodendetails

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameter:
      apiLevel - the API level; one of the AST.JLS* constants
      Gibt zurück:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
      Seit:
      3.0
    • bodyDeclarations

      public List bodyDeclarations()
      Returns the live ordered list of body declarations of this anonymous class declaration.
      Gibt zurück:
      the live list of body declarations (element type: BodyDeclaration)
    • resolveBinding

      public ITypeBinding resolveBinding()
      Resolves and returns the binding for the anonymous class declared in this declaration.

      Note that bindings are generally unavailable unless requested when the AST is being built.

      Gibt zurück:
      the binding, or null if the binding cannot be resolved