Package hydra.ext.python.syntax
Class AssertStatement
- java.lang.Object
-
- hydra.ext.python.syntax.AssertStatement
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AssertStatement>
public class AssertStatement extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<AssertStatement>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Expressionexpression1static NameEXPRESSION1Maybe<Expression>expression2static NameEXPRESSION2static NameTYPE_
-
Constructor Summary
Constructors Constructor Description AssertStatement(Expression expression1, Maybe<Expression> expression2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AssertStatement other)booleanequals(java.lang.Object other)inthashCode()AssertStatementwithExpression1(Expression expression1)AssertStatementwithExpression2(Maybe<Expression> expression2)
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
-
EXPRESSION1
public static final Name EXPRESSION1
-
EXPRESSION2
public static final Name EXPRESSION2
-
expression1
public final Expression expression1
-
expression2
public final Maybe<Expression> expression2
-
-
Constructor Detail
-
AssertStatement
public AssertStatement(Expression expression1, Maybe<Expression> expression2)
-
-
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(AssertStatement other)
- Specified by:
compareToin interfacejava.lang.Comparable<AssertStatement>
-
withExpression1
public AssertStatement withExpression1(Expression expression1)
-
withExpression2
public AssertStatement withExpression2(Maybe<Expression> expression2)
-
-