public class GetAttributeExpression extends Object implements Expression<Object>
| Constructor and Description |
|---|
GetAttributeExpression(Expression<?> node,
Expression<?> attributeNameExpression,
ArgumentsNode args,
String filename,
int lineNumber) |
GetAttributeExpression(Expression<?> node,
Expression<?> attributeNameExpression,
String filename,
int lineNumber) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(NodeVisitor visitor) |
Object |
evaluate(PebbleTemplateImpl self,
EvaluationContextImpl context) |
ArgumentsNode |
getArgumentsNode() |
Expression<?> |
getAttributeNameExpression() |
int |
getLineNumber()
Returns the line number on which the expression is defined on.
|
Expression<?> |
getNode() |
public GetAttributeExpression(Expression<?> node, Expression<?> attributeNameExpression, String filename, int lineNumber)
public GetAttributeExpression(Expression<?> node, Expression<?> attributeNameExpression, ArgumentsNode args, String filename, int lineNumber)
public Object evaluate(PebbleTemplateImpl self, EvaluationContextImpl context) throws PebbleException
evaluate in interface Expression<Object>PebbleExceptionpublic void accept(NodeVisitor visitor)
public Expression<?> getNode()
public Expression<?> getAttributeNameExpression()
public ArgumentsNode getArgumentsNode()
public int getLineNumber()
ExpressiongetLineNumber in interface Expression<Object>Copyright © 2020. All rights reserved.