|
Qizx/open API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Context for static analysis.
Method Summary | |
boolean |
check(net.axyana.qizxopen.xquery.fn.Prototype proto,
int rank,
net.axyana.qizxopen.xquery.op.Expression actualArgument)
Checks an expression against a prototype argument, raises an error if no match. |
void |
checkType(net.axyana.qizxopen.xquery.op.Expression expr,
XQType expected,
java.lang.String message)
Checks an expression against a type, raises an error if no match. |
net.axyana.qizxopen.xquery.op.LocalVariable |
defineLocalVariable(QName name,
XQType type,
net.axyana.qizxopen.xquery.op.Expression declaring)
Adds a local variable definition during compilation. |
void |
error(net.axyana.qizxopen.xquery.op.Expression place,
java.lang.String msg)
for static checking. |
net.axyana.qizxopen.xquery.fn.Function |
functionLookup(QName name)
Looks for a function (user or predefined) in the static context: successively in current module, imported modules, predefined context. |
java.lang.String |
getBaseURI()
Returns the default element namespace. |
java.text.Collator |
getCollator(java.lang.String uri)
|
java.lang.String |
getDefaultCollation()
Gets the implementation-defined or query-defined default collation |
Namespace |
getDefaultElementNS()
Returns the default element namespace. |
Namespace |
getDefaultFunctionNS()
Returns the default function namespace. |
XQItemType |
getDotType()
|
net.axyana.qizxopen.xquery.op.Expression |
getEnclosing(int levels)
Returns the enclosing expression 'levels' above, returns null if none. |
NSPrefixMapping |
getInScopeNS()
Returns the declared namespaces. |
net.axyana.qizxopen.xquery.op.GlobalVariable |
lookforGlobalVariable(QName name)
Returns a global variable (null if not defined) |
net.axyana.qizxopen.xquery.op.LocalVariable |
lookforLocalVariable(QName name)
Returns the declaration of a local variable |
net.axyana.qizxopen.xquery.op.LocalVariable |
markLocalVariables()
Returns the previous local variable definition (used for pop). |
void |
popDotType()
|
void |
popLocalVariables(net.axyana.qizxopen.xquery.op.LocalVariable mark)
Pops local variable definitions during compilation. |
java.lang.String |
prefixedName(QName name)
Converts a QName to prefix:ncname using the declared namespaces. |
void |
pushDotType(XQType type)
Defines the type of '.' for the enclosed expression. |
net.axyana.qizxopen.xquery.op.Expression |
resolve(net.axyana.qizxopen.xquery.fn.Prototype[] protos,
net.axyana.qizxopen.xquery.op.Expression[] actualArguments,
net.axyana.qizxopen.xquery.op.Expression call)
Finds the prototype that matches arguments, else emits an error. |
net.axyana.qizxopen.xquery.op.Expression |
staticCheck(net.axyana.qizxopen.xquery.op.Expression expr,
int flags)
Wraps the static type checking of a subexpression. |
Method Detail |
public Namespace getDefaultFunctionNS()
public Namespace getDefaultElementNS()
public NSPrefixMapping getInScopeNS()
public net.axyana.qizxopen.xquery.fn.Function functionLookup(QName name) throws XQueryException
XQueryException
- only when the access to an existing function is
explicitly denied (e.g. security).public net.axyana.qizxopen.xquery.op.LocalVariable lookforLocalVariable(QName name)
public net.axyana.qizxopen.xquery.op.LocalVariable defineLocalVariable(QName name, XQType type, net.axyana.qizxopen.xquery.op.Expression declaring)
public net.axyana.qizxopen.xquery.op.LocalVariable markLocalVariables()
public void popLocalVariables(net.axyana.qizxopen.xquery.op.LocalVariable mark)
public net.axyana.qizxopen.xquery.op.GlobalVariable lookforGlobalVariable(QName name)
public java.lang.String prefixedName(QName name)
public java.lang.String getBaseURI()
public java.lang.String getDefaultCollation()
public java.text.Collator getCollator(java.lang.String uri)
public void error(net.axyana.qizxopen.xquery.op.Expression place, java.lang.String msg)
public net.axyana.qizxopen.xquery.op.Expression staticCheck(net.axyana.qizxopen.xquery.op.Expression expr, int flags)
public net.axyana.qizxopen.xquery.op.Expression getEnclosing(int levels)
public void checkType(net.axyana.qizxopen.xquery.op.Expression expr, XQType expected, java.lang.String message)
public boolean check(net.axyana.qizxopen.xquery.fn.Prototype proto, int rank, net.axyana.qizxopen.xquery.op.Expression actualArgument)
public net.axyana.qizxopen.xquery.op.Expression resolve(net.axyana.qizxopen.xquery.fn.Prototype[] protos, net.axyana.qizxopen.xquery.op.Expression[] actualArguments, net.axyana.qizxopen.xquery.op.Expression call)
protos
- list of applicable prototypesactualArguments
- argument list to matchcall
- concerned expression, for error message.
public void pushDotType(XQType type)
public void popDotType()
public XQItemType getDotType()
|
© 2005 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |