Class VarInfo
- java.lang.Object
-
- jadex.rules.rulesystem.rete.builder.VarInfo
-
public class VarInfo extends java.lang.Object
A 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 int
getSubindex()
Get the subindex.int
getTupleIndex()
Get the tupleindex.java.lang.Object
getValueSource()
Get the value source.Variable
getVariable()
Get the variable.java.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-