|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prorefactor.treeparser.Symbol
org.prorefactor.treeparser.FieldBuffer
public class FieldBuffer
FieldBuffer is the Symbol object linked to from the AST for schema, temp, and work table fields, and FieldBuffer provides the link to the Field object.
| Field Summary |
|---|
| Fields inherited from interface org.prorefactor.treeparser.SymbolI |
|---|
NAME_ORDER |
| Constructor Summary | |
|---|---|
FieldBuffer()
Only to be used for persistence/serialization. |
|
FieldBuffer(SymbolScope scope,
TableBuffer buffer,
Field field)
When you create a FieldBuffer object, you do not set the name, because that comes from the Field object. |
|
| Method Summary | |
|---|---|
void |
assignAttributesLike(Primative likePrim)
Assign datatype, class, extent from another primative (for the LIKE keyword). |
boolean |
canMatch(Field.Name input)
Could this FieldBuffer be referenced by the input name? Input Field.Name must already be all lowercase. |
Symbol |
copyBare(SymbolScope scope)
Deprecated. INVALID. Do not use. There is never any reason to copy a FieldBuffer, since they are created by the tree parser on the fly. They are not defined formally in the syntax. |
java.lang.String |
fullName()
Get "database.buffer.field" for schema fields, or "buffer.field" for temp/work table fields. |
TableBuffer |
getBuffer()
|
java.lang.String |
getClassName()
Gets the underlying Field's className (or null if not a class). |
DataType |
getDataType()
Gets the underlying Field's dataType. |
int |
getExtent()
The extent comes from the underlying Field. |
Field |
getField()
|
java.lang.String |
getName()
Returns the Field name. |
int |
getProgressType()
Always returns FIELD. |
boolean |
isExported()
Is the symbol newly defined here and visible to other compile units? This includes PROTECTED members visible to subclasses. |
boolean |
isImported()
Defined as SHARED? |
Primative |
setClassName(java.lang.String className)
Sets the underlying Field's className. |
Primative |
setDataType(DataType dataType)
Sets the underlying Field's dataType. |
Primative |
setExtent(int extent)
Sets the extent of the underlying Field. |
void |
setName(java.lang.String name)
Invalid - do not call. |
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, getNumReads, getNumWrites, getScope, noteReference, setAsNode, setDefOrIdNode, setLikeNode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FieldBuffer()
public FieldBuffer(SymbolScope scope,
TableBuffer buffer,
Field field)
| Method Detail |
|---|
public void assignAttributesLike(Primative likePrim)
Primative
assignAttributesLike in interface Primativepublic boolean canMatch(Field.Name input)
public Symbol copyBare(SymbolScope scope)
Symbol
copyBare in class Symbolpublic java.lang.String fullName()
fullName in interface SymbolIfullName in class Symbolpublic TableBuffer getBuffer()
public java.lang.String getClassName()
getClassName in interface PrimativePrimative.getClassName()public DataType getDataType()
getDataType in interface Primativepublic int getExtent()
getExtent in interface Primativepublic Field getField()
public java.lang.String getName()
getName in interface SymbolIgetName in class Symbolpublic int getProgressType()
getProgressType in interface SymbolIgetProgressType in class SymbolTo see if this field buffer is for a schema table, temp-table, or work-table,
see Table.getStoreType().,
Table.getStoretype().public boolean isExported()
SymbolI
isExported in interface SymbolIisExported in class SymbolSymbol.isExported()public boolean isImported()
SymbolI
isImported in interface SymbolIisImported in class SymbolSymbol.isImported()public Primative setClassName(java.lang.String className)
setClassName in interface Primativepublic Primative setDataType(DataType dataType)
setDataType in interface Primativepublic Primative setExtent(int extent)
setExtent in interface Primativepublic void setName(java.lang.String name)
setName in interface SymbolIsetName in class Symbol
public void writeXferBytes(DataXferStream out)
throws java.io.IOException
writeXferBytes in interface XferablewriteXferBytes in class Symboljava.io.IOException
public void writeXferSchema(DataXferStream out)
throws java.io.IOException
writeXferSchema in interface XferablewriteXferSchema in class Symboljava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||