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.expr
Class ForLet

    java.lang.Object
      org.basex.query.ExprInfo
          org.basex.query.expr.Expr
              org.basex.query.expr.ForLet

Direct Known Subclasses:
  For, Let

    public abstract class ForLet

extends Expr

Abstract For/Let Clause.

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

Constructor Summary
`ForLet()`

Method Summary
`java.lang.String` | `color()` Returns a string description of the expression.
`boolean` | `removable(Var v, QueryContext ctx)` Checks if the specified variable is removable.
`Expr` | `remove(Var v)` Removes the specified variable in a sub expression.
`Return` | `returned(QueryContext ctx)` Indicates the return type of an expression.
`boolean` | `shadows(Var v)` Checks if the specified is not shadowed by another variable.

Methods inherited from class org.basex.query.expr.Expr
`addText, atomic, checkCtx, checkDbl, checkItr, comp, duplicates, e, ebv, i, indexAccessible, indexEquivalent, iter, sameAs, size, test, uses`

Methods inherited from class org.basex.query.ExprInfo
`info, name, plan, toString`

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

Constructor Detail

### ForLet

    public ForLet()

Method Detail

### removable

    public boolean removable(Var v,
                             QueryContext ctx)

  Description copied from class: `Expr`
  Checks if the specified variable is removable.

  Overrides:
    `removable` in class `Expr`
  Parameters:
    `v` - variable to be removed
    `ctx` - query context
  Returns:
    result of check

### remove

    public final Expr remove(Var v)

  Description copied from class: `Expr`
  Removes the specified variable in a sub expression.

  Overrides:
    `remove` in class `Expr`
  Parameters:
    `v` - variable to be removed
  Returns:
    expression with removed variable

### returned

    public Return returned(QueryContext ctx)

  Description copied from class: `Expr`
  Indicates the return type of an expression. Called by the compiler to check if expressions can be reformulated. null is returned by default.

  Overrides:
    `returned` in class `Expr`
  Parameters:
    `ctx` - query context
  Returns:
    result of check

### shadows

    public boolean shadows(Var v)

  Checks if the specified is not shadowed by another variable.

  Parameters:
    `v` - variable to be checked
  Returns:
    result of check

### color

    public final 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

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