Package org.apache.calcite.linq4j.tree
Class LabelStatement
- java.lang.Object
-
- org.apache.calcite.linq4j.tree.AbstractNode
-
- org.apache.calcite.linq4j.tree.Statement
-
- org.apache.calcite.linq4j.tree.LabelStatement
-
- All Implemented Interfaces:
Node
public class LabelStatement extends Statement
Represents a label, which can be put in anyExpressioncontext. If it is jumped to, it will get the value provided by the correspondingGotoStatement. Otherwise, it receives the value indefaultValue. If the Type equalsVoid, no value should be provided.
-
-
Field Summary
Fields Modifier and Type Field Description ExpressiondefaultValue-
Fields inherited from class org.apache.calcite.linq4j.tree.AbstractNode
nodeType, type
-
-
Constructor Summary
Constructors Constructor Description LabelStatement(Expression defaultValue, ExpressionType nodeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabelStatementaccept(Shuttle shuttle)<R> Raccept(Visitor<R> visitor)booleanequals(Object o)inthashCode()-
Methods inherited from class org.apache.calcite.linq4j.tree.AbstractNode
accept, accept0, evaluate, getNodeType, getType, toString
-
-
-
-
Field Detail
-
defaultValue
public final Expression defaultValue
-
-
Constructor Detail
-
LabelStatement
public LabelStatement(Expression defaultValue, ExpressionType nodeType)
-
-
Method Detail
-
accept
public LabelStatement accept(Shuttle shuttle)
-
accept
public <R> R accept(Visitor<R> visitor)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractNode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractNode
-
-