Package net.diversionmc.parser.pattern
Class Sentence
java.lang.Object
net.diversionmc.parser.util.Pointable
net.diversionmc.parser.pattern.Sentence
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanUseful built-in operation to check whether a given sentence represents an action that does not return value.
-
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.
-