Package org.qdl_lang.statements
Class ModuleStatement
- java.lang.Object
-
- org.qdl_lang.statements.ModuleStatement
-
- All Implemented Interfaces:
Serializable
,Statement
public class ModuleStatement extends Object implements Statement
Has to exist and fulfill various contracts, but mostly this collects state and statements and puts them in a module object.Created by Jeff Gaynor
on 1/22/20 at 10:35 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description List<String>
documentation
-
Constructor Summary
Constructors Constructor Description ModuleStatement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearInstance()
Object
evaluate(State state)
String
getAlias()
List<String>
getDocumentation()
Module
getmInstance()
URI
getNamespace()
List<String>
getSourceCode()
List<Statement>
getStatements()
TokenPosition
getTokenPosition()
boolean
hasTokenPosition()
void
setAlias(String alias)
void
setDocumentation(List<String> documentation)
void
setNamespace(URI namespace)
void
setSourceCode(List<String> sourceCode)
void
setStatements(List<Statement> statements)
void
setTokenPosition(TokenPosition tokenPosition)
Set the location of this token from the parser.
-
-
-
Method Detail
-
setTokenPosition
public void setTokenPosition(TokenPosition tokenPosition)
Description copied from interface:Statement
Set the location of this token from the parser. This is used for error notifications later.- Specified by:
setTokenPosition
in interfaceStatement
-
getTokenPosition
public TokenPosition getTokenPosition()
- Specified by:
getTokenPosition
in interfaceStatement
-
hasTokenPosition
public boolean hasTokenPosition()
- Specified by:
hasTokenPosition
in interfaceStatement
-
getNamespace
public URI getNamespace()
-
setNamespace
public void setNamespace(URI namespace)
-
getAlias
public String getAlias()
-
setAlias
public void setAlias(String alias)
-
getmInstance
public Module getmInstance()
-
clearInstance
public void clearInstance()
-
getSourceCode
public List<String> getSourceCode()
- Specified by:
getSourceCode
in interfaceStatement
-
setSourceCode
public void setSourceCode(List<String> sourceCode)
- Specified by:
setSourceCode
in interfaceStatement
-
-