public interface VariableDeclarations extends Serializable
hasVariable(String)
== true ->
getVariable(String)
!= null
hasVariable(String)
should be pure i.e. have no side effects.
Whereas getVariable(String)
may have side effects.
(This is useful for creating variables on the fly in getVariable(String)
)Modifier and Type | Method and Description |
---|---|
Node |
getVariable(String name)
Tries to fetch a variable
|
boolean |
hasVariable(String name)
Whether the variable is declared
|
boolean hasVariable(String name)
name
- name of the variable being queriedNode getVariable(String name)
hasVariable(String)
.name
- name of the variable to be fetchedCopyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.