Package weka.core.expressionlanguage.common

# Class NoVariables

java.lang.Object
weka.core.expressionlanguage.common.NoVariables

All Implemented Interfaces:
  `Serializable`, `VariableDeclarations`

public class NoVariables extends Object implements VariableDeclarations
A variable declarations that contains no variables

Version:
  $Revision: 1000 $
Author:
  Benjamin Weber ( benweber at student dot ethz dot ch )
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NoVariables()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Node`
  `getVariable(String name)`
  Tries to fetch the variable.
  `boolean`
  `hasVariable(String name)`
  Whether the variable is declared.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NoVariables

    public NoVariables()

- ## Method Details

  - ### hasVariable

    public boolean hasVariable(String name)
    Whether the variable is declared. Will always return `false`
    Specified by:
      `hasVariable` in interface `VariableDeclarations`
    Parameters:
      `name` - name of the variable
    Returns:
      whether the variable is declared. Always `false`.

  - ### getVariable

    public Node getVariable(String name)
    Tries to fetch the variable. Will always fail. The same invariant of `VariableDeclarations` applies here too.
    Specified by:
      `getVariable` in interface `VariableDeclarations`
    Parameters:
      `name` - name of the variable
    Returns:
      nothing