public class QueryNode extends Node implements IQuery
KIND_ANY, KIND_QUERY, KIND_TEMPLATE| Constructor and Description |
|---|
QueryNode(String name,
List<ParameterNode> parameters,
String contextType,
String templatePackage,
ExpressionNode expr,
boolean cache,
TemplatesTree.TextSource source,
int offset,
int endoffset) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
emit(StringBuilder sb,
EvaluationContext context,
IEvaluationStrategy env) |
IBundleEntity |
getBase()
Returns overridden member
|
String |
getContextType() |
int |
getKind() |
String |
getName() |
String |
getPackage() |
String |
getSignature() |
Object |
invoke(EvaluationContext context,
IEvaluationStrategy env,
Object[] arguments)
Evaluates query in context and environment.
|
void |
setBase(IBundleEntity template)
Internal: Used for binding.
|
String |
toString() |
getEndOffset, getInput, getLine, getLocation, getOffset, getResourceNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEndOffset, getLine, getOffset, getResourceNamepublic QueryNode(String name, List<ParameterNode> parameters, String contextType, String templatePackage, ExpressionNode expr, boolean cache, TemplatesTree.TextSource source, int offset, int endoffset)
public int getKind()
getKind in interface IBundleEntitypublic String getName()
getName in interface IBundleEntitypublic String getContextType()
public String getPackage()
getPackage in interface IBundleEntitypublic Object invoke(EvaluationContext context, IEvaluationStrategy env, Object[] arguments) throws EvaluationException
IQueryinvoke in interface IQueryEvaluationExceptionpublic String getSignature()
getSignature in interface IBundleEntityprotected void emit(StringBuilder sb, EvaluationContext context, IEvaluationStrategy env)
public IBundleEntity getBase()
IBundleEntitygetBase in interface IBundleEntitypublic void setBase(IBundleEntity template)
IBundleEntitysetBase in interface IBundleEntityCopyright © 2014. All rights reserved.