public class ModelFactoryImpl extends Object implements ModelFactory, TypeVisitor<TypeModel<?>,Element>
| Constructor and Description |
|---|
ModelFactoryImpl(Elements elements,
Types types) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmethodpublic VarModel parameter(TypeModel model, String parameterName)
parameter in interface ModelFactorypublic InterfaceModel interfaceModel(String packageName, String className)
interfaceModel in interface ModelFactorypublic ClassModel classModel(String packageName, String className)
classModel in interface ModelFactorypublic MethodModel method(Collection<Modifier> modifiers, String method, List<VarModel> parameters)
method in interface ModelFactorypublic MethodModel method(String method, List<VarModel> parameters)
method in interface ModelFactorypublic StatementModel statementModel(VarModel target, MethodModel method)
statementModel in interface ModelFactorypublic TypeModel<?> type(Element element)
type in interface ModelFactorypublic TypeModel<?> type(TypeMirror typeMirror)
type in interface ModelFactorypublic VarModel parameter(VariableElement model)
parameter in interface ModelFactorypublic MethodModel method(ExecutableElement method)
method in interface ModelFactorypublic MethodModel constructor(TypeModel<?> type, VarModel... parameters)
constructor in interface ModelFactorypublic VarModel constant(String name)
constant in interface ModelFactorypublic MethodModel defaultMethod(String name, List<VarModel> parameters)
defaultMethod in interface ModelFactorypublic MethodModel staticMethod(String name, List<VarModel> parameters)
staticMethod in interface ModelFactorypublic TypeModel<?> visit(TypeMirror t, Element typeElement)
visit in interface TypeVisitor<TypeModel<?>,Element>public TypeModel<?> visit(TypeMirror t)
visit in interface TypeVisitor<TypeModel<?>,Element>public TypeModel<?> visitPrimitive(PrimitiveType t, Element element)
visitPrimitive in interface TypeVisitor<TypeModel<?>,Element>public TypeModel<?> visitNull(NullType t, Element typeElement)
visitNull in interface TypeVisitor<TypeModel<?>,Element>public TypeModel<?> visitArray(ArrayType t, Element element)
visitArray in interface TypeVisitor<TypeModel<?>,Element>public TypeModel<?> visitDeclared(DeclaredType t, Element element)
visitDeclared in interface TypeVisitor<TypeModel<?>,Element>public TypeModel<?> visitError(ErrorType t, Element typeElement)
visitError in interface TypeVisitor<TypeModel<?>,Element>public TypeModel<?> visitTypeVariable(TypeVariable t, Element typeElement)
visitTypeVariable in interface TypeVisitor<TypeModel<?>,Element>public TypeModel<?> visitWildcard(WildcardType t, Element typeElement)
visitWildcard in interface TypeVisitor<TypeModel<?>,Element>public TypeModel<?> visitExecutable(ExecutableType t, Element typeElement)
visitExecutable in interface TypeVisitor<TypeModel<?>,Element>public TypeModel<?> visitNoType(NoType t, Element typeElement)
visitNoType in interface TypeVisitor<TypeModel<?>,Element>public TypeModel visitUnknown(TypeMirror t, Element typeElement)
visitUnknown in interface TypeVisitor<TypeModel<?>,Element>public TypeModel visitUnion(UnionType t, Element typeElement)
visitUnion in interface TypeVisitor<TypeModel<?>,Element>public TypeModel visitIntersection(IntersectionType t, Element typeElement)
visitIntersection in interface TypeVisitor<TypeModel<?>,Element>Copyright © 2020. All rights reserved.