All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.extendj.ast.AnonymousDecl Maven / Gradle / Ivy

The newest version!
/* This file was generated with JastAdd2 (http://jastadd.org) version 2.3.0 */
package org.extendj.ast;
import java.util.ArrayList;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.IOException;
import java.util.Set;
import beaver.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentSkipListMap;
import java.util.LinkedHashSet;
import java.util.*;
import org.jastadd.util.PrettyPrintable;
import org.jastadd.util.PrettyPrinter;
import java.util.zip.*;
import java.io.*;
import org.jastadd.util.*;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
/**
 * @ast node
 * @declaredat /home/jesper/git/extendj/java4/grammar/Java.ast:185
 * @astdecl AnonymousDecl : ClassDecl ::= Modifiers  [SuperClass:Access] Implements:Access* BodyDecl*;
 * @production AnonymousDecl : {@link ClassDecl} ::= {@link Modifiers} <ID:String> [SuperClass:{@link Access}] Implements:{@link Access}* {@link BodyDecl}*;

 */
public class AnonymousDecl extends ClassDecl implements Cloneable {
  /**
   * @declaredat ASTNode:1
   */
  public AnonymousDecl() {
    super();
  }
  /**
   * Initializes the child array to the correct size.
   * Initializes List and Opt nta children.
   * @apilevel internal
   * @ast method
   * @declaredat ASTNode:10
   */
  public void init$Children() {
    children = new ASTNode[5];
    setChild(new List(), 1);
    setChild(new Opt(), 2);
    setChild(new Opt(), 3);
    setChild(new List(), 4);
  }
  /**
   * @declaredat ASTNode:17
   */
  @ASTNodeAnnotation.Constructor(
    name = {"Modifiers", "ID", "BodyDecl"},
    type = {"Modifiers", "String", "List"},
    kind = {"Child", "Token", "List"}
  )
  public AnonymousDecl(Modifiers p0, String p1, List p2) {
    setChild(p0, 0);
    setID(p1);
    setChild(p2, 1);
  }
  /**
   * @declaredat ASTNode:27
   */
  public AnonymousDecl(Modifiers p0, beaver.Symbol p1, List p2) {
    setChild(p0, 0);
    setID(p1);
    setChild(p2, 1);
  }
  /** @apilevel low-level 
   * @declaredat ASTNode:33
   */
  protected int numChildren() {
    return 2;
  }
  /**
   * @apilevel internal
   * @declaredat ASTNode:39
   */
  public boolean mayHaveRewrite() {
    return false;
  }
  /** @apilevel internal 
   * @declaredat ASTNode:43
   */
  public void flushAttrCache() {
    super.flushAttrCache();
    getImplicitConstructorOpt_reset();
    isCircular_reset();
    getSuperClassOpt_reset();
    getImplementsList_reset();
  }
  /** @apilevel internal 
   * @declaredat ASTNode:51
   */
  public void flushCollectionCache() {
    super.flushCollectionCache();
  }
  /** @apilevel internal 
   * @declaredat ASTNode:55
   */
  public AnonymousDecl clone() throws CloneNotSupportedException {
    AnonymousDecl node = (AnonymousDecl) super.clone();
    return node;
  }
  /** @apilevel internal 
   * @declaredat ASTNode:60
   */
  public AnonymousDecl copy() {
    try {
      AnonymousDecl node = (AnonymousDecl) clone();
      node.parent = null;
      if (children != null) {
        node.children = (ASTNode[]) children.clone();
      }
      return node;
    } catch (CloneNotSupportedException e) {
      throw new Error("Error: clone not supported for " + getClass().getName());
    }
  }
  /**
   * Create a deep copy of the AST subtree at this node.
   * The copy is dangling, i.e. has no parent.
   * @return dangling copy of the subtree at this node
   * @apilevel low-level
   * @deprecated Please use treeCopy or treeCopyNoTransform instead
   * @declaredat ASTNode:79
   */
  @Deprecated
  public AnonymousDecl fullCopy() {
    return treeCopyNoTransform();
  }
  /**
   * Create a deep copy of the AST subtree at this node.
   * The copy is dangling, i.e. has no parent.
   * @return dangling copy of the subtree at this node
   * @apilevel low-level
   * @declaredat ASTNode:89
   */
  public AnonymousDecl treeCopyNoTransform() {
    AnonymousDecl tree = (AnonymousDecl) copy();
    if (children != null) {
      for (int i = 0; i < children.length; ++i) {
        switch (i) {
        case 2:
        case 3:
          tree.children[i] = new Opt();
          continue;
        case 4:
          tree.children[i] = new List();
          continue;
        }
        ASTNode child = (ASTNode) children[i];
        if (child != null) {
          child = child.treeCopyNoTransform();
          tree.setChild(child, i);
        }
      }
    }
    return tree;
  }
  /**
   * Create a deep copy of the AST subtree at this node.
   * The subtree of this node is traversed to trigger rewrites before copy.
   * The copy is dangling, i.e. has no parent.
   * @return dangling copy of the subtree at this node
   * @apilevel low-level
   * @declaredat ASTNode:118
   */
  public AnonymousDecl treeCopy() {
    AnonymousDecl tree = (AnonymousDecl) copy();
    if (children != null) {
      for (int i = 0; i < children.length; ++i) {
        switch (i) {
        case 2:
        case 3:
          tree.children[i] = new Opt();
          continue;
        case 4:
          tree.children[i] = new List();
          continue;
        }
        ASTNode child = (ASTNode) getChild(i);
        if (child != null) {
          child = child.treeCopy();
          tree.setChild(child, i);
        }
      }
    }
    return tree;
  }
  /** @apilevel internal 
   * @declaredat ASTNode:141
   */
  protected boolean is$Equal(ASTNode node) {
    return super.is$Equal(node) && (tokenString_ID == ((AnonymousDecl) node).tokenString_ID);    
  }
  /**
   * Replaces the Modifiers child.
   * @param node The new node to replace the Modifiers child.
   * @apilevel high-level
   */
  public void setModifiers(Modifiers node) {
    setChild(node, 0);
  }
  /**
   * Retrieves the Modifiers child.
   * @return The current node used as the Modifiers child.
   * @apilevel high-level
   */
  @ASTNodeAnnotation.Child(name="Modifiers")
  public Modifiers getModifiers() {
    return (Modifiers) getChild(0);
  }
  /**
   * Retrieves the Modifiers child.
   * 

This method does not invoke AST transformations.

* @return The current node used as the Modifiers child. * @apilevel low-level */ public Modifiers getModifiersNoTransform() { return (Modifiers) getChildNoTransform(0); } /** * Replaces the lexeme ID. * @param value The new value for the lexeme ID. * @apilevel high-level */ public void setID(String value) { tokenString_ID = value; } /** * JastAdd-internal setter for lexeme ID using the Beaver parser. * @param symbol Symbol containing the new value for the lexeme ID * @apilevel internal */ public void setID(beaver.Symbol symbol) { if (symbol.value != null && !(symbol.value instanceof String)) throw new UnsupportedOperationException("setID is only valid for String lexemes"); tokenString_ID = (String)symbol.value; IDstart = symbol.getStart(); IDend = symbol.getEnd(); } /** * Retrieves the value for the lexeme ID. * @return The value for the lexeme ID. * @apilevel high-level */ @ASTNodeAnnotation.Token(name="ID") public String getID() { return tokenString_ID != null ? tokenString_ID : ""; } /** * Replaces the BodyDecl list. * @param list The new list node to be used as the BodyDecl list. * @apilevel high-level */ public void setBodyDeclList(List list) { setChild(list, 1); } /** * Retrieves the number of children in the BodyDecl list. * @return Number of children in the BodyDecl list. * @apilevel high-level */ public int getNumBodyDecl() { return getBodyDeclList().getNumChild(); } /** * Retrieves the number of children in the BodyDecl list. * Calling this method will not trigger rewrites. * @return Number of children in the BodyDecl list. * @apilevel low-level */ public int getNumBodyDeclNoTransform() { return getBodyDeclListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the BodyDecl list. * @param i Index of the element to return. * @return The element at position {@code i} in the BodyDecl list. * @apilevel high-level */ public BodyDecl getBodyDecl(int i) { return (BodyDecl) getBodyDeclList().getChild(i); } /** * Check whether the BodyDecl list has any children. * @return {@code true} if it has at least one child, {@code false} otherwise. * @apilevel high-level */ public boolean hasBodyDecl() { return getBodyDeclList().getNumChild() != 0; } /** * Append an element to the BodyDecl list. * @param node The element to append to the BodyDecl list. * @apilevel high-level */ public void addBodyDecl(BodyDecl node) { List list = (parent == null) ? getBodyDeclListNoTransform() : getBodyDeclList(); list.addChild(node); } /** @apilevel low-level */ public void addBodyDeclNoTransform(BodyDecl node) { List list = getBodyDeclListNoTransform(); list.addChild(node); } /** * Replaces the BodyDecl list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level */ public void setBodyDecl(BodyDecl node, int i) { List list = getBodyDeclList(); list.setChild(node, i); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level */ @ASTNodeAnnotation.ListChild(name="BodyDecl") public List getBodyDeclList() { List list = (List) getChild(1); return list; } /** * Retrieves the BodyDecl list. *

This method does not invoke AST transformations.

* @return The node representing the BodyDecl list. * @apilevel low-level */ public List getBodyDeclListNoTransform() { return (List) getChildNoTransform(1); } /** * @return the element at index {@code i} in the BodyDecl list without * triggering rewrites. */ public BodyDecl getBodyDeclNoTransform(int i) { return (BodyDecl) getBodyDeclListNoTransform().getChildNoTransform(i); } /** * Retrieves the BodyDecl list. * @return The node representing the BodyDecl list. * @apilevel high-level */ public List getBodyDecls() { return getBodyDeclList(); } /** * Retrieves the BodyDecl list. *

This method does not invoke AST transformations.

* @return The node representing the BodyDecl list. * @apilevel low-level */ public List getBodyDeclsNoTransform() { return getBodyDeclListNoTransform(); } /** * Replaces the (optional) ImplicitConstructor child. * @param node The new node to be used as the ImplicitConstructor child. * @apilevel high-level */ public void setImplicitConstructor(ConstructorDecl node) { getImplicitConstructorOpt().setChild(node, 0); } /** * Check whether the optional ImplicitConstructor child exists. * @return {@code true} if the optional ImplicitConstructor child exists, {@code false} if it does not. * @apilevel high-level */ public boolean hasImplicitConstructor() { return getImplicitConstructorOpt().getNumChild() != 0; } /** * Retrieves the (optional) ImplicitConstructor child. * @return The ImplicitConstructor child, if it exists. Returns {@code null} otherwise. * @apilevel low-level */ public ConstructorDecl getImplicitConstructor() { return (ConstructorDecl) getImplicitConstructorOpt().getChild(0); } /** * Retrieves the optional node for child ImplicitConstructor. This is the Opt node containing the child ImplicitConstructor, not the actual child! *

This method does not invoke AST transformations.

* @return The optional node for child ImplicitConstructor. * @apilevel low-level */ public Opt getImplicitConstructorOptNoTransform() { return (Opt) getChildNoTransform(2); } /** * Retrieves the child position of the optional child ImplicitConstructor. * @return The the child position of the optional child ImplicitConstructor. * @apilevel low-level */ protected int getImplicitConstructorOptChildPosition() { return 2; } /** * This method should not be called. This method throws an exception due to * the corresponding child being an NTA shadowing a non-NTA child. * @param node * @apilevel internal */ public void setSuperClassOpt(Opt node) { throw new Error("Can not replace NTA child SuperClassOpt in AnonymousDecl!"); } /** * Replaces the (optional) SuperClass child. * @param node The new node to be used as the SuperClass child. * @apilevel high-level */ public void setSuperClass(Access node) { getSuperClassOpt().setChild(node, 0); } /** * Check whether the optional SuperClass child exists. * @return {@code true} if the optional SuperClass child exists, {@code false} if it does not. * @apilevel high-level */ public boolean hasSuperClass() { return getSuperClassOpt().getNumChild() != 0; } /** * Retrieves the (optional) SuperClass child. * @return The SuperClass child, if it exists. Returns {@code null} otherwise. * @apilevel low-level */ public Access getSuperClass() { return (Access) getSuperClassOpt().getChild(0); } /** * Retrieves the optional node for child SuperClass. This is the Opt node containing the child SuperClass, not the actual child! *

This method does not invoke AST transformations.

* @return The optional node for child SuperClass. * @apilevel low-level */ public Opt getSuperClassOptNoTransform() { return (Opt) getChildNoTransform(3); } /** * Retrieves the child position of the optional child SuperClass. * @return The the child position of the optional child SuperClass. * @apilevel low-level */ protected int getSuperClassOptChildPosition() { return 3; } /** * This method should not be called. This method throws an exception due to * the corresponding child being an NTA shadowing a non-NTA child. * @param node * @apilevel internal */ public void setImplementsList(List node) { throw new Error("Can not replace NTA child ImplementsList in AnonymousDecl!"); } /** * Retrieves the number of children in the Implements list. * @return Number of children in the Implements list. * @apilevel high-level */ public int getNumImplements() { return getImplementsList().getNumChild(); } /** * Retrieves the number of children in the Implements list. * Calling this method will not trigger rewrites. * @return Number of children in the Implements list. * @apilevel low-level */ public int getNumImplementsNoTransform() { return getImplementsListNoTransform().getNumChildNoTransform(); } /** * Retrieves the element at index {@code i} in the Implements list. * @param i Index of the element to return. * @return The element at position {@code i} in the Implements list. * @apilevel high-level */ public Access getImplements(int i) { return (Access) getImplementsList().getChild(i); } /** * Check whether the Implements list has any children. * @return {@code true} if it has at least one child, {@code false} otherwise. * @apilevel high-level */ public boolean hasImplements() { return getImplementsList().getNumChild() != 0; } /** * Append an element to the Implements list. * @param node The element to append to the Implements list. * @apilevel high-level */ public void addImplements(Access node) { List list = (parent == null) ? getImplementsListNoTransform() : getImplementsList(); list.addChild(node); } /** @apilevel low-level */ public void addImplementsNoTransform(Access node) { List list = getImplementsListNoTransform(); list.addChild(node); } /** * Replaces the Implements list element at index {@code i} with the new node {@code node}. * @param node The new node to replace the old list element. * @param i The list index of the node to be replaced. * @apilevel high-level */ public void setImplements(Access node, int i) { List list = getImplementsList(); list.setChild(node, i); } /** * Retrieves the child position of the Implements list. * @return The the child position of the Implements list. * @apilevel low-level */ protected int getImplementsListChildPosition() { return 4; } /** * Retrieves the Implements list. *

This method does not invoke AST transformations.

* @return The node representing the Implements list. * @apilevel low-level */ public List getImplementsListNoTransform() { return (List) getChildNoTransform(4); } /** * @return the element at index {@code i} in the Implements list without * triggering rewrites. */ public Access getImplementsNoTransform(int i) { return (Access) getImplementsListNoTransform().getChildNoTransform(i); } /** * Retrieves the Implements list. * @return The node representing the Implements list. * @apilevel high-level */ public List getImplementss() { return getImplementsList(); } /** * Retrieves the Implements list. *

This method does not invoke AST transformations.

* @return The node representing the Implements list. * @apilevel low-level */ public List getImplementssNoTransform() { return getImplementsListNoTransform(); } /** * @aspect VariableArityParameters * @declaredat /home/jesper/git/extendj/java5/frontend/VariableArityParameters.jrag:132 */ protected List constructorParameterList(ConstructorDecl decl) { List parameterList = new List(); for (int i = 0; i < decl.getNumParameter(); i++) { ParameterDeclaration param = decl.getParameter(i); if (param instanceof VariableArityParameterDeclaration) { parameterList.add( new VariableArityParameterDeclaration( new Modifiers(new List()), ((ArrayDecl) param.type()).componentType().createBoundAccess(), param.name() )); } else { parameterList.add( new ParameterDeclaration( param.type().createBoundAccess(), param.name() )); } } return parameterList; } /** @apilevel internal */ private void getImplicitConstructorOpt_reset() { getImplicitConstructorOpt_computed = false; getImplicitConstructorOpt_value = null; } /** @apilevel internal */ protected boolean getImplicitConstructorOpt_computed = false; /** @apilevel internal */ protected Opt getImplicitConstructorOpt_value; /** * @attribute syn nta * @aspect ImplicitConstructor * @declaredat /home/jesper/git/extendj/java4/frontend/LookupConstructor.jrag:274 */ @ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN, isNTA=true) @ASTNodeAnnotation.Source(aspect="ImplicitConstructor", declaredAt="/home/jesper/git/extendj/java4/frontend/LookupConstructor.jrag:274") public Opt getImplicitConstructorOpt() { ASTState state = state(); if (getImplicitConstructorOpt_computed) { return (Opt) getChild(getImplicitConstructorOptChildPosition()); } state().enterLazyAttribute(); getImplicitConstructorOpt_value = getImplicitConstructorOpt_compute(); setChild(getImplicitConstructorOpt_value, getImplicitConstructorOptChildPosition()); getImplicitConstructorOpt_computed = true; state().leaveLazyAttribute(); Opt node = (Opt) this.getChild(getImplicitConstructorOptChildPosition()); return node; } /** @apilevel internal */ private Opt getImplicitConstructorOpt_compute() { if (needsImplicitConstructor()) { ConstructorDecl decl = constructorDecl(); Modifiers modifiers = new Modifiers(); String anonName = "Anonymous" + nextAnonymousIndex(); ConstructorDecl constructor = new ConstructorDecl(modifiers, anonName, constructorParameterList(decl), new List(), new Opt(), new Block()); setID(anonName); List argList = new List(); for (int i = 0; i < constructor.getNumParameter(); i++) { argList.add(new VarAccess(constructor.getParameter(i).name())); } constructor.setParsedConstructorInvocation( new ExprStmt( new SuperConstructorAccess("super", argList) ) ); Collection set = new HashSet(); // Add initializer and field declaration exceptions. for (int i = 0; i < getNumBodyDecl(); i++) { if (getBodyDecl(i) instanceof InstanceInitializer) { InstanceInitializer init = (InstanceInitializer) getBodyDecl(i); set.addAll(init.exceptions()); } else if (getBodyDecl(i) instanceof FieldDecl) { FieldDecl f = (FieldDecl) getBodyDecl(i); for (FieldDeclarator field : f.getDeclaratorList()) { if (field.isInstanceVariable()) { set.addAll(field.exceptions()); } } } } // Add superconstructor exceptions. for (int i = 0; i < decl.getNumException(); ++i) { set.add(decl.getException(i).type()); } List exceptionList = new List(); for (TypeDecl exceptionType : set) { if (exceptionType.isNull()) { exceptionType = typeNullPointerException(); } exceptionList.add(exceptionType.createQualifiedAccess()); } constructor.setExceptionList(exceptionList); return new Opt(constructor); } else { return new Opt(); } } /** @apilevel internal */ protected ASTState.Cycle isCircular_cycle = null; /** @apilevel internal */ private void isCircular_reset() { isCircular_computed = false; isCircular_initialized = false; isCircular_cycle = null; } /** @apilevel internal */ protected boolean isCircular_computed = false; /** @apilevel internal */ protected boolean isCircular_value; /** @apilevel internal */ protected boolean isCircular_initialized = false; @ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN, isCircular=true) @ASTNodeAnnotation.Source(aspect="Circularity", declaredAt="/home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag:720") public boolean isCircular() { if (isCircular_computed) { return isCircular_value; } ASTState state = state(); if (!isCircular_initialized) { isCircular_initialized = true; isCircular_value = true; } if (!state.inCircle() || state.calledByLazyAttribute()) { state.enterCircle(); do { isCircular_cycle = state.nextCycle(); boolean new_isCircular_value = false; if (isCircular_value != new_isCircular_value) { state.setChangeInCycle(); } isCircular_value = new_isCircular_value; } while (state.testAndClearChangeInCycle()); isCircular_computed = true; state.leaveCircle(); } else if (isCircular_cycle != state.cycle()) { isCircular_cycle = state.cycle(); boolean new_isCircular_value = false; if (isCircular_value != new_isCircular_value) { state.setChangeInCycle(); } isCircular_value = new_isCircular_value; } else { } return isCircular_value; } /** @apilevel internal */ private void getSuperClassOpt_reset() { getSuperClassOpt_computed = false; getSuperClassOpt_value = null; } /** @apilevel internal */ protected boolean getSuperClassOpt_computed = false; /** @apilevel internal */ protected Opt getSuperClassOpt_value; /** * @attribute syn nta * @aspect AnonymousClasses * @declaredat /home/jesper/git/extendj/java4/frontend/AnonymousClasses.jrag:56 */ @ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN, isNTA=true) @ASTNodeAnnotation.Source(aspect="AnonymousClasses", declaredAt="/home/jesper/git/extendj/java4/frontend/AnonymousClasses.jrag:56") public Opt getSuperClassOpt() { ASTState state = state(); if (getSuperClassOpt_computed) { return (Opt) getChild(getSuperClassOptChildPosition()); } state().enterLazyAttribute(); getSuperClassOpt_value = getSuperClassOpt_compute(); setChild(getSuperClassOpt_value, getSuperClassOptChildPosition()); getSuperClassOpt_computed = true; state().leaveLazyAttribute(); Opt node = (Opt) this.getChild(getSuperClassOptChildPosition()); return node; } /** @apilevel internal */ private Opt getSuperClassOpt_compute() { if (superType().isInterfaceDecl()) { return new Opt(typeObject().createQualifiedAccess()); } else { return new Opt(superType().createBoundAccess()); } } /** @apilevel internal */ private void getImplementsList_reset() { getImplementsList_computed = false; getImplementsList_value = null; } /** @apilevel internal */ protected boolean getImplementsList_computed = false; /** @apilevel internal */ protected List getImplementsList_value; /** * @attribute syn nta * @aspect AnonymousClasses * @declaredat /home/jesper/git/extendj/java4/frontend/AnonymousClasses.jrag:64 */ @ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN, isNTA=true) @ASTNodeAnnotation.Source(aspect="AnonymousClasses", declaredAt="/home/jesper/git/extendj/java4/frontend/AnonymousClasses.jrag:64") public List getImplementsList() { ASTState state = state(); if (getImplementsList_computed) { return (List) getChild(getImplementsListChildPosition()); } state().enterLazyAttribute(); getImplementsList_value = getImplementsList_compute(); setChild(getImplementsList_value, getImplementsListChildPosition()); getImplementsList_computed = true; state().leaveLazyAttribute(); List node = (List) this.getChild(getImplementsListChildPosition()); return node; } /** @apilevel internal */ private List getImplementsList_compute() { if (superType().isInterfaceDecl()) { return new List().add(superType().createBoundAccess()); } else { return new List(); } } /** * @attribute inh * @aspect AnonymousClasses * @declaredat /home/jesper/git/extendj/java4/frontend/AnonymousClasses.jrag:33 */ @ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.INH) @ASTNodeAnnotation.Source(aspect="AnonymousClasses", declaredAt="/home/jesper/git/extendj/java4/frontend/AnonymousClasses.jrag:33") public TypeDecl superType() { TypeDecl superType_value = getParent().Define_superType(this, null); return superType_value; } /** * @attribute inh * @aspect AnonymousClasses * @declaredat /home/jesper/git/extendj/java4/frontend/AnonymousClasses.jrag:39 */ @ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.INH) @ASTNodeAnnotation.Source(aspect="AnonymousClasses", declaredAt="/home/jesper/git/extendj/java4/frontend/AnonymousClasses.jrag:39") public ConstructorDecl constructorDecl() { ConstructorDecl constructorDecl_value = getParent().Define_constructorDecl(this, null); return constructorDecl_value; } /** * @attribute inh * @aspect AnonymousClasses * @declaredat /home/jesper/git/extendj/java4/frontend/AnonymousClasses.jrag:95 */ @ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.INH) @ASTNodeAnnotation.Source(aspect="AnonymousClasses", declaredAt="/home/jesper/git/extendj/java4/frontend/AnonymousClasses.jrag:95") public TypeDecl typeNullPointerException() { TypeDecl typeNullPointerException_value = getParent().Define_typeNullPointerException(this, null); return typeNullPointerException_value; } /** @apilevel internal */ public ASTNode rewriteTo() { return super.rewriteTo(); } /** @apilevel internal */ public boolean canRewrite() { return false; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy