pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.expressions.unary
Class ProcedureCallExpression

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.AbstractSyntaxTree
        |
        +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.Expression
              |
              +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.expressions.UnaryExpression
                    |
                    +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.expressions.NonParametricExpression
                          |
                          +--pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.expressions.unary.ProcedureCallExpression
All Implemented Interfaces:
java.io.Serializable

public class ProcedureCallExpression
extends NonParametricExpression

The ProcedureCallExpression class represents the unary expression nodes in the abstract syntax tree.

Author:
Jakub Trzetrzelewski, jakub_trzetrzelewski@yahoo.com
See Also:
Serialized Form

Field Summary
 IdentifierTerminal i
           
 
Fields inherited from class pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.expressions.UnaryExpression
r
 
Constructor Summary
ProcedureCallExpression(Expression r, IdentifierTerminal i)
          Creates a new unary expression node with the given expression r and terminal i.
 
Method Summary
 int getNumberOfParameters(Expression tmp, java.util.Vector v)
           
 int getNumberOfParameters(java.util.Vector v)
           
 java.lang.String getSpellingAndPosition()
          Returns the spelling and positions of all terminals in a node.
 java.lang.String getTypeAsString()
          Returns the abstract syntax tree node type as a string value.
 
Methods inherited from class pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.expressions.NonParametricExpression
accept
 
Methods inherited from class pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.expressions.UnaryExpression
show
 
Methods inherited from class pl.edu.pjwstk.yaod.yaql.abstractsyntaxtree.AbstractSyntaxTree
getLongestTypeAsSpacesString, getPreparedTypeAsString, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

public IdentifierTerminal i
Constructor Detail

ProcedureCallExpression

public ProcedureCallExpression(Expression r,
                               IdentifierTerminal i)
Creates a new unary expression node with the given expression r and terminal i.
Parameters:
r - any expression.
i - identifier terminal.
Method Detail

getTypeAsString

public java.lang.String getTypeAsString()
Returns the abstract syntax tree node type as a string value.
Overrides:
getTypeAsString in class AbstractSyntaxTree
Returns:
the abstract syntax tree node type as string.

getSpellingAndPosition

public java.lang.String getSpellingAndPosition()
Returns the spelling and positions of all terminals in a node.
Overrides:
getSpellingAndPosition in class AbstractSyntaxTree
Returns:
the spelling and positions of all terminals in a node.

getNumberOfParameters

public int getNumberOfParameters(java.util.Vector v)

getNumberOfParameters

public int getNumberOfParameters(Expression tmp,
                                 java.util.Vector v)