All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.MethodCall

java.lang.Object
   |
   +----openjava.ptree.PtreeObject
           |
           +----openjava.ptree.NonLeaf
                   |
                   +----openjava.ptree.MethodCall

public class MethodCall
extends NonLeaf
implements Expression
The MethodCall class represents a method call expression.

See Also:
NonLeaf, Expression, Identifier

Constructor Index

 o MethodCall(Expression, Identifier, ExpressionList)
Allocates a new object.
 o MethodCall(Identifier, ExpressionList)
Allocates a new object.

Method Index

 o getArguments()
Gets the arguments for this method.
 o getExpression()
Gets the expression accessed.
 o getName()
Gets the method name.
 o setArguments(ExpressionList)
Sets the arguments for this method.
 o setExpression(Expression)
Sets the expression accessed.
 o setName(Identifier)
Sets the method name.
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o MethodCall
 public MethodCall(Expression expr,
                   Identifier name,
                   ExpressionList args)
Allocates a new object.

Parameters:
expr - the expression which indicates an object or a class. This may be null.
name - the method name.
args - the argumetns for this method.
 o MethodCall
 public MethodCall(Identifier name,
                   ExpressionList args)
Allocates a new object.

Parameters:
name - the method name.
args - the argumetns for this method.

Methods

 o writeCode
 public void writeCode()
Writes the code this parse-tree presents for.

Overrides:
writeCode in class NonLeaf
 o getExpression
 public Expression getExpression()
Gets the expression accessed.

Returns:
the expression accessed.
 o setExpression
 public void setExpression(Expression expr)
Sets the expression accessed.

Parameters:
expr - the expression accessed.
 o getName
 public Identifier getName()
Gets the method name.

Returns:
the method name.
 o setName
 public void setName(Identifier name)
Sets the method name.

Parameters:
name - the method name.
 o getArguments
 public ExpressionList getArguments()
Gets the arguments for this method.

Returns:
the expression list as the arguments.
 o setArguments
 public void setArguments(ExpressionList exprs)
Sets the arguments for this method.

Parameters:
exprs - the expression list as the arguments.

All Packages  Class Hierarchy  This Package  Previous  Next  Index