org.extendj.ast
node type ParMethodAccess

General Info

Production
ParMethodAccess : MethodAccess ::= TypeArgument:Access*;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<ASTNode>
          extended by org.extendj.ast.Expr
              extended by org.extendj.ast.Access
                  extended by org.extendj.ast.MethodAccess
                      extended by org.extendj.ast.ParMethodAccess
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, org.jastadd.util.PrettyPrintable
Direct Known Subclasses:
ParMethodReferenceAccess

Description

Source
Declared in /home/jesper/git/extendj/java5/grammar/GenericMethods.ast at line 14

Member Filters

API level:

Aspect:

Constructors

public ParMethodAccess()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public ParMethodAccess(java.lang.String p0,
                       List<Expr> p1,
                       List<Access> p2)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 15
public ParMethodAccess(beaver.Symbol p0,
                       List<Expr> p1,
                       List<Access> p2)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 20

Attributes

@ASTNodeAnnotation.Attribute
syn java.util.ArrayList<TypeDecl> inferTypeArguments(TypeDecl resultType,
                                                                             List<ParameterDeclaration> params,
                                                                             List<Expr> args,
                                                                             List<TypeVariable> typeParams)
Infers type arguments for this method invocation.
Overrides:inferTypeArguments in class Expr
Source
Declared in /home/jesper/git/extendj/java5/frontend/MethodSignature.jrag at line 479
Aspect
MethodSignature15
Overrides:isPolyExpression in class MethodAccess
Source
Declared in /home/jesper/git/extendj/java8/frontend/PolyExpressions.jrag at line 80
Aspect
PolyExpressions

Methods

public void typeCheck()
Overrides:typeCheck in class MethodAccess
Source
Declared in /home/jesper/git/extendj/java5/frontend/GenericMethods.jrag at line 33
Aspect
GenericMethods
public void prettyPrint(org.jastadd.util.PrettyPrinter out)
Specified by:prettyPrint in interface org.jastadd.util.PrettyPrintableOverrides:prettyPrint in class MethodAccess
Source
Declared in /home/jesper/git/extendj/java5/frontend/GenericMethods.jrag at line 215
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 MethodAccess
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class MethodAccess
Source
Declared in /home/jesper/git/extendj/ASTNode at line 28
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class MethodAccess
Source
Declared in /home/jesper/git/extendj/ASTNode at line 34
public void flushAttrCache()
Overrides:flushAttrCache in class MethodAccess
Source
Declared in /home/jesper/git/extendj/ASTNode at line 40
public void flushCollectionCache()
Overrides:flushCollectionCache in class MethodAccess
Source
Declared in /home/jesper/git/extendj/ASTNode at line 48
public void flushRewriteCache()
Overrides:flushRewriteCache in class MethodAccess
Source
Declared in /home/jesper/git/extendj/ASTNode at line 54
public ParMethodAccess clone()
                      throws java.lang.CloneNotSupportedException
Overrides:clone in class MethodAccess
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 60
public ParMethodAccess copy()
Overrides:copy in class MethodAccess
Source
Declared in /home/jesper/git/extendj/ASTNode at line 67
@Deprecated
public ParMethodAccess fullCopy()
Deprecated. Please use treeCopy or treeCopyNoTransform instead

Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.

Overrides:fullCopy in class MethodAccess
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 86
public ParMethodAccess treeCopyNoTransform()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:treeCopyNoTransform in class MethodAccess
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 96
public ParMethodAccess treeCopy()
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.
Overrides:treeCopy in class MethodAccess
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 116
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class MethodAccess
Source
Declared in /home/jesper/git/extendj/ASTNode at line 123
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class MethodAccess
Parameters:
value - The new value for the lexeme ID.
public void setID(beaver.Symbol symbol)
JastAdd-internal setter for lexeme ID using the Beaver parser.
Overrides:setID in class MethodAccess
Parameters:
symbol - Symbol containing the new value for the lexeme ID
@ASTNodeAnnotation.Token(name="ID")
public java.lang.String getID()
Retrieves the value for the lexeme ID.
Overrides:getID in class MethodAccess
Returns:
The value for the lexeme ID.
public void setArgList(List<Expr> list)
Replaces the Arg list.
Overrides:setArgList in class MethodAccess
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 MethodAccess
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 MethodAccess
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 MethodAccess
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the Arg list.
public boolean hasArg()
Check whether the Arg list has any children.
Overrides:hasArg in class MethodAccess
Returns:
true if it has at least one child, false otherwise.
public void addArg(Expr node)
Append an element to the Arg list.
Overrides:addArg in class MethodAccess
Parameters:
node - The element to append to the Arg list.
public void addArgNoTransform(Expr node)
Overrides:addArgNoTransform in class MethodAccess
public void setArg(Expr node,
                   int i)
Replaces the Arg list element at index i with the new node node.
Overrides:setArg in class MethodAccess
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the Arg list.
Overrides:getArgList in class MethodAccess
Returns:
The node representing the Arg list.
Retrieves the Arg list.

This method does not invoke AST transformations.

Overrides:getArgListNoTransform in class MethodAccess
Returns:
The node representing the Arg list.
public List<Expr> getArgs()
Retrieves the Arg list.
Overrides:getArgs in class MethodAccess
Returns:
The node representing the Arg list.
Retrieves the Arg list.

This method does not invoke AST transformations.

Overrides:getArgsNoTransform in class MethodAccess
Returns:
The node representing the Arg list.
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 boolean hasTypeArgument()
Check whether the TypeArgument list has any children.
Returns:
true if it has at least one child, false otherwise.
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.
public org.extendj.ast.NameType Define_nameType(ASTNode caller,
                                                ASTNode child)
Overrides:Define_nameType in class MethodAccess
Source
Declared in /home/jesper/git/extendj/java4/frontend/SyntacticClassification.jrag at line 36
protected boolean canDefine_nameType(ASTNode caller,
                                     ASTNode child)
public org.extendj.ast.SimpleSet Define_lookupType(ASTNode caller,
                                                   ASTNode child,
                                                   java.lang.String name)
Overrides:Define_lookupType in class MethodAccess
Source
Declared in /home/jesper/git/extendj/java5/frontend/GenericMethods.jrag at line 197
protected boolean canDefine_lookupType(ASTNode caller,
                                       ASTNode child,
                                       java.lang.String name)
Overrides:rewriteTo in class MethodAccess

Fields

Inherited Members

Attributes inherited from org.extendj.ast.MethodAccess

Attributes inherited from org.extendj.ast.Access

Attributes inherited from org.extendj.ast.Expr

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.MethodAccess

Methods inherited from class org.extendj.ast.Access

Methods inherited from class org.extendj.ast.Expr

Methods inherited from class org.extendj.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 org.extendj.ast.MethodAccess

Fields inherited from org.extendj.ast.Access

Fields inherited from org.extendj.ast.Expr

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value