Fork me on GitHub

GetAttributeExpression

In package com.mitchellbosecke.pebble.node.expression

public class GetAttributeExpression extends Object implements Expression

Used to get an attribute from an object. It will look up attributes in the following order: map entry, array item, list item, get method, is method, has method, public method, public field.

Constructors

public GetAttributeExpression(Expression<?> node, Expression<?> attributeNameExpression, String filename, int lineNumber)
Parameters:
public GetAttributeExpression(Expression<?> node, Expression<?> attributeNameExpression, ArgumentsNode args, String filename, int lineNumber)
Parameters:

Methods

public Object evaluate(PebbleTemplateImpl self, EvaluationContextImpl context)
Parameters:
public void accept(NodeVisitor visitor)
Parameters:
public Expression<?> getNode()
Parameters:
  • No parameters
public Expression<?> getAttributeNameExpression()
Parameters:
  • No parameters
public ArgumentsNode getArgumentsNode()
Parameters:
  • No parameters
public int getLineNumber()
Parameters:
  • No parameters