Package io.trino.sql.tree
Class Property
- java.lang.Object
-
- io.trino.sql.tree.Node
-
- io.trino.sql.tree.Property
-
public class Property extends Node
-
-
Constructor Summary
Constructors Constructor Description Property(Identifier name)Constructs an instance representing a property whose value is set to DEFAULTProperty(Identifier name, Expression value)Property(NodeLocation location, Identifier name)Constructs an instance representing a property whose value is set to DEFAULTProperty(NodeLocation location, Identifier name, Expression value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(AstVisitor<R,C> visitor, C context)Accessible forAstVisitor, useAstVisitor.process(Node, Object)instead.booleanequals(Object obj)List<? extends Node>getChildren()IdentifiergetName()ExpressiongetNonDefaultValue()Returns the non-default value of the property.inthashCode()booleanisSetToDefault()StringtoString()-
Methods inherited from class io.trino.sql.tree.Node
getLocation, shallowEquals
-
-
-
-
Constructor Detail
-
Property
public Property(Identifier name)
Constructs an instance representing a property whose value is set to DEFAULT
-
Property
public Property(NodeLocation location, Identifier name)
Constructs an instance representing a property whose value is set to DEFAULT
-
Property
public Property(Identifier name, Expression value)
-
Property
public Property(NodeLocation location, Identifier name, Expression value)
-
-
Method Detail
-
getName
public Identifier getName()
-
isSetToDefault
public boolean isSetToDefault()
-
getNonDefaultValue
public Expression getNonDefaultValue()
Returns the non-default value of the property. This method should be called only if the property is not set to DEFAULT.
-
accept
public <R,C> R accept(AstVisitor<R,C> visitor, C context)
Description copied from class:NodeAccessible forAstVisitor, useAstVisitor.process(Node, Object)instead.
-
getChildren
public List<? extends Node> getChildren()
- Specified by:
getChildrenin classNode
-
-