lombok.ast
Class Position
java.lang.Object
lombok.ast.Position
public final class Position
- extends Object
The position information which lets you find the raw characters that represent this node in a source file.
For generated nodes, generatedBy
is set to non-null
and the start
and end
refer to the places where the node would have appeared if it wasn't generated.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNPLACED
public static Position UNPLACED
Position
public Position(int start,
int end)
Position
public Position(int start,
int end,
Node generatedBy)
size
public int size()
isUnplaced
public boolean isUnplaced()
withGeneratedBy
public Position withGeneratedBy(Node generatedBy)
withoutGeneratedBy
public Position withoutGeneratedBy()
withEnd
public Position withEnd(int position)
withStart
public Position withStart(int position)
Copyright © 2010-2011 The Project Lombok Authors, licensed under the MIT licence.