|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.examples.xtext.base.basecs.util.AbstractBaseCSVisitor<R,C>
public abstract class AbstractBaseCSVisitor<R,C>
Field Summary | |
---|---|
protected C |
context
Context for the AST visitation. |
Constructor Summary | |
---|---|
protected |
AbstractBaseCSVisitor(C context)
Initializes me with an initial value for my result. |
Method Summary | ||
---|---|---|
|
getAdapter(java.lang.Class<A> adapter)
Returns an object which is an instance of the given class associated with this object. |
|
R |
safeVisit(VisitableCS v)
A null-safe visitation of the specified visitable. |
|
R |
visit(VisitableCS v)
Perform a visit to the specified visitable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NonNull protected final C context
Constructor Detail |
---|
protected AbstractBaseCSVisitor(@NonNull C context)
context
- my initial result valueMethod Detail |
---|
public <A> A getAdapter(@NonNull java.lang.Class<A> adapter)
BaseCSVisitor
null
if
no such object can be found.
getAdapter
in interface BaseCSVisitor<R>
adapter
- the adapter class to look up
null
if this object does not
have an adapter for the given class@Nullable public R safeVisit(@Nullable VisitableCS v)
v
- a visitable, or null
null
if the visitable is null
;
otherwise, the result of visiting it@Nullable public R visit(@NonNull VisitableCS v)
v
- a visitable, or null
null
if the visitable is null
;
otherwise, the result of visiting it
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |