Class Pointable

java.lang.Object
net.diversionmc.parser.util.Pointable
Direct Known Subclasses:
ExpressionPiece, Sentence

public class Pointable
extends java.lang.Object
An object that has a file pointer associated with it.
  • Constructor Summary

    Constructors
    Constructor Description
    Pointable​(FilePointer ptr)
    Create a Pointable from a given file position.
  • Method Summary

    Modifier and Type Method Description
    FilePointer pointer()
    Position in a file where this object was created.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Pointable

      public Pointable​(FilePointer ptr)
      Create a Pointable from a given file position.
      Parameters:
      ptr - Creation position.
  • Method Details

    • pointer

      public FilePointer pointer()
      Position in a file where this object was created.
      Returns:
      Creation position.