com.go.tea.parsetree
Class CallExpression

java.lang.Object
  |
  +--com.go.tea.parsetree.Node
        |
        +--com.go.tea.parsetree.Expression
              |
              +--com.go.tea.parsetree.CallExpression
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
FunctionCallExpression, TemplateCallExpression

public abstract class CallExpression
extends Expression

Version:
16 , 9/07/00
Author:
Brian S O'Neill
See Also:
Serialized Form

Inner classes inherited from class com.go.tea.parsetree.Expression
Expression.Conversion
 
Constructor Summary
CallExpression(SourceInfo info, Name target, ExpressionList params, Block subParam)
           
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this Node and all its children.
 Statement getInitializer()
          Initializer is a section of code that executes before the substitution param.
 ExpressionList getParams()
           
 Block getSubstitutionParam()
           
 Name getTarget()
           
 boolean isExceptionPossible()
          Returns true if an exception can be thrown while executing this Expression.
 boolean isVoidPermitted()
          A CallExpression is permitted to return void only in certain cases.
 void setInitializer(Statement stmt)
           
 void setParams(ExpressionList params)
           
 void setSubstitutionParam(Block subParam)
           
 void setVoidPermitted(boolean b)
           
 
Methods inherited from class com.go.tea.parsetree.Expression
accept, convertTo, convertTo, getConversionChain, getInitialType, getType, getValue, isValueKnown, setInitialType, setType
 
Methods inherited from class com.go.tea.parsetree.Node
getSourceInfo, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallExpression

public CallExpression(SourceInfo info,
                      Name target,
                      ExpressionList params,
                      Block subParam)
Method Detail

clone

public java.lang.Object clone()
Description copied from class: Node
Returns a clone of this Node and all its children. Immutable child objects are not necessarily cloned
Overrides:
clone in class Expression

isExceptionPossible

public boolean isExceptionPossible()
Description copied from class: Expression
Returns true if an exception can be thrown while executing this Expression. By default, returns true only if a type conversion could cause an exception.
Overrides:
isExceptionPossible in class Expression

getTarget

public Name getTarget()

getParams

public ExpressionList getParams()

getInitializer

public Statement getInitializer()
Initializer is a section of code that executes before the substitution param. By default, it is null. If a CallExpression has a substitution param, a type checker may define an initializer.

getSubstitutionParam

public Block getSubstitutionParam()

isVoidPermitted

public boolean isVoidPermitted()
A CallExpression is permitted to return void only in certain cases. By default this method returns false.

setParams

public void setParams(ExpressionList params)

setInitializer

public void setInitializer(Statement stmt)

setSubstitutionParam

public void setSubstitutionParam(Block subParam)

setVoidPermitted

public void setVoidPermitted(boolean b)