org.teatrove.tea.parsetree
Class CallExpression
java.lang.Object
org.teatrove.tea.parsetree.Node
org.teatrove.tea.parsetree.Expression
org.teatrove.tea.parsetree.CallExpression
- All Implemented Interfaces:
- Serializable, Cloneable, NullSafe
- Direct Known Subclasses:
- FunctionCallExpression, TemplateCallExpression
public abstract class CallExpression
- extends Expression
- implements NullSafe
- Author:
- Brian S O'Neill
- See Also:
- Serialized Form
| Methods inherited from class org.teatrove.tea.parsetree.Expression |
accept, convertTo, convertTo, forceConversion, getConversionChain, getInitialType, getType, getValue, isValueKnown, setInitialType, setType |
CallExpression
public CallExpression(SourceInfo info,
Expression expression,
Name target,
ExpressionList params,
Block subParam)
clone
public 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()
setTarget
public void setTarget(Name target)
getExpression
public Expression getExpression()
setExpression
public void setExpression(Expression expression)
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)
isNullSafe
public boolean isNullSafe()
- Specified by:
isNullSafe in interface NullSafe
setNullSafe
public void setNullSafe(boolean nullSafe)
- Specified by:
setNullSafe in interface NullSafe
Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.