public class BaseDescrBuilderImpl<P extends DescrBuilder<?,?>,T extends BaseDescr> extends Object implements DescrBuilder<P,T>
Modifier | Constructor and Description |
---|---|
protected |
BaseDescrBuilderImpl(P parent,
T descr) |
Modifier and Type | Method and Description |
---|---|
P |
end()
Returns the parent container of this descr builder.
|
DescrBuilder<P,T> |
endCharacter(int offset)
Sets the offset of the starting character of the
corresponding construction in the source file.
|
DescrBuilder<P,T> |
endLocation(int line,
int column)
Sets the end location of the corresponding construction
in the source file.
|
T |
getDescr()
Returns the descriptor generated by this builder.
|
DescrBuilder<P,T> |
startCharacter(int offset)
Sets the offset of the starting character of the
corresponding construction in the source file.
|
DescrBuilder<P,T> |
startLocation(int line,
int column)
Sets the start location of the corresponding construction
in the source file.
|
protected P extends DescrBuilder<?,?> parent
public DescrBuilder<P,T> startLocation(int line, int column)
DescrBuilder
startLocation
in interface DescrBuilder<P extends DescrBuilder<?,?>,T extends BaseDescr>
public DescrBuilder<P,T> endLocation(int line, int column)
DescrBuilder
endLocation
in interface DescrBuilder<P extends DescrBuilder<?,?>,T extends BaseDescr>
public DescrBuilder<P,T> startCharacter(int offset)
DescrBuilder
startCharacter
in interface DescrBuilder<P extends DescrBuilder<?,?>,T extends BaseDescr>
offset
- the offset of the first character of
this construction inside the source file, relative
to the start.public DescrBuilder<P,T> endCharacter(int offset)
DescrBuilder
endCharacter
in interface DescrBuilder<P extends DescrBuilder<?,?>,T extends BaseDescr>
offset
- the offset of the first character of
this construction inside the source file, relative
to the start.public T getDescr()
DescrBuilder
getDescr
in interface DescrBuilder<P extends DescrBuilder<?,?>,T extends BaseDescr>
public P end()
DescrBuilder
end
in interface DescrBuilder<P extends DescrBuilder<?,?>,T extends BaseDescr>
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.