Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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, 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

Field Summary

Fields inherited from class antlr.BaseAST
`down, right`

Constructor Summary
`ConstructorNode()`

Method Summary
`String` | `getAlias()`
`String[]` | `getAliases()`
`Constructor` | `getConstructor()`
`List` | `getConstructorArgumentTypeList()`
`Type` | `getDataType()` Deprecated. (tell clover to ignore this method)
`protected antlr.collections.AST` | `getFirstSelectExpression()` Returns the first select expression node that should be considered when building the array of select expressions.
`FromElement` | `getFromElement()` Returns the FROM element that this expression refers to.
`boolean` | `isConstructor()` Returns true if the element is a constructor (e.g.
`boolean` | `isList()`
`boolean` | `isMap()`
`boolean` | `isReturnableEntity()` Returns true if this select expression represents an entity that can be returned.
`boolean` | `isScalar()`
`void` | `prepare()`
`void` | `setAlias(String alias)`
`void` | `setScalarColumnText(int i)` Appends AST nodes that represent the columns after the current AST node.

Methods inherited from class org.hibernate.hql.ast.tree.SelectExpressionList
`collectSelectExpressions`

Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
`getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize`

Methods inherited from class org.hibernate.hql.ast.tree.SqlNode
`getOriginalText, setDataType, setText`

Methods inherited from class org.hibernate.hql.ast.tree.Node
`getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize`

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`

Methods inherited from interface org.hibernate.hql.ast.tree.SelectExpression
`setText`

Constructor Detail

### ConstructorNode

    public ConstructorNode()

Method Detail

### isMap

    public boolean isMap()

### isList

    public boolean isList()

### getAliases

    public 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 Constructor getConstructor()

### getConstructorArgumentTypeList

    public 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(String alias)

  Specified by:
    `setAlias` in interface `SelectExpression`

### getAlias

    public String getAlias()

  Specified by:
    `getAlias` in interface `SelectExpression`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD