|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.query.sql.symbol.Symbol
org.teiid.query.sql.symbol.SelectSymbol
org.teiid.query.sql.symbol.SingleElementSymbol
org.teiid.query.sql.symbol.ElementSymbol
public class ElementSymbol
This is a subclass of Symbol representing a single element. An ElementSymbol also is an expression and thus has a type. Element symbols have a variety of attributes that determine how they are displayed - a flag for displaying fully qualified and an optional vdb name.
The "isExternalReference" property indicates whether the element symbol refers to an element from a group outside the current command. Typically this is set to false. Common uses when this is set to true are for variables used within a command, correlated elements within a command, etc.
Nested Class Summary | |
---|---|
static class |
ElementSymbol.DisplayMode
|
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject |
---|
LanguageObject.Util |
Field Summary |
---|
Fields inherited from class org.teiid.query.sql.symbol.SingleElementSymbol |
---|
SEPARATOR |
Constructor Summary | |
---|---|
|
ElementSymbol(java.lang.String name)
Simple constructor taking just a name. |
|
ElementSymbol(java.lang.String name,
boolean displayFullyQualified)
Constructor taking a name and a flag whether to display fully qualified. |
protected |
ElementSymbol(java.lang.String name,
java.lang.String canonicalName)
Constructor used for cloning |
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
java.lang.Object |
clone()
Return a deep copy of this object. |
boolean |
getDisplayFullyQualified()
Get whether this element will be displayed as fully qualified |
ElementSymbol.DisplayMode |
getDisplayMode()
|
GroupSymbol |
getGroupSymbol()
Get the group symbol referred to by this element symbol, may be null before resolution |
java.lang.Object |
getMetadataID()
Get the metadata ID reference |
java.lang.Class |
getType()
Get the type of the symbol |
boolean |
isExternalReference()
Get whether this element is an external reference to a group outside the command context. |
boolean |
isResolved()
If metadataID is not null and type is not null return true, else return false |
void |
setDisplayFullyQualified(boolean displayFullyQualified)
Set whether this element will be displayed as fully qualified |
void |
setDisplayMode(ElementSymbol.DisplayMode displayMode)
|
void |
setGroupSymbol(GroupSymbol symbol)
Set the group symbol referred to by this element symbol |
void |
setIsExternalReference(boolean isExternalReference)
Set whether this element is an external reference. |
void |
setMetadataID(java.lang.Object metadataID)
Set the metadata ID reference for this element |
void |
setType(java.lang.Class type)
Set the type of the symbol |
Methods inherited from class org.teiid.query.sql.symbol.SingleElementSymbol |
---|
getShortCanonicalName, getShortName, getShortName |
Methods inherited from class org.teiid.query.sql.symbol.Symbol |
---|
equals, getCanonical, getCanonicalName, getName, getOutputName, hashCode, setName, setOutputName, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ElementSymbol(java.lang.String name, java.lang.String canonicalName)
name
- canonicalName
- public ElementSymbol(java.lang.String name)
name
- Name of the symbol, may or may not be fully qualifiedpublic ElementSymbol(java.lang.String name, boolean displayFullyQualified)
name
- Name of the symboldisplayFullyQualified
- True if should display fully qualifiedMethod Detail |
---|
public void setDisplayMode(ElementSymbol.DisplayMode displayMode)
public ElementSymbol.DisplayMode getDisplayMode()
public void setDisplayFullyQualified(boolean displayFullyQualified)
displayFullyQualified
- True if should display fully qualifiedpublic boolean getDisplayFullyQualified()
public void setIsExternalReference(boolean isExternalReference)
isExternalReference
- True if element is an external referencepublic boolean isExternalReference()
public void setGroupSymbol(GroupSymbol symbol)
symbol
- the group symbol to setpublic GroupSymbol getGroupSymbol()
public java.lang.Object getMetadataID()
public void setMetadataID(java.lang.Object metadataID)
metadataID
- Metadata ID referencepublic java.lang.Class getType()
public void setType(java.lang.Class type)
type
- New typepublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic boolean isResolved()
isResolved
in interface Expression
isResolved
in class Symbol
public java.lang.Object clone()
clone
in interface LanguageObject
clone
in class Symbol
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |