Package hydra.go.syntax
Class SimpleStmt.ShortVarDecl
- java.lang.Object
-
- hydra.go.syntax.SimpleStmt
-
- hydra.go.syntax.SimpleStmt.ShortVarDecl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SimpleStmt>
- Enclosing class:
- SimpleStmt
public static final class SimpleStmt.ShortVarDecl extends SimpleStmt implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.go.syntax.SimpleStmt
SimpleStmt.Assignment, SimpleStmt.Empty, SimpleStmt.Expression, SimpleStmt.IncDec, SimpleStmt.PartialVisitor<R>, SimpleStmt.Send, SimpleStmt.ShortVarDecl, SimpleStmt.Visitor<R>
-
-
Field Summary
Fields Modifier and Type Field Description ShortVarDeclvalue-
Fields inherited from class hydra.go.syntax.SimpleStmt
ASSIGNMENT, EMPTY, EXPRESSION, INC_DEC, SEND, SHORT_VAR_DECL, TYPE_
-
-
Constructor Summary
Constructors Constructor Description ShortVarDecl(ShortVarDecl value)Constructs an immutableSimpleStmt.ShortVarDecl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(SimpleStmt.Visitor<R> visitor)Dispatch tovisitor.intcompareTo(SimpleStmt other)booleanequals(java.lang.Object other)inthashCode()inthydraOrdinal()java.lang.StringtoString()
-
-
-
Field Detail
-
value
public final ShortVarDecl value
-
-
Constructor Detail
-
ShortVarDecl
public ShortVarDecl(ShortVarDecl value)
Constructs an immutableSimpleStmt.ShortVarDecl.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(SimpleStmt other)
- Specified by:
compareToin interfacejava.lang.Comparable<SimpleStmt>
-
hydraOrdinal
public int hydraOrdinal()
- Specified by:
hydraOrdinalin classSimpleStmt
-
accept
public <R> R accept(SimpleStmt.Visitor<R> visitor)
Dispatch tovisitor.- Specified by:
acceptin classSimpleStmt
-
-