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 Details

    • Sentence

      public Sentence(FilePointer ptr)
      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.