|
||||||||||
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.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 Primative
public Symbol copyBare(SymbolScope scope)
Symbol
copyBare
in class Symbol
public java.lang.String fullName()
fullName
in interface SymbolI
fullName
in class Symbol
public java.lang.String getClassName()
Primative
getClassName
in interface Primative
Primative.getClassName()
public DataType getDataType()
getDataType
in interface Primative
public int getExtent()
getExtent
in interface Primative
public java.lang.Object getValue()
getValue
in interface Value
Value.getValue()
public int getProgressType()
getProgressType
in interface SymbolI
getProgressType
in class Symbol
public Primative setClassName(java.lang.String s)
setClassName
in interface Primative
public Primative setDataType(DataType dataType)
setDataType
in interface Primative
public Primative setExtent(int extent)
setExtent
in interface Primative
public void setValue(java.lang.Object value)
setValue
in interface Value
Value.setValue(java.lang.Object)
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 |