Class NoVariables
java.lang.Object
weka.core.expressionlanguage.common.NoVariables
- All Implemented Interfaces:
Serializable
,VariableDeclarations
A variable declarations that contains no variables
- Version:
- $Revision: 1000 $
- Author:
- Benjamin Weber ( benweber at student dot ethz dot ch )
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetVariable
(String name) Tries to fetch the variable.boolean
hasVariable
(String name) Whether the variable is declared.
-
Constructor Details
-
NoVariables
public NoVariables()
-
-
Method Details
-
hasVariable
Whether the variable is declared. Will always returnfalse
- Specified by:
hasVariable
in interfaceVariableDeclarations
- Parameters:
name
- name of the variable- Returns:
- whether the variable is declared. Always
false
.
-
getVariable
Tries to fetch the variable. Will always fail. The same invariant ofVariableDeclarations
applies here too.- Specified by:
getVariable
in interfaceVariableDeclarations
- Parameters:
name
- name of the variable- Returns:
- nothing
-