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[]
arguments
private Callable
callable
-
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 void
computeMatchContexts(DotExpression parent)
void
dump(int level)
java.util.List<ExpressionNode>
getChildren()
ExpressionNode
optimize()
void
resolve(Callable callable)
java.lang.String
toString()
-
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:
computeMatchContexts
in interfaceExpressionNode
- Overrides:
computeMatchContexts
in classAbstractNode
-
optimize
public ExpressionNode optimize()
- Specified by:
optimize
in interfaceExpressionNode
- Overrides:
optimize
in classAbstractNode
-
dump
public void dump(int level)
- Specified by:
dump
in interfaceExpressionNode
- Overrides:
dump
in classAbstractNode
-
getChildren
public java.util.List<ExpressionNode> getChildren()
- Specified by:
getChildren
in interfaceExpressionNode
- Overrides:
getChildren
in classAbstractNode
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-