Class Analyser.IsSubclassOfGeneratedTypeVisitor
java.lang.Object
javax.lang.model.util.AbstractTypeVisitor6<Boolean,Void>
javax.lang.model.util.SimpleTypeVisitor6<Boolean,Void>
javax.lang.model.util.SimpleTypeVisitor7<Boolean,Void>
javax.lang.model.util.SimpleTypeVisitor8<Boolean,Void>
org.inferred.freebuilder.processor.Analyser.IsSubclassOfGeneratedTypeVisitor
- All Implemented Interfaces:
TypeVisitor<Boolean,Void>
- Enclosing class:
Analyser
private static final class Analyser.IsSubclassOfGeneratedTypeVisitor
extends SimpleTypeVisitor8<Boolean,Void>
Visitor that returns true if the visited type extends a generated
superclass in the
same package.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final QualifiedNameprivate final List<? extends TypeParameterElement> Fields inherited from class javax.lang.model.util.SimpleTypeVisitor6
DEFAULT_VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIsSubclassOfGeneratedTypeVisitor(QualifiedName superclass, List<? extends TypeParameterElement> typeParameters) -
Method Summary
Modifier and TypeMethodDescriptionvisitDeclared(DeclaredType t, Void p) However, with some setups (e.g.visitError(ErrorType t, Void p) Any reference to the as-yet-ungenerated builder should be an unresolved ERROR.Methods inherited from class javax.lang.model.util.SimpleTypeVisitor8
visitIntersectionMethods inherited from class javax.lang.model.util.SimpleTypeVisitor7
visitUnionMethods inherited from class javax.lang.model.util.SimpleTypeVisitor6
defaultAction, visitArray, visitExecutable, visitNoType, visitNull, visitPrimitive, visitTypeVariable, visitWildcardMethods inherited from class javax.lang.model.util.AbstractTypeVisitor6
visit, visit, visitUnknown
-
Field Details
-
superclass
-
typeParameters
-
-
Constructor Details
-
IsSubclassOfGeneratedTypeVisitor
private IsSubclassOfGeneratedTypeVisitor(QualifiedName superclass, List<? extends TypeParameterElement> typeParameters)
-
-
Method Details
-
visitError
Any reference to the as-yet-ungenerated builder should be an unresolved ERROR. Similarly for many copy-and-paste errors- Specified by:
visitErrorin interfaceTypeVisitor<Boolean,Void> - Overrides:
visitErrorin classSimpleTypeVisitor6<Boolean,Void>
-
visitDeclared
However, with some setups (e.g. Eclipse+blaze), the builder may have already been generated and provided via a jar, in which case the reference will be DECLARED and qualified. We still want to generate it.- Specified by:
visitDeclaredin interfaceTypeVisitor<Boolean,Void> - Overrides:
visitDeclaredin classSimpleTypeVisitor6<Boolean,Void>
-