Top Description Fields Constructors Methods
org.hibernate.hql.ast.tree

public Class Node

extends CommonAST
Class Inheritance
Known Direct Subclasses
org.hibernate.hql.ast.tree.SqlFragment, org.hibernate.hql.ast.tree.SqlNode, org.hibernate.hql.ast.tree.JavaConstantNode
Imports
antlr.collections.AST, antlr.Token, org.hibernate.util.StringHelper, org.hibernate.engine.SessionFactoryImplementor

Base node class for use by Hibernate within its AST trees.
Authors
Joshua Davis, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private int
private String
private int
private int

Constructor Summary

AccessConstructor and Description
public
Node()

public
Node(Token tok)

Method Summary

Modifier and TypeMethod and Description
public int
public String
public int
public String

Returns:

The text to use for rendering
getRenderText
(SessionFactoryImplementor
The session factory
sessionFactory
)

Retrieve the text to be used for rendering this particular node.

public int
public void
public void
Inherited from antlr.CommonAST:
getTextgetTypeinitializesetTextsetType

Field Detail

columnback to summary
private int column
filenameback to summary
private String filename
lineback to summary
private int line
textLengthback to summary
private int textLength

Constructor Detail

Nodeback to summary
public Node()
Nodeback to summary
public Node(Token tok)

Method Detail

getColumnback to summary
public int getColumn()

Overrides antlr.BaseAST.getColumn.

Implements antlr.collections.AST.getColumn.

getFilenameback to summary
public String getFilename()
getLineback to summary
public int getLine()

Overrides antlr.BaseAST.getLine.

Implements antlr.collections.AST.getLine.

getRenderTextback to summary
public String getRenderText(SessionFactoryImplementor sessionFactory)

Retrieve the text to be used for rendering this particular node.

Parameters
sessionFactory:SessionFactoryImplementor

The session factory

Returns:String

The text to use for rendering

getTextLengthback to summary
public int getTextLength()
initializeback to summary
public void initialize(Token tok)

Overrides antlr.CommonAST.initialize.

Implements antlr.collections.AST.initialize.

initializeback to summary
public void initialize(AST t)

Overrides antlr.CommonAST.initialize.

Implements antlr.collections.AST.initialize.