Package net.diversionmc.parser.util
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 FilePointerpointer()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
Create a Pointable from a given file position.- Parameters:
ptr- Creation position.
-
-
Method Details
-
pointer
Position in a file where this object was created.- Returns:
- Creation position.
-