public static class AutoBeanVisitor.ParameterizationVisitor
extends java.lang.Object
The order of traversal reflects the declared parameterization of the
property. For example, a Map<String, List<Foo>>
would be traversed
via the following sequence:
visitType(Map.class); visitParameter(); visitType(String.class); endVisitType(String.class); endVisitParameter(); visitParameter(); visitType(List.class); visitParameter(); visitType(Foo.class); endVisitType(Foo.class); endParameter(); endVisitType(List.class); endVisitParameter(); endVisitType(Map.class);
Constructor and Description |
---|
ParameterizationVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
endVisitParameter()
Called when finished with a type parameter.
|
void |
endVisitType(java.lang.Class<?> type)
Called when finished with a type.
|
boolean |
visitParameter()
Called when visiting a type parameter.
|
boolean |
visitType(java.lang.Class<?> type)
Called when visiting a possibly parameterized type.
|
public void endVisitParameter()
public void endVisitType(java.lang.Class<?> type)
type
- a Class objectpublic boolean visitParameter()
true
if the type parameter should be visitedpublic boolean visitType(java.lang.Class<?> type)
type
- a Class objecttrue
if the type should be visited