parser.flatzinc.ast.expression
Class EIdArray

java.lang.Object
  extended by parser.flatzinc.ast.expression.Expression
      extended by parser.flatzinc.ast.expression.EIdArray

public final class EIdArray
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
EIdArray(HashMap<String,Object> map, String id, EInt i)
           
 
Method Summary
 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
 String toString()
           
 
Methods inherited from class parser.flatzinc.ast.expression.Expression
getTypeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EIdArray

public EIdArray(HashMap<String,Object> map,
                String id,
                EInt i)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

intValue

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

Specified by:
intValue in class Expression
Returns:
int

toIntArray

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

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

intVarValue

public 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 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 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 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.