parser.flatzinc.ast.expression
Class Expression

java.lang.Object
  extended by parser.flatzinc.ast.expression.Expression
Direct Known Subclasses:
EAnnotation, EArray, EBool, EIdArray, EIdentifier, EInt, ESet, EString

public abstract class Expression
extends Object


Nested Class Summary
static class Expression.EType
           
 
Field Summary
protected static Class bool_arr
           
protected static Class int_arr
           
 
Constructor Summary
protected Expression(Expression.EType typeOf)
           
 
Method Summary
 Expression.EType getTypeOf()
           
abstract  int intValue()
          Get the int value of the Expression
abstract  IntegerVariable intVarValue()
          Get the IntegerVariable of the Expression
abstract  SetVariable setVarValue()
          Get the SetVariable of the Expression
abstract  int[] toIntArray()
          Get array of int of the Expression
abstract  IntegerVariable[] toIntVarArray()
          Get an array of IntegerVariable of the Expression
abstract  SetVariable[] toSetVarArray()
          Get an array of SetVariable of the Expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

int_arr

protected static final Class int_arr

bool_arr

protected static final Class bool_arr
Constructor Detail

Expression

protected Expression(Expression.EType typeOf)
Method Detail

getTypeOf

public final Expression.EType getTypeOf()

intValue

public abstract int intValue()
Get the int value of the Expression

Returns:
int

toIntArray

public abstract int[] toIntArray()
Get array of int of the Expression

Returns:
int[]

intVarValue

public abstract IntegerVariable intVarValue()
Get the IntegerVariable of the Expression

Returns:
IntegerVariable or IntegerConstantVariable

toIntVarArray

public abstract IntegerVariable[] toIntVarArray()
Get an array of IntegerVariable of the Expression

Returns:
{IntegerVariable,IntegerConstantVariable}[]

setVarValue

public abstract SetVariable setVarValue()
Get the SetVariable of the Expression

Returns:
SetVariable or SetConstantVariable

toSetVarArray

public abstract SetVariable[] toSetVarArray()
Get an array of SetVariable of the Expression

Returns:
{SetVariable,SetConstantVariable}[]


Copyright © 2012. All Rights Reserved.