Class VarInfo
- java.lang.Object
-
- jadex.rules.rulesystem.rete.builder.VarInfo
-
public class VarInfo extends java.lang.ObjectA variable info saves information about the first occurrence of a variable, i.e. its declaration and first binding.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSubindex()Get the subindex.intgetTupleIndex()Get the tupleindex.java.lang.ObjectgetValueSource()Get the value source.VariablegetVariable()Get the variable.java.lang.StringtoString()Get the string representation.
-
-
-
Constructor Detail
-
VarInfo
public VarInfo(Variable var, int tupleindex, java.lang.Object valuesource, int subindex)
Create a new VarInfo.- Parameters:
var- The variable.tupleindex- The tuple index.attr- The attribute.subindex- The subindex.
-
-
Method Detail
-
getVariable
public Variable getVariable()
Get the variable.- Returns:
- The variable.
-
getTupleIndex
public int getTupleIndex()
Get the tupleindex.- Returns:
- The tupleindex.
-
getSubindex
public int getSubindex()
Get the subindex.- Returns:
- The subindex.
-
getValueSource
public java.lang.Object getValueSource()
Get the value source.- Returns:
- The value source.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-