parser.flatzinc.ast.expression
Class ESet

java.lang.Object
  extended by parser.flatzinc.ast.expression.Expression
      extended by parser.flatzinc.ast.expression.ESet
Direct Known Subclasses:
ESetBounds, ESetList

public abstract class ESet
extends Expression


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

Constructor Detail

ESet

protected ESet(Expression.EType typeOf)
Method Detail

enumVal

public abstract int[] enumVal()

intValue

public final int intValue()
Description copied from class: Expression
Get the int value of the Expression

Specified by:
intValue in class Expression
Returns:
int

toIntArray

public final int[] toIntArray()
Description copied from class: Expression
Get array of int of the Expression

Specified by:
toIntArray in class Expression
Returns:
int[]

intVarValue

public final IntegerVariable intVarValue()
Description copied from class: Expression
Get the IntegerVariable of the Expression

Specified by:
intVarValue in class Expression
Returns:
IntegerVariable or IntegerConstantVariable

toIntVarArray

public final IntegerVariable[] toIntVarArray()
Description copied from class: Expression
Get an array of IntegerVariable of the Expression

Specified by:
toIntVarArray in class Expression
Returns:
{IntegerVariable,IntegerConstantVariable}[]

setVarValue

public final SetVariable setVarValue()
Description copied from class: Expression
Get the SetVariable of the Expression

Specified by:
setVarValue in class Expression
Returns:
SetVariable or SetConstantVariable

toSetVarArray

public final SetVariable[] toSetVarArray()
Description copied from class: Expression
Get an array of SetVariable of the Expression

Specified by:
toSetVarArray in class Expression
Returns:
{SetVariable,SetConstantVariable}[]


Copyright © 2012. All Rights Reserved.