|
||||||||||
| 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.Variable
public class Variable
A Symbol defined with DEFINE VARIABLE or any of the other various syntaxes which implicitly define a variable.
| Field Summary |
|---|
| Fields inherited from interface org.prorefactor.treeparser.SymbolI |
|---|
NAME_ORDER |
| Constructor Summary | |
|---|---|
Variable()
Only to be used for persistence/serialization. |
|
Variable(java.lang.String name,
SymbolScope scope)
|
|
| Method Summary | |
|---|---|
void |
assignAttributesLike(Primative likePrim)
Assign datatype, class, extent from another primative (for the LIKE keyword). |
Symbol |
copyBare(SymbolScope scope)
Generate a bare-bones copy of this symbol. |
java.lang.String |
fullName()
Return the name of the variable. |
java.lang.String |
getClassName()
The name of the CLASS that this variable was defined for. |
DataType |
getDataType()
|
int |
getExtent()
|
int |
getProgressType()
Returns TokenTypes.VARIABLE. |
java.lang.Object |
getValue()
|
Primative |
setClassName(java.lang.String s)
|
Primative |
setDataType(DataType dataType)
|
Primative |
setExtent(int extent)
|
void |
setValue(java.lang.Object value)
|
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 |
|---|
public Variable()
public Variable(java.lang.String name,
SymbolScope scope)
| Method Detail |
|---|
public void assignAttributesLike(Primative likePrim)
Primative
assignAttributesLike in interface Primativepublic Symbol copyBare(SymbolScope scope)
Symbol
copyBare in class Symbolpublic java.lang.String fullName()
fullName in interface SymbolIfullName in class Symbolpublic java.lang.String getClassName()
Primative
getClassName in interface PrimativePrimative.getClassName()public DataType getDataType()
getDataType in interface Primativepublic int getExtent()
getExtent in interface Primativepublic java.lang.Object getValue()
getValue in interface ValueValue.getValue()public int getProgressType()
getProgressType in interface SymbolIgetProgressType in class Symbolpublic Primative setClassName(java.lang.String s)
setClassName in interface Primativepublic Primative setDataType(DataType dataType)
setDataType in interface Primativepublic Primative setExtent(int extent)
setExtent in interface Primativepublic void setValue(java.lang.Object value)
setValue in interface ValueValue.setValue(java.lang.Object)
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 | |||||||||