public class LabelStatement extends Statement
Expression
context. If it
is jumped to, it will get the value provided by the corresponding
GotoStatement
. Otherwise, it receives the value in
defaultValue
. If the Type equals Void
, no value should be
provided.Modifier and Type | Field and Description |
---|---|
Expression |
defaultValue |
nodeType, type
Constructor and Description |
---|
LabelStatement(Expression defaultValue,
ExpressionType nodeType) |
Modifier and Type | Method and Description |
---|---|
LabelStatement |
accept(Visitor visitor) |
boolean |
equals(Object o) |
int |
hashCode() |
accept, evaluate, getNodeType, getType, toString
public final Expression defaultValue
public LabelStatement(Expression defaultValue, ExpressionType nodeType)
public LabelStatement accept(Visitor visitor)
public boolean equals(Object o)
equals
in class AbstractNode
public int hashCode()
hashCode
in class AbstractNode
Copyright © 2012-2014 Julian Hyde. All Rights Reserved.