|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Primative
public boolean canMatch(Field.Name input)
public Symbol copyBare(SymbolScope scope)
Symbol
copyBare
in class Symbol
public java.lang.String fullName()
fullName
in interface SymbolI
fullName
in class Symbol
public TableBuffer getBuffer()
public java.lang.String getClassName()
getClassName
in interface Primative
Primative.getClassName()
public DataType getDataType()
getDataType
in interface Primative
public int getExtent()
getExtent
in interface Primative
public Field getField()
public java.lang.String getName()
getName
in interface SymbolI
getName
in class Symbol
public int getProgressType()
getProgressType
in interface SymbolI
getProgressType
in class Symbol
To 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 SymbolI
isExported
in class Symbol
Symbol.isExported()
public boolean isImported()
SymbolI
isImported
in interface SymbolI
isImported
in class Symbol
Symbol.isImported()
public Primative setClassName(java.lang.String className)
setClassName
in interface Primative
public Primative setDataType(DataType dataType)
setDataType
in interface Primative
public Primative setExtent(int extent)
setExtent
in interface Primative
public void setName(java.lang.String name)
setName
in interface SymbolI
setName
in class Symbol
public void writeXferBytes(DataXferStream out) throws java.io.IOException
writeXferBytes
in interface Xferable
writeXferBytes
in class Symbol
java.io.IOException
public void writeXferSchema(DataXferStream out) throws java.io.IOException
writeXferSchema
in interface Xferable
writeXferSchema
in class Symbol
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |