Package org.teiid.query.sql.symbol
Class MultipleElementSymbol
- java.lang.Object
-
- org.teiid.query.sql.symbol.MultipleElementSymbol
-
- All Implemented Interfaces:
Cloneable
,LanguageObject
,Expression
public class MultipleElementSymbol extends Object implements Expression
This is a subclass of Symbol representing multiple output columns.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
-
-
Constructor Summary
Constructors Constructor Description MultipleElementSymbol()
MultipleElementSymbol(String name)
Construct a multiple element symbol
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.void
addElementSymbol(ElementSymbol symbol)
Add an element symbol referenced by this multiple element symbolObject
clone()
Return a deep copy of this objectboolean
equals(Object obj)
List<ElementSymbol>
getElementSymbols()
Get the element symbols referred to by this multiple element symbolGroupSymbol
getGroup()
Class<?>
getType()
Get the return type of this expression.int
hashCode()
void
setElementSymbols(List<ElementSymbol> elementSymbols)
Set theElementSymbol
s that this symbol refers tovoid
setGroup(GroupSymbol group)
String
toString()
-
-
-
Constructor Detail
-
MultipleElementSymbol
public MultipleElementSymbol()
-
MultipleElementSymbol
public MultipleElementSymbol(String name)
Construct a multiple element symbol- Parameters:
name
- Name of the symbol
-
-
Method Detail
-
getType
public Class<?> getType()
Description copied from interface:Expression
Get the return type of this expression.- Specified by:
getType
in interfaceExpression
- Returns:
- Java class may be null prior to being resolved
-
setElementSymbols
public void setElementSymbols(List<ElementSymbol> elementSymbols)
Set theElementSymbol
s that this symbol refers to- Parameters:
elementSymbols
- List ofElementSymbol
-
getElementSymbols
public List<ElementSymbol> getElementSymbols()
Get the element symbols referred to by this multiple element symbol- Returns:
- List of
ElementSymbol
s, may be null
-
addElementSymbol
public void addElementSymbol(ElementSymbol symbol)
Add an element symbol referenced by this multiple element symbol- Parameters:
symbol
- Element symbol referenced by this multiple element symbol
-
acceptVisitor
public void acceptVisitor(LanguageVisitor visitor)
Description copied from interface:LanguageObject
Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.- Specified by:
acceptVisitor
in interfaceLanguageObject
- Parameters:
visitor
- Visitor being used
-
clone
public Object clone()
Return a deep copy of this object- Specified by:
clone
in interfaceLanguageObject
- Overrides:
clone
in classObject
- Returns:
- Deep copy of this object
-
getGroup
public GroupSymbol getGroup()
- Returns:
- null if selecting all groups, otherwise the specific group
-
setGroup
public void setGroup(GroupSymbol group)
-
-