Package net.diversionmc.parser.pattern
Class Sentence
java.lang.Object
net.diversionmc.parser.util.Pointable
net.diversionmc.parser.pattern.Sentence
public abstract class Sentence extends Pointable
Sentence is a real data structure,which can be directly used
by an application and no longer belong to the parser
(but Sentence knows where in the file it was defined).
-
Constructor Summary
Constructors Constructor Description Sentence(FilePointer ptr)Construct a sentence at a position. -
Method Summary
Modifier and Type Method Description booleanisStatement()Useful built-in operation to check whether a given sentence represents an action that does not return value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Sentence
Construct a sentence at a position.- Parameters:
ptr- Creation position.
-
-
Method Details
-
isStatement
public boolean isStatement()Useful built-in operation to check whether a given sentence represents an action that does not return value.- Returns:
- False by default, true if this sentence represents a non-value-returning (void) action.
-