org.jquantlib.util
Interface PolymorphicVisitor
-
- All Known Implementing Classes:
- PricerSetter
public interface PolymorphicVisitorThis interface provides the functionality of obtaining a specificVisitorThis functionality is needed every time a class acts as a
Visitorof more than one data structure or when a class acting as aVisitablerequires a specific kind ofVisitor.A class which implements
PolymorphicVisitoris potentially able to provide multiple implementations ofVisitor.- See Also:
Visitor,Visitable,PolymorphicVisitable, The Visitor Design Pattern
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description <T> Visitor<T>visitor(java.lang.Class<? extends T> element)This method returns aVisitorresponsible for visiting a specific data structure
-
-
-
Method Detail
-
visitor
<T> Visitor<T> visitor(java.lang.Class<? extends T> element)
This method returns aVisitorresponsible for visiting a specific data structure- Type Parameters:
T- needed for wildcard capture trick which allows type inference at compile time. More information at More Fun with Wildcards- Parameters:
klass- specifies the data structure type- Returns:
- a Visitor responsible for visiting a certain data structure type
- See Also:
PolymorphicVisitable.accept(PolymorphicVisitor)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG