org.teatrove.tea.parsetree
Class FunctionCallExpression

java.lang.Object
  extended by org.teatrove.tea.parsetree.Node
      extended by org.teatrove.tea.parsetree.Expression
          extended by org.teatrove.tea.parsetree.CallExpression
              extended by org.teatrove.tea.parsetree.FunctionCallExpression
All Implemented Interfaces:
Serializable, Cloneable, NullSafe

public class FunctionCallExpression
extends CallExpression

A CallExpression to a function.

Author:
Brian S O'Neill
See Also:
TemplateCallExpression, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.teatrove.tea.parsetree.Expression
Expression.Conversion
 
Constructor Summary
FunctionCallExpression(SourceInfo info, Expression expression, Name target, ExpressionList params, Block subParam)
           
 
Method Summary
 Object accept(NodeVisitor visitor)
          Every subclass of Node must override this method with the following: return visitor.visit(this).
 Method getCalledMethod()
          Returns the method to invoke to perform the call, which is set by a type checker.
 void setCalledMethod(Method m)
           
 
Methods inherited from class org.teatrove.tea.parsetree.CallExpression
clone, getExpression, getInitializer, getParams, getSubstitutionParam, getTarget, isExceptionPossible, isNullSafe, isVoidPermitted, setExpression, setInitializer, setNullSafe, setParams, setSubstitutionParam, setTarget, setVoidPermitted
 
Methods inherited from class org.teatrove.tea.parsetree.Expression
convertTo, convertTo, forceConversion, getConversionChain, getInitialType, getType, getValue, isValueKnown, setInitialType, setType
 
Methods inherited from class org.teatrove.tea.parsetree.Node
getSourceInfo, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionCallExpression

public FunctionCallExpression(SourceInfo info,
                              Expression expression,
                              Name target,
                              ExpressionList params,
                              Block subParam)
Method Detail

accept

public Object accept(NodeVisitor visitor)
Description copied from class: Node
Every subclass of Node must override this method with the following: return visitor.visit(this).

Overrides:
accept in class Expression
Parameters:
visitor - A visitor of this Node
Returns:
Node The Node returned by the visitor
See Also:
NodeVisitor

getCalledMethod

public Method getCalledMethod()
Returns the method to invoke to perform the call, which is set by a type checker.


setCalledMethod

public void setCalledMethod(Method m)


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.