Package org.basex.query.var
Class StaticVar
java.lang.Object
org.basex.query.expr.ExprInfo
org.basex.query.scope.StaticScope
org.basex.query.scope.StaticDecl
org.basex.query.var.StaticVar
- All Implemented Interfaces:
Scope
Static variable to which an expression can be assigned.
- Author:
- BaseX Team 2005-21, BSD License, Leo Woerteler
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanIf this variable can be bound from outside the query.Fields inherited from class org.basex.query.scope.StaticDecl
anns, declType, dontEnter, name -
Method Summary
Modifier and TypeMethodDescriptionvoidcomp(CompileContext cc) Compiles the expression contained in this scope.Returns a string description of the expression.byte[]id()Returns a unique identifier for this declaration.voidCreates a query plan.voidplan(QueryString qs) Creates a query string.booleanvisit(ASTVisitor visitor) Traverses this scope with the givenASTVisitor.Methods inherited from class org.basex.query.scope.StaticDecl
seqTypeMethods inherited from class org.basex.query.scope.StaticScope
compiled, docMethods inherited from class org.basex.query.expr.ExprInfo
toErrorString, toString
-
Field Details
-
external
public final boolean externalIf this variable can be bound from outside the query.
-
-
Method Details
-
comp
Description copied from interface:ScopeCompiles the expression contained in this scope.- Parameters:
cc- compilation context- Throws:
QueryException- compilation errors
-
visit
Description copied from interface:ScopeTraverses this scope with the givenASTVisitor.- Parameters:
visitor- visitor- Returns:
- continue flag
-
id
public byte[] id()Description copied from class:StaticDeclReturns a unique identifier for this declaration.- Specified by:
idin classStaticDecl- Returns:
- a byte sequence that uniquely identifies this declaration
-
description
Description copied from class:ExprInfoReturns a string description of the expression. This method is only called by error messages. Contrary to theExprInfo.toString()method, arguments are not included in the output.- Overrides:
descriptionin classExprInfo- Returns:
- result of check
-
plan
Description copied from class:ExprInfoCreates a query plan. -
plan
Description copied from class:ExprInfoCreates a query string.
-