public interface VariableDeclarations
extends java.io.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(java.lang.String name)
Tries to fetch a variable
|
boolean |
hasVariable(java.lang.String name)
Whether the variable is declared
|
boolean hasVariable(java.lang.String name)
name - name of the variable being queriedNode getVariable(java.lang.String name)
hasVariable(String).name - name of the variable to be fetched