public static final class PExtent.Hole extends Object
PExtent.Hole
represents a special part of an extent
which is bound to some name
and can be instantiated later
on.
A hole is characterized by its offset
relative to
its extent's starting offset. It also
holds line and column
information so that it is possible to report problems on a specific
hole.
Modifier and Type | Field and Description |
---|---|
String |
name
The name to which this hole is bound, and through which
the hole can be filled
|
int |
offset
The offset of this hole in the enclosing extent
|
int |
startCol
The column where the hole starts, i.e. the offset
of the starting character from the beginning of the line
(0-based)
|
int |
startLine
The line where the hole starts (1-based)
|
Constructor and Description |
---|
Hole(int offset,
String name,
int startLine,
int startCol)
Returns a new hole from the given parameters
|
Modifier and Type | Method and Description |
---|---|
int |
endOffset() |
boolean |
equals(@Nullable Object o) |
int |
hashCode() |
int |
length() |
String |
toString() |
public final int offset
public final String name
public final int startLine
public final int startCol
public Hole(int offset, String name, int startLine, int startCol)
offset
- name
- startLine
- startCol
-