Class CompareExpression
java.lang.Object
org.openzen.zenscript.codemodel.expression.Expression
org.openzen.zenscript.codemodel.expression.CompareExpression
- All Implemented Interfaces:
IPartialExpression
Compare expression for basic types. Left and right MUST be of the same type,
and MUST be a basic type. (any integer or floating point type, char, string)
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal CompareTypefinal Expressionfinal FunctionalMemberReffinal ExpressionFields inherited from class org.openzen.zenscript.codemodel.expression.Expression
NONE, position, thrownType, type -
Constructor Summary
ConstructorsConstructorDescriptionCompareExpression(CodePosition position, Expression left, Expression right, FunctionalMemberRef operator, CompareType comparison) -
Method Summary
Modifier and TypeMethodDescription<C,R> R accept(C context, ExpressionVisitorWithContext<C, R> visitor) <T> Taccept(ExpressionVisitor<T> visitor) transform(ExpressionTransformer transformer) Methods inherited from class org.openzen.zenscript.codemodel.expression.Expression
aborts, binaryThrow, call, castExplicit, castImplicit, eval, evaluateEnumConstant, evaluateStringConstant, forEachStatement, getAssignHints, getMember, getPossibleFunctionHeaders, getTypeArguments, multiThrow, predictCallTypes, transform, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openzen.zenscript.codemodel.partial.IPartialExpression
assign, capture, getMember
-
Field Details
-
left
-
right
-
operator
-
comparison
-
-
Constructor Details
-
Method Details
-
accept
- Specified by:
acceptin classExpression
-
accept
- Specified by:
acceptin classExpression
-
transform
- Specified by:
transformin classExpression
-
normalize
- Specified by:
normalizein classExpression
-