Lombok.ast - v0.2

lombok.ast
Class Position

java.lang.Object
  extended by 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.


Field Summary
static Position UNPLACED
           
 
Constructor Summary
Position(int start, int end)
           
Position(int start, int end, Node generatedBy)
           
 
Method Summary
 boolean isUnplaced()
           
 int size()
           
 Position withEnd(int position)
           
 Position withGeneratedBy(Node generatedBy)
           
 Position withoutGeneratedBy()
           
 Position withStart(int position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNPLACED

public static Position UNPLACED
Constructor Detail

Position

public Position(int start,
                int end)

Position

public Position(int start,
                int end,
                Node generatedBy)
Method Detail

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)

Lombok.ast - v0.2

Copyright © 2010-2011 The Project Lombok Authors, licensed under the MIT licence.