com.togethersoft.sca.dataflow.flowgraph
Interface IVal

All Known Subinterfaces:
IConstantVal, ITempVariable, IUserVariable, IVar

public interface IVal

Generic value. Generic values belong to one of the two categories: VARIABLE --- variable, either explicitly declared in program, either temporary value, generated by compiler. CONSTANT --- constant, either explicitly appeared in program either prodiced by compiler or constant folder


Field Summary
static int CONSTANT
          The value denotes a constant value
static int VARIABLE
          The value denotes a variable
 
Method Summary
 int getValueKind()
          Get kind of value object
 int getValueType()
          Get low-level type of value
 boolean isConstant()
          Is the value constant ?
 boolean isVariable()
          Is the value variable ?
 

Field Detail

CONSTANT

public static final int CONSTANT
The value denotes a constant value

VARIABLE

public static final int VARIABLE
The value denotes a variable
Method Detail

getValueKind

public int getValueKind()
Get kind of value object
Returns:
either VARIABLE<\code> either CONSTANT<\code>

getValueType

public int getValueType()
Get low-level type of value
Returns:
either of IType<\code> values
See Also:
com.togethersoft.sca.dataflow.values.IType

isConstant

public boolean isConstant()
Is the value constant ?
Returns:
true if and only if the Value is constant

isVariable

public boolean isVariable()
Is the value variable ?
Returns:
true if and only if the Value is variable