|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.lang.api.impl.BaseDescrBuilderImpl<P,T>
public class BaseDescrBuilderImpl<P extends DescrBuilder<?,?>,T extends BaseDescr>
A base class for all DescrBuilders
| Field Summary | |
|---|---|
protected T |
descr
|
protected P |
parent
|
| Constructor Summary | |
|---|---|
protected |
BaseDescrBuilderImpl(P parent,
T descr)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected T extends BaseDescr descr
protected P extends DescrBuilder<?,?> parent
| Constructor Detail |
|---|
protected BaseDescrBuilderImpl(P parent,
T descr)
| Method Detail |
|---|
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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||