Class PropertyExpression

  • Direct Known Subclasses:
    AttributeExpression

    public class PropertyExpression
    extends Expression
    Represents a property access such as the expression "foo.bar".
    • Constructor Detail

      • PropertyExpression

        public PropertyExpression​(Expression objectExpression,
                                  String property)
      • PropertyExpression

        public PropertyExpression​(Expression objectExpression,
                                  Expression property)
      • PropertyExpression

        public PropertyExpression​(Expression objectExpression,
                                  Expression property,
                                  boolean safe)
    • Method Detail

      • isStatic

        public boolean isStatic()
      • isDynamic

        public boolean isDynamic()
      • getObjectExpression

        public Expression getObjectExpression()
      • setObjectExpression

        public void setObjectExpression​(Expression exp)
      • getPropertyAsString

        public String getPropertyAsString()
      • isSafe

        public boolean isSafe()
        Returns:
        is this a safe navigation, i.e. if true then if the source object is null then this navigation will return null
      • isSpreadSafe

        public boolean isSpreadSafe()
      • setSpreadSafe

        public void setSpreadSafe​(boolean value)
      • setStatic

        public void setStatic​(boolean aStatic)
      • isImplicitThis

        public boolean isImplicitThis()
      • setImplicitThis

        public void setImplicitThis​(boolean it)