AST
node type ParClassInstanceExpr

General Info

Production
ParClassInstanceExpr : ClassInstanceExpr ::= TypeArgument:Access*;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.Expr
              extended by AST.Access
                  extended by AST.ClassInstanceExpr
                      extended by AST.ParClassInstanceExpr
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

Source
Declared in Java1.5Frontend/GenericMethods.ast at line 18

Member Filters

API level:

Aspect:

Constructors

public ParClassInstanceExpr(Access p0,
                            List<Expr> p1,
                            Opt<TypeDecl> p2,
                            List<Access> p3)
 

Methods

public void flushCache()
Overrides:flushCache in class ClassInstanceExpr
public ParClassInstanceExpr clone()
                           throws java.lang.CloneNotSupportedException
Overrides:clone in class ClassInstanceExpr
Throws:
java.lang.CloneNotSupportedException
Overrides:copy in class ClassInstanceExpr
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ClassInstanceExpr
Returns:
dangling copy of the subtree at this node
public void toString(java.lang.StringBuffer s)
Overrides:toString in class ClassInstanceExpr
Source
Declared in Java1.5Frontend/GenericMethods.jrag at line 206
Aspect
GenericMethodsPrettyPrint
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ClassInstanceExpr
protected int numChildren()
Overrides:numChildren in class ClassInstanceExpr
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ClassInstanceExpr
public void setAccess(Access node)
Replaces the Access child.
Overrides:setAccess in class ClassInstanceExpr
Parameters:
node - The new node to replace the Access child.
public Access getAccess()
Retrieves the Access child.
Overrides:getAccess in class ClassInstanceExpr
Returns:
The current node used as the Access child.
Retrieves the Access child.

This method does not invoke AST transformations.

Overrides:getAccessNoTransform in class ClassInstanceExpr
Returns:
The current node used as the Access child.
public void setArgList(List<Expr> list)
Replaces the Arg list.
Overrides:setArgList in class ClassInstanceExpr
Parameters:
list - The new list node to be used as the Arg list.
public int getNumArg()
Retrieves the number of children in the Arg list.
Overrides:getNumArg in class ClassInstanceExpr
Returns:
Number of children in the Arg list.
Retrieves the number of children in the Arg list. Calling this method will not trigger rewrites..
Overrides:getNumArgNoTransform in class ClassInstanceExpr
Returns:
Number of children in the Arg list.
public Expr getArg(int i)
Retrieves the element at index i in the Arg list..
Overrides:getArg in class ClassInstanceExpr
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the Arg list.
public void addArg(Expr node)
Append an element to the Arg list.
Overrides:addArg in class ClassInstanceExpr
Parameters:
node - The element to append to the Arg list.
public void addArgNoTransform(Expr node)
public void setArg(Expr node,
                   int i)
Replaces the Arg list element at index i with the new node node.
Overrides:setArg in class ClassInstanceExpr
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
public List<Expr> getArgs()
Retrieves the Arg list.
Overrides:getArgs in class ClassInstanceExpr
Returns:
The node representing the Arg list.
Retrieves the Arg list.

This method does not invoke AST transformations.

Overrides:getArgsNoTransform in class ClassInstanceExpr
Returns:
The node representing the Arg list.
public List<Expr> getArgList()
Retrieves the Arg list.
Overrides:getArgList in class ClassInstanceExpr
Returns:
The node representing the Arg list.
Retrieves the Arg list.

This method does not invoke AST transformations.

Overrides:getArgListNoTransform in class ClassInstanceExpr
Returns:
The node representing the Arg list.
public void setTypeDeclOpt(Opt<TypeDecl> opt)
Replaces the optional node for the TypeDecl child. This is the Opt node containing the child TypeDecl, not the actual child!
Overrides:setTypeDeclOpt in class ClassInstanceExpr
Parameters:
opt - The new node to be used as the optional node for the TypeDecl child.
public boolean hasTypeDecl()
Check whether the optional TypeDecl child exists.
Overrides:hasTypeDecl in class ClassInstanceExpr
Returns:
true if the optional TypeDecl child exists, false if it does not.
Retrieves the (optional) TypeDecl child.
Overrides:getTypeDecl in class ClassInstanceExpr
Returns:
The TypeDecl child, if it exists. Returns null otherwise.
public void setTypeDecl(TypeDecl node)
Replaces the (optional) TypeDecl child.
Overrides:setTypeDecl in class ClassInstanceExpr
Parameters:
node - The new node to be used as the TypeDecl child.
Retrieves the optional node for child TypeDecl. This is the Opt node containing the child TypeDecl, not the actual child!

This method does not invoke AST transformations.

Overrides:getTypeDeclOptNoTransform in class ClassInstanceExpr
Returns:
The optional node for child TypeDecl.
public void setTypeArgumentList(List<Access> list)
Replaces the TypeArgument list.
Parameters:
list - The new list node to be used as the TypeArgument list.
public int getNumTypeArgument()
Retrieves the number of children in the TypeArgument list.
Returns:
Number of children in the TypeArgument list.
Retrieves the number of children in the TypeArgument list. Calling this method will not trigger rewrites..
Returns:
Number of children in the TypeArgument list.
public Access getTypeArgument(int i)
Retrieves the element at index i in the TypeArgument list..
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the TypeArgument list.
public void addTypeArgument(Access node)
Append an element to the TypeArgument list.
Parameters:
node - The element to append to the TypeArgument list.
public void setTypeArgument(Access node,
                            int i)
Replaces the TypeArgument list element at index i with the new node node.
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the TypeArgument list.
Returns:
The node representing the TypeArgument list.
Retrieves the TypeArgument list.

This method does not invoke AST transformations.

Returns:
The node representing the TypeArgument list.
Retrieves the TypeArgument list.
Returns:
The node representing the TypeArgument list.
Retrieves the TypeArgument list.

This method does not invoke AST transformations.

Returns:
The node representing the TypeArgument list.
Overrides:Define_NameType_nameType in class ClassInstanceExpr
Source
Declared in Java1.5Frontend/GenericMethods.jrag at line 172
public SimpleSet Define_SimpleSet_lookupType(ASTNode caller,
                                             ASTNode child,
                                             java.lang.String name)
Overrides:Define_SimpleSet_lookupType in class ClassInstanceExpr
Source
Declared in Java1.5Frontend/GenericMethods.jrag at line 173
Overrides:Define_boolean_isExplicitGenericConstructorAccess in class ASTNode<ASTNode>
Source
Declared in Java7Frontend/TypeInference.jrag at line 473
Overrides:rewriteTo in class ClassInstanceExpr

Inherited Members

Attributes inherited from AST.ClassInstanceExpr

Attributes inherited from AST.Access

Attributes inherited from AST.Expr

Attributes inherited from AST.ASTNode

Methods inherited from class AST.ClassInstanceExpr

Methods inherited from class AST.Access

Methods inherited from class AST.Expr

Methods inherited from class AST.ASTNode

Methods inherited from class beaver.Symbol

getColumn
getEnd
getId
getLine
getStart
makePosition

Methods inherited from class java.lang.Object

equals
finalize
getClass
hashCode
notify
notifyAll
wait
wait
wait

Fields inherited from AST.ClassInstanceExpr

Fields inherited from AST.Access

Fields inherited from AST.Expr

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value