Package org.teiid.query.sql.symbol
Class Array
- java.lang.Object
-
- org.teiid.query.sql.symbol.Array
-
- All Implemented Interfaces:
Cloneable
,LanguageObject
,Expression
public class Array extends Object implements Expression
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
-
-
Constructor Summary
Constructors Constructor Description Array(Class<?> baseType, List<Expression> expresssions)
Array(List<Expression> expressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.Array
clone()
Implement clone to make objects cloneable.boolean
equals(Object obj)
Class<?>
getComponentType()
List<Expression>
getExpressions()
Class<?>
getType()
Get the return type of this expression.int
hashCode()
boolean
isImplicit()
If the array has been implicitly constructed, such as with vararg parametersvoid
setComponentType(Class<?> baseType)
void
setImplicit(boolean implicit)
void
setType(Class<?> type)
String
toString()
-
-
-
Constructor Detail
-
Array
public Array(List<Expression> expressions)
-
Array
public Array(Class<?> baseType, List<Expression> expresssions)
-
-
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
-
setType
public void setType(Class<?> type)
-
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 Array clone()
Description copied from interface:LanguageObject
Implement clone to make objects cloneable.- Specified by:
clone
in interfaceLanguageObject
- Overrides:
clone
in classObject
- Returns:
- Deep clone of this object
-
getComponentType
public Class<?> getComponentType()
-
setComponentType
public void setComponentType(Class<?> baseType)
-
getExpressions
public List<Expression> getExpressions()
-
setImplicit
public void setImplicit(boolean implicit)
-
isImplicit
public boolean isImplicit()
If the array has been implicitly constructed, such as with vararg parameters- Returns:
-
-