Package compilation.analysis.syntax
Class SourceStatement
- java.lang.Object
-
- compilation.analysis.syntax.SourceStatement
-
-
Constructor Summary
Constructors Constructor Description SourceStatement(Statement statement, Token endToken)Constructs a SourceStatement object, initialised with a single Statement object and the EOF Token.SourceStatement(java.util.List<Statement> statements, Token endToken)Constructs a SourceStatement object, initialised with a List of every Statement object within the source code and the EOF Token.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface compilation.analysis.syntax.Statement
getChildren, getSpan, getStatementType
-
-
-
-
Constructor Detail
-
SourceStatement
public SourceStatement(java.util.List<Statement> statements, Token endToken)
Constructs a SourceStatement object, initialised with a List of every Statement object within the source code and the EOF Token.A SourceSpan containing the range of the source code is automatically generated, as well as a LinkedList of its children.
- Parameters:
statements- The List of Statements within the source codeendToken- The end of file Token
-
SourceStatement
public SourceStatement(Statement statement, Token endToken)
Constructs a SourceStatement object, initialised with a single Statement object and the EOF Token.A SourceSpan containing the range of the statement is automatically generated, as well as a LinkedList of its children.
- Parameters:
statement- The Statement objectendToken- The end of file Token
-
-