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 anyExpression
context. 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 Expression
defaultValue
-
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 LabelStatement
accept(Shuttle shuttle)
<R> R
accept(Visitor<R> visitor)
boolean
equals(java.lang.Object o)
int
hashCode()
-
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(java.lang.Object o)
- Overrides:
equals
in classAbstractNode
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractNode
-
-