Package hydra.ast
Class SeqExpr
- java.lang.Object
-
- hydra.ast.SeqExpr
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SeqExpr>
public class SeqExpr extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SeqExpr>
A sequence of expressions joined by a separator operator. Unlike OpExpr, parenthesize ignores SeqExpr boundaries.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Expr>elementsThe expressions to joinstatic NameELEMENTSName of thehydra.ast.SeqExpr.elementsfield.OpopThe separator operatorstatic NameOPName of thehydra.ast.SeqExpr.opfield.static NameTYPE_Name of thehydra.ast.SeqExprtype.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SeqExpr other)booleanequals(java.lang.Object other)inthashCode()SeqExprwithElements(java.util.List<Expr> elements)Returns a copy of thisSeqExprwithelementsreplaced.SeqExprwithOp(Op op)Returns a copy of thisSeqExprwithopreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.ast.SeqExprtype.
-
OP
public static final Name OP
Name of thehydra.ast.SeqExpr.opfield.
-
ELEMENTS
public static final Name ELEMENTS
Name of thehydra.ast.SeqExpr.elementsfield.
-
op
public final Op op
The separator operator
-
elements
public final java.util.List<Expr> elements
The expressions to join
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(SeqExpr other)
- Specified by:
compareToin interfacejava.lang.Comparable<SeqExpr>
-
-