org.hibernate.hql.ast.tree
Class ConstructorNode
java.lang.Object
antlr.BaseAST
antlr.CommonAST
org.hibernate.hql.ast.tree.Node
org.hibernate.hql.ast.tree.SqlNode
org.hibernate.hql.ast.tree.HqlSqlWalkerNode
org.hibernate.hql.ast.tree.SelectExpressionList
org.hibernate.hql.ast.tree.ConstructorNode
- All Implemented Interfaces:
- antlr.collections.AST, java.io.Serializable, InitializeableNode, SelectExpression
public class ConstructorNode
- extends SelectExpressionList
- implements SelectExpression
Represents a constructor (new) in a SELECT.
- Author:
- josh Sep 24, 2004 6:46:08 PM
- See Also:
- Serialized Form
Fields inherited from class antlr.BaseAST |
down, right |
Methods inherited from class antlr.CommonAST |
getText, getType, initialize, setType |
Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConstructorNode
public ConstructorNode()
isMap
public boolean isMap()
isList
public boolean isList()
getAliases
public java.lang.String[] getAliases()
setScalarColumnText
public void setScalarColumnText(int i)
throws antlr.SemanticException
- Description copied from interface:
SelectExpression
- Appends AST nodes that represent the columns after the current AST node.
(e.g. 'as col0_O_')
- Specified by:
setScalarColumnText
in interface SelectExpression
- Parameters:
i
- The index of the select expression in the projection list.
- Throws:
antlr.SemanticException
getFirstSelectExpression
protected antlr.collections.AST getFirstSelectExpression()
- Description copied from class:
SelectExpressionList
- Returns the first select expression node that should be considered when building the array of select
expressions.
- Specified by:
getFirstSelectExpression
in class SelectExpressionList
- Returns:
- the first select expression node that should be considered when building the array of select
expressions
getDataType
public Type getDataType()
- Deprecated. (tell clover to ignore this method)
- Description copied from interface:
SelectExpression
- Returns the data type of the select expression.
- Specified by:
getDataType
in interface SelectExpression
- Overrides:
getDataType
in class SqlNode
- Returns:
- The data type of the select expression.
prepare
public void prepare()
throws antlr.SemanticException
- Throws:
antlr.SemanticException
getConstructor
public java.lang.reflect.Constructor getConstructor()
getConstructorArgumentTypeList
public java.util.List getConstructorArgumentTypeList()
getFromElement
public FromElement getFromElement()
- Description copied from interface:
SelectExpression
- Returns the FROM element that this expression refers to.
- Specified by:
getFromElement
in interface SelectExpression
- Returns:
- The FROM element.
isConstructor
public boolean isConstructor()
- Description copied from interface:
SelectExpression
- Returns true if the element is a constructor (e.g. new Foo).
- Specified by:
isConstructor
in interface SelectExpression
- Returns:
- true if the element is a constructor (e.g. new Foo).
isReturnableEntity
public boolean isReturnableEntity()
throws antlr.SemanticException
- Description copied from interface:
SelectExpression
- Returns true if this select expression represents an entity that can be returned.
- Specified by:
isReturnableEntity
in interface SelectExpression
- Returns:
- true if this select expression represents an entity that can be returned.
- Throws:
antlr.SemanticException
isScalar
public boolean isScalar()
- Specified by:
isScalar
in interface SelectExpression
setAlias
public void setAlias(java.lang.String alias)
- Specified by:
setAlias
in interface SelectExpression
getAlias
public java.lang.String getAlias()
- Specified by:
getAlias
in interface SelectExpression
Copyright © 2008 Hibernate.org. All Rights Reserved.