org.jikesrvm.compilers.opt.util
Interface GraphElement

All Known Subinterfaces:
DF_LatticeCell, GraphNode
All Known Implementing Classes:
AnnotatedLSTNode, BasicBlock, CoalesceGraph.Node, DepGraphNode, DF_AbstractCell, DF_Equation, DominatorCell, ExceptionHandlerBasicBlock, IndexPropagation.ArrayCell, IndexPropagation.ObjectCell, LSTNode, SortedGraphNode, SpaceEffGraphNode, ValueGraphVertex

Deprecated.

@Deprecated
public interface GraphElement

Many clients of graph methods expect their graph nodes to implement a pair of scratch fields, one of int type and one of object type. This is a fairly evil thing to do, but it is deeply embedded in many places, and this interface can be used for such clients. It is not recommended, to put it mildly.

See Also:
Graph

Method Summary
 int getScratch()
          Deprecated.  
 int setScratch(int scratch)
          Deprecated.  
 

Method Detail

getScratch

@Deprecated
int getScratch()
Deprecated. 

read the scratch field of int type

Returns:
the contents of the int scratch field

setScratch

@Deprecated
int setScratch(int scratch)
Deprecated. 

set the scratch field of int type

Parameters:
scratch - the new contents of the int scratch field