|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saffron.sql.SqlValidator.Scope
Name-resolution scope. Represents any position in a parse tree than an expression can be, or anything in the parse tree which has columns.
Field Summary | |
private String |
alias
|
SqlValidator.Scope |
parent
|
Constructor Summary | |
(package private) |
SqlValidator.Scope(SqlValidator.Scope parent,
String alias)
|
Method Summary | |
String |
deriveAlias(SqlNode node,
int ordinal)
|
protected String |
findQualifyingTableName(String columnName)
|
SqlIdentifier |
fullyQualify(SqlIdentifier identifier)
Converts an identifier into a fully-qualified identifier. |
String |
getAlias()
|
(package private) abstract SqlNode |
getNode()
|
abstract SaffronType |
getRowType()
Returns a list of names of output columns. |
SqlValidator.Scope |
getScopeFromNode(SqlNode node)
|
SqlValidator.Table |
getTable()
Returns the underlying table, or null if there is none. |
SqlValidator.Scope |
resolve(String name,
SqlValidator.Scope[] ancestorOut,
int[] offsetOut)
Looks up a node with a given name. |
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final SqlValidator.Scope parent
private final String alias
Constructor Detail |
SqlValidator.Scope(SqlValidator.Scope parent, String alias)
Method Detail |
public String getAlias()
public SqlValidator.Scope getScopeFromNode(SqlNode node)
public String deriveAlias(SqlNode node, int ordinal)
public SqlIdentifier fullyQualify(SqlIdentifier identifier)
public void validate()
abstract SqlNode getNode()
public SqlValidator.Scope resolve(String name, SqlValidator.Scope[] ancestorOut, int[] offsetOut)
name
- Name of node to findancestorOut
- If not null, writes the ancestor scope hereoffsetOut
- If not null, writes the offset within the ancestor
herepublic SqlValidator.Table getTable()
protected String findQualifyingTableName(String columnName)
public abstract SaffronType getRowType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |