Package com.schibsted.spt.data.jslt.impl
Class AbstractInvocationExpression
- java.lang.Object
-
- com.schibsted.spt.data.jslt.impl.AbstractNode
-
- com.schibsted.spt.data.jslt.impl.AbstractInvocationExpression
-
- All Implemented Interfaces:
ExpressionNode
- Direct Known Subclasses:
FunctionExpression,MacroExpression
public abstract class AbstractInvocationExpression extends AbstractNode
Common superclass for function and macro expressions, to avoid having to repeat so much code.
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionNode[]argumentsprivate Callablecallable-
Fields inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
location
-
-
Constructor Summary
Constructors Constructor Description AbstractInvocationExpression(ExpressionNode[] arguments, Location location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeMatchContexts(DotExpression parent)voiddump(int level)java.util.List<ExpressionNode>getChildren()ExpressionNodeoptimize()voidresolve(Callable callable)java.lang.StringtoString()-
Methods inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
getLocation, prepare
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.schibsted.spt.data.jslt.impl.ExpressionNode
apply
-
-
-
-
Field Detail
-
callable
private Callable callable
-
arguments
protected ExpressionNode[] arguments
-
-
Constructor Detail
-
AbstractInvocationExpression
public AbstractInvocationExpression(ExpressionNode[] arguments, Location location)
-
-
Method Detail
-
resolve
public void resolve(Callable callable)
-
computeMatchContexts
public void computeMatchContexts(DotExpression parent)
- Specified by:
computeMatchContextsin interfaceExpressionNode- Overrides:
computeMatchContextsin classAbstractNode
-
optimize
public ExpressionNode optimize()
- Specified by:
optimizein interfaceExpressionNode- Overrides:
optimizein classAbstractNode
-
dump
public void dump(int level)
- Specified by:
dumpin interfaceExpressionNode- Overrides:
dumpin classAbstractNode
-
getChildren
public java.util.List<ExpressionNode> getChildren()
- Specified by:
getChildrenin interfaceExpressionNode- Overrides:
getChildrenin classAbstractNode
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-