public class TypeSimplifier extends javax.lang.model.util.SimpleTypeVisitor6<javax.lang.model.type.TypeMirror,State>
Rules:
-> boxed type (optional)void -> Void (optional)<T extends Foo> -> Foo? extends Foo -> FooFoo<complex type> -> Foo<simplified type>| Modifier and Type | Method and Description |
|---|---|
protected javax.lang.model.type.TypeMirror |
defaultAction(javax.lang.model.type.TypeMirror x,
State state) |
static javax.lang.model.type.TypeMirror |
simplify(javax.lang.model.type.TypeMirror toBox,
boolean boxPrimitives,
State state) |
javax.lang.model.type.TypeMirror |
visitDeclared(javax.lang.model.type.DeclaredType x,
State state) |
javax.lang.model.type.TypeMirror |
visitNoType(javax.lang.model.type.NoType x,
State state) |
javax.lang.model.type.TypeMirror |
visitPrimitive(javax.lang.model.type.PrimitiveType x,
State state) |
javax.lang.model.type.TypeMirror |
visitTypeVariable(javax.lang.model.type.TypeVariable x,
State state) |
javax.lang.model.type.TypeMirror |
visitWildcard(javax.lang.model.type.WildcardType x,
State state) |
visitArray, visitError, visitExecutable, visitNullpublic static javax.lang.model.type.TypeMirror simplify(javax.lang.model.type.TypeMirror toBox,
boolean boxPrimitives,
State state)
public javax.lang.model.type.TypeMirror visitDeclared(javax.lang.model.type.DeclaredType x,
State state)
public javax.lang.model.type.TypeMirror visitNoType(javax.lang.model.type.NoType x,
State state)
public javax.lang.model.type.TypeMirror visitPrimitive(javax.lang.model.type.PrimitiveType x,
State state)
public javax.lang.model.type.TypeMirror visitTypeVariable(javax.lang.model.type.TypeVariable x,
State state)
public javax.lang.model.type.TypeMirror visitWildcard(javax.lang.model.type.WildcardType x,
State state)