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
-
MethodCall(Expression, Identifier, ExpressionList)
- Allocates a new object.
-
MethodCall(Identifier, ExpressionList)
- Allocates a new object.
-
getArguments()
- Gets the arguments for this method.
-
getExpression()
- Gets the expression accessed.
-
getName()
- Gets the method name.
-
setArguments(ExpressionList)
- Sets the arguments for this method.
-
setExpression(Expression)
- Sets the expression accessed.
-
setName(Identifier)
- Sets the method name.
-
writeCode()
- Writes the code this parse-tree presents for.
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.
MethodCall
public MethodCall(Identifier name,
ExpressionList args)
- Allocates a new object.
- Parameters:
- name - the method name.
- args - the argumetns for this method.
writeCode
public void writeCode()
- Writes the code this parse-tree presents for.
- Overrides:
- writeCode in class NonLeaf
getExpression
public Expression getExpression()
- Gets the expression accessed.
- Returns:
- the expression accessed.
setExpression
public void setExpression(Expression expr)
- Sets the expression accessed.
- Parameters:
- expr - the expression accessed.
getName
public Identifier getName()
- Gets the method name.
- Returns:
- the method name.
setName
public void setName(Identifier name)
- Sets the method name.
- Parameters:
- name - the method name.
getArguments
public ExpressionList getArguments()
- Gets the arguments for this method.
- Returns:
- the expression list as the arguments.
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