org.prorefactor.treeparser
Class BufferScope

java.lang.Object
  extended by org.prorefactor.treeparser.BufferScope
All Implemented Interfaces:
Xferable

public class BufferScope
extends java.lang.Object
implements Xferable

A record of a BufferSymbol scope to a Block. Tells us if the scope is "strong" or not.


Field Summary
static int HIDDEN_CURSOR
          A "hidden cursor" is a BufferScope which has no side-effects on surrounding blocks like strong, weak, and reference scopes do.
static int REFERENCE
           
static int STRONG
           
static int WEAK
           
 
Constructor Summary
BufferScope()
          Only to be used for persistence/serialization.
BufferScope(Block block, TableBuffer symbol, int strength)
           
 
Method Summary
 Block getBlock()
           
 TableBuffer getSymbol()
           
 boolean isStrong()
           
 boolean isWeak()
           
 void setBlock(Block block)
           
 void setStrength(int strength)
           
 void writeXferBytes(DataXferStream out)
          Implement Xferable.
 void writeXferSchema(DataXferStream out)
          Implement Xferable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRONG

public static final int STRONG
See Also:
Constant Field Values

WEAK

public static final int WEAK
See Also:
Constant Field Values

REFERENCE

public static final int REFERENCE
See Also:
Constant Field Values

HIDDEN_CURSOR

public static final int HIDDEN_CURSOR
A "hidden cursor" is a BufferScope which has no side-effects on surrounding blocks like strong, weak, and reference scopes do. These are used within a CAN-FIND function. (2004.Sep:John: Maybe in triggers too? Haven't checked.)

See Also:
Constant Field Values
Constructor Detail

BufferScope

public BufferScope()
Only to be used for persistence/serialization.


BufferScope

public BufferScope(Block block,
                   TableBuffer symbol,
                   int strength)
Method Detail

getBlock

public Block getBlock()

getSymbol

public TableBuffer getSymbol()

isStrong

public boolean isStrong()

isWeak

public boolean isWeak()

setBlock

public void setBlock(Block block)

setStrength

public void setStrength(int strength)

writeXferBytes

public void writeXferBytes(DataXferStream out)
                    throws java.io.IOException
Implement Xferable.

Specified by:
writeXferBytes in interface Xferable
Throws:
java.io.IOException

writeXferSchema

public void writeXferSchema(DataXferStream out)
                     throws java.io.IOException
Implement Xferable.

Specified by:
writeXferSchema in interface Xferable
Throws:
java.io.IOException


Copyright © 2008 Joanju Software. All Rights Reserved.