public static final class PExtent.Builder extends Object
Constructor and Description |
---|
Builder(String filename,
int startPos,
int startLine,
int startCol)
Starts building a parameterized extent from the given source position
|
Modifier and Type | Method and Description |
---|---|
PExtent.Builder |
addHole(int sourcePos,
String name,
int startLine,
int startCol)
Adds a new hole at source position
sourcePos and
linked with the parameter name |
PExtent |
build(int endPos)
Closes the extent at the given source position
endPos
and returns it. |
public Builder(String filename, int startPos, int startLine, int startCol)
filename
- startPos
- startLine
- startCol
- public PExtent.Builder addHole(int sourcePos, String name, int startLine, int startCol)
sourcePos
and
linked with the parameter name
sourcePos
- name
- startLine
- startCol
- public PExtent build(int endPos)
endPos
and returns it. This PExtent.Builder
instance must not be used
anymore after this method has been called.endPos
- endPos