org.prorefactor.treeparser
Class Dataset

java.lang.Object
  extended by org.prorefactor.treeparser.Symbol
      extended by org.prorefactor.treeparser.Dataset
All Implemented Interfaces:
Xferable, SymbolI

public class Dataset
extends Symbol

A Symbol defined with DEFINE DATASET.


Field Summary
 
Fields inherited from interface org.prorefactor.treeparser.SymbolI
NAME_ORDER
 
Constructor Summary
Dataset()
          Only to be used for persistence/serialization.
Dataset(java.lang.String name, SymbolScope scope)
           
 
Method Summary
 void addBuffer(TableBuffer buff)
          The treeparser calls this at RECORD_NAME in RECORD_NAME in FOR RECORD_NAME (COMMA RECORD_NAME)*.
 Symbol copyBare(SymbolScope scope)
          Generate a bare-bones copy of this symbol.
 java.lang.String fullName()
          For this subclass of Symbol, fullName() returns the same value as getName().
 java.util.ArrayList<TableBuffer> getBuffers()
          Get the list of buffers (in order) which make up this dataset's signature.
 int getProgressType()
          Returns TokenTypes.DATASET.
 void writeXferBytes(DataXferStream out)
          Implement Xferable.
 void writeXferSchema(DataXferStream out)
          Implement Xferable.
 
Methods inherited from class org.prorefactor.treeparser.Symbol
getAllRefsCount, getAsNode, getDefineNode, getIndirectDefineIdNode, getLikeNode, getName, getNumReads, getNumWrites, getScope, isExported, isImported, noteReference, setAsNode, setDefOrIdNode, setLikeNode, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dataset

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


Dataset

public Dataset(java.lang.String name,
               SymbolScope scope)
Method Detail

addBuffer

public void addBuffer(TableBuffer buff)
The treeparser calls this at RECORD_NAME in RECORD_NAME in FOR RECORD_NAME (COMMA RECORD_NAME)*.


copyBare

public Symbol copyBare(SymbolScope scope)
Description copied from class: Symbol
Generate a bare-bones copy of this symbol. Requires the scope to attach it to as the argument.

Specified by:
copyBare in class Symbol

fullName

public java.lang.String fullName()
For this subclass of Symbol, fullName() returns the same value as getName().

Specified by:
fullName in interface SymbolI
Specified by:
fullName in class Symbol

getBuffers

public java.util.ArrayList<TableBuffer> getBuffers()
Get the list of buffers (in order) which make up this dataset's signature.


getProgressType

public int getProgressType()
Returns TokenTypes.DATASET.

Specified by:
getProgressType in interface SymbolI
Specified by:
getProgressType in class Symbol
See Also:
Symbol.getProgressType()

writeXferBytes

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

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

writeXferSchema

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

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


Copyright © 2008 Joanju Software. All Rights Reserved.