org.basex.query.util
Class Vars

java.lang.Object
  extended by org.basex.query.ExprInfo
      extended by org.basex.query.util.Vars

public final class Vars
extends ExprInfo

Variables.

Author:
Workgroup DBIS, University of Konstanz 2005-09, ISC License, Christian Gruen

Field Summary
 int size
          Number of stored variables.
 Var[] vars
          Variable expressions.
 
Constructor Summary
Vars()
           
 
Method Summary
 java.lang.String color()
          Returns a string description of the expression.
 Var get(Var v)
          Finds and returns the specified variable.
 void plan(Serializer ser)
          Recursively sends the abstract syntax of this expression to the specified serializer.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.ExprInfo
info, name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vars

public Var[] vars
Variable expressions.


size

public int size
Number of stored variables.

Constructor Detail

Vars

public Vars()
Method Detail

get

public Var get(Var v)
Finds and returns the specified variable.

Parameters:
v - variable
Returns:
variable

color

public java.lang.String color()
Description copied from class: ExprInfo
Returns a string description of the expression. Contrary to the ExprInfo.toString() method, the current expressions aren't included in the output.

Overrides:
color in class ExprInfo
Returns:
result of check

toString

public java.lang.String toString()
Specified by:
toString in class ExprInfo

plan

public void plan(Serializer ser)
          throws java.io.IOException
Description copied from class: ExprInfo
Recursively sends the abstract syntax of this expression to the specified serializer.

Specified by:
plan in class ExprInfo
Parameters:
ser - serializer
Throws:
java.io.IOException - exception