Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.query.xquery.util
Class Variables

    java.lang.Object
      org.basex.query.xquery.util.Variables

    public final class Variables

extends java.lang.Object

Variables.

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

Constructor Summary
`Variables()`

Method Summary
`void` | `add(Var v)` Indexes a local variable.
`void` | `addGlobal(Var v)` Indexes a global variable.
`void` | `comp(XQContext ctx)` Compiles the functions.
`Var` | `get(Var var)` Finds the specified variable.
`Vars` | `getGlobal()` Returns the global variables.
`void` | `plan(Serializer ser)` Serializes the variables.
`void` | `reset(int s)` Sets the number of local variables.
`int` | `size()` Returns the current number of local variables.
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Variables

    public Variables()

Method Detail

### addGlobal

    public void addGlobal(Var v)

  Indexes a global variable.

  Parameters:
    `v` - variable

### getGlobal

    public Vars getGlobal()

  Returns the global variables.

  Returns:
    global variables

### add

    public void add(Var v)

  Indexes a local variable.

  Parameters:
    `v` - variable

### get

    public Var get(Var var)

  Finds the specified variable.

  Parameters:
    `var` - variable
  Returns:
    variable

### size

    public int size()

  Returns the current number of local variables.

  Returns:
    number of variables

### reset

    public void reset(int s)

  Sets the number of local variables.

  Parameters:
    `s` - number of variables to be set

### comp

    public void comp(XQContext ctx)
              throws XQException

  Compiles the functions.

  Parameters:
    `ctx` - xquery context
  Throws:
    `XQException` - xquery exception

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

### plan

    public void plan(Serializer ser)
              throws java.io.IOException

  Serializes the variables.

  Parameters:
    `ser` - serializer
  Throws:
    `java.io.IOException` - exception

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD