Class IntSwitchCase
java.lang.Object
org.jfuncmachine.compiler.model.SourceElement
org.jfuncmachine.compiler.model.expr.IntSwitchCase
Defines a case value for a switch statement containing a target value and the
expression to be executed if the switch value matches the case value
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ExpressionThe expression to execute if the switch value equals this case valuefinal intThe value of this caseFields inherited from class org.jfuncmachine.compiler.model.SourceElement
filename, lineNumber -
Constructor Summary
ConstructorsConstructorDescriptionIntSwitchCase(int value, Expression expr) Create a switch caseIntSwitchCase(int value, Expression expr, String filename, int lineNumber) Create a switch case -
Method Summary
Methods inherited from class org.jfuncmachine.compiler.model.SourceElement
generateException
-
Field Details
-
value
public final int valueThe value of this case -
expr
The expression to execute if the switch value equals this case value
-
-
Constructor Details
-
IntSwitchCase
Create a switch case- Parameters:
value- The value of this caseexpr- The expression to execute if the switch value equals this case value
-
IntSwitchCase
Create a switch case- Parameters:
value- The value of this caseexpr- The expression to execute if the switch value equals this case valuefilename- The source filename containing this caselineNumber- The line number in the source filename where this case starts
-