|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractBranch
org.dom4j.tree.AbstractElement
org.dom4j.tree.DefaultElement
smacs.tree.ScriptNode
smacs.write.script.PsqlScriptNode
smacs.write.script.PsqlVariableUsed
The use of a variable.
The actual PsqlVariable is often declared in a shell wrapper. The actual
usage is later done with this PsqlVariableUsed instance that is no more
than a shallow wrapper around a reference. It does re-export many methods of the
PsqlVariable by de-referencing the link and returning the values of the
current PsqlVariable attached. Therefore, all changes in name or type
will be automatically reflected wherever the instance was used.
Note that a plain PsqlVariable does have an empty print method while a used-var will atleast print the name - and when it has been marked as the first "definition" occurrence then it will print the type and initialization expression as well. Also note that the referenced PsqlVariable will change type during resolve and change name during freeze. (or vice versa).
PsqlVariable,
Serialized Form| Field Summary | |
static String |
Assign
|
| Fields inherited from class smacs.tree.ScriptNode |
_NodeHandler, log, TokenValue |
| Fields inherited from class org.dom4j.tree.AbstractElement |
EMPTY_ITERATOR, EMPTY_LIST, USE_STRINGVALUE_SEPARATOR, VERBOSE_TOSTRING |
| Fields inherited from class org.dom4j.tree.AbstractBranch |
DEFAULT_CONTENT_LIST_SIZE, outputFormat |
| Fields inherited from class org.dom4j.tree.AbstractNode |
NODE_TYPE_NAMES |
| Fields inherited from interface smacs.tree.SimpleNode |
TokenValue |
| Fields inherited from interface org.dom4j.Node |
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE |
| Constructor Summary | |
PsqlVariableUsed(PsqlVariable var)
constructor. wraps the given PsqlVariable |
|
| Method Summary | |
void |
beDefinition()
|
PsqlScriptNode |
getInitPsqlExpression()
get InitExpr. |
String |
getInitPsqlExpressionString(PsqlPrintStream w)
convert InitExpr to a string. calls implicitly getInitPsqlExpression() |
String |
getPsqlName()
returns resolved name to be used in scripts |
String |
getPsqlPrintName()
|
String |
getPsqlTypeName()
returns resolved type name to be used in scripts |
PsqlVariable |
getPsqlVariable()
return wrapped PsqlVariable instance. |
String |
getPsqlVariableName()
returns resolved variable name to be used in scripts |
boolean |
isDefinition()
|
boolean |
print(PsqlPrintStream w)
|
String |
printstring(PsqlPrintStream w)
|
void |
setPsqlNewName(String newname)
set Variable name. reach through into original PsqlVariable - used during freezing. |
| Methods inherited from class smacs.write.script.PsqlScriptNode |
adds, freeze, freezePsqlChildren, newNode, newNode, print, printPsqlChildren, printPsqlChildrenBlock, printPsqlChildrenBlock, resolve, resolvePsqlChildren |
| Methods inherited from class org.dom4j.tree.AbstractBranch |
addElement, addElement, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, elementID, getContentAsStringValue, getContentAsText, getTextTrim, hasContent, invalidNodeTypeAddException, isReadOnly, setProcessingInstructions |
| Methods inherited from class org.dom4j.tree.AbstractNode |
asXPathResult, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.dom4j.Branch |
add, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructions |
| Methods inherited from interface org.dom4j.Node |
accept, asXML, asXPathResult, clone, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getParent, getPath, getPath, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write |
| Methods inherited from interface smacs.util.listen.GetName |
getName |
| Field Detail |
public static final String Assign
| Constructor Detail |
public PsqlVariableUsed(PsqlVariable var)
PsqlVariable
| Method Detail |
public PsqlVariable getPsqlVariable()
PsqlVariable instance. The other functions call this implictly.
public boolean isDefinition()
public void beDefinition()
public String getPsqlTypeName()
HasPsqlTypeName
getPsqlTypeName in interface HasPsqlTypeNamepublic String getPsqlVariableName()
HasPsqlVariableName
getPsqlVariableName in interface HasPsqlVariableNamepublic String getPsqlName()
HasPsqlName
getPsqlName in interface HasPsqlNamepublic String getPsqlPrintName()
public void setPsqlNewName(String newname)
setPsqlNewName in interface HasPsqlNewNamepublic PsqlScriptNode getInitPsqlExpression()
PsqlVariable
public String getInitPsqlExpressionString(PsqlPrintStream w)
getInitPsqlExpression()
public boolean print(PsqlPrintStream w)
print in interface PsqlSimpleNodeprint in class PsqlScriptNodepublic String printstring(PsqlPrintStream w)
printstring in interface PsqlSimpleNodeprintstring in class PsqlScriptNode
|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||