|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.umlv.tatoo.runtime.tools.DataViewer<B,D>
B - type of the buffer.D - type of data.public abstract class DataViewer<B,D>
Acts as a projection. Allow to get the buffer or a view of the buffer in the parser processor.
| Constructor Summary | |
|---|---|
DataViewer()
|
|
| Method Summary | ||
|---|---|---|
static
|
getIdentityDataViewer()
Returns the identity projection. |
|
static
|
getTokenBufferViewer()
Returns the TokenBuffer.view() projection. |
|
abstract D |
view(B buffer)
Defines the projection. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataViewer()
| Method Detail |
|---|
public abstract D view(B buffer)
buffer - the buffer
public static <B> DataViewer<B,B> getIdentityDataViewer()
B - type of the buffer.
public static <D> DataViewer<TokenBuffer<D>,D> getTokenBufferViewer()
TokenBuffer.view() projection.
The result of a call to will TokenBuffer.view() on the buffer
will be sent to the parser processor.
D - type of view's items.
TokenBuffer.view() projection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||