@Override public ResolvedType getType() { return ReflectionFactory.typeUsageFor(genericType, typeSolver); } }
public ReflectionFieldDeclaration(Field field, TypeSolver typeSolver) { this.field = field; this.typeSolver = typeSolver; this.type = calcType(); }
@Override public List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList) { // we do not attempt to perform any symbol solving when analyzing ancestors in the reflection model, so we can // simply ignore the boolean parameter here; an UnsolvedSymbolException cannot occur return reflectionClassAdapter.getAncestors(); }
@Override public ResolvedReferenceTypeDeclaration declaringType() { if (method.getDeclaringClass().isInterface()) { return new ReflectionInterfaceDeclaration(method.getDeclaringClass(), typeSolver); } if (method.getDeclaringClass().isEnum()) { return new ReflectionEnumDeclaration(method.getDeclaringClass(), typeSolver); } else { return new ReflectionClassDeclaration(method.getDeclaringClass(), typeSolver); } }
public ReflectionTypeParameter(TypeVariable typeVariable, boolean declaredOnClass, TypeSolver typeSolver) { GenericDeclaration genericDeclaration = typeVariable.getGenericDeclaration(); if (genericDeclaration instanceof Class) { container = ReflectionFactory.typeDeclarationFor((Class) genericDeclaration, typeSolver); } else if (genericDeclaration instanceof Method) { container = new ReflectionMethodDeclaration((Method) genericDeclaration, typeSolver); } else if (genericDeclaration instanceof Constructor) { container = new ReflectionConstructorDeclaration((Constructor) genericDeclaration, typeSolver); } this.typeVariable = typeVariable; this.typeSolver = typeSolver; }
@Override public String toString() { return "ReflectionClassDeclaration{" + "clazz=" + getId() + '}'; }
@Override public List<ResolvedConstructorDeclaration> getConstructors() { return reflectionClassAdapter.getConstructors(); } }
@Override public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> parameterTypes, boolean staticOnly) { return ReflectionMethodResolutionLogic.solveMethod(name, parameterTypes, staticOnly, typeSolver,this, clazz); }
@Override public ReferenceTypeImpl getSuperClass() { return reflectionClassAdapter.getSuperClass(); }
@Override public ResolvedReferenceTypeDeclaration declaringType() { if (method.getDeclaringClass().isInterface()) { return new ReflectionInterfaceDeclaration(method.getDeclaringClass(), typeSolver); } if (method.getDeclaringClass().isEnum()) { return new ReflectionEnumDeclaration(method.getDeclaringClass(), typeSolver); } else { return new ReflectionClassDeclaration(method.getDeclaringClass(), typeSolver); } }
public ReflectionTypeParameter(TypeVariable typeVariable, boolean declaredOnClass, TypeSolver typeSolver) { GenericDeclaration genericDeclaration = typeVariable.getGenericDeclaration(); if (genericDeclaration instanceof Class) { container = ReflectionFactory.typeDeclarationFor((Class) genericDeclaration, typeSolver); } else if (genericDeclaration instanceof Method) { container = new ReflectionMethodDeclaration((Method) genericDeclaration, typeSolver); } else if (genericDeclaration instanceof Constructor) { container = new ReflectionConstructorDeclaration((Constructor) genericDeclaration, typeSolver); } this.typeVariable = typeVariable; this.typeSolver = typeSolver; }
@Override public ResolvedType getType() { return ReflectionFactory.typeUsageFor(genericType, typeSolver); } }
public ReflectionFieldDeclaration(Field field, TypeSolver typeSolver) { this.field = field; this.typeSolver = typeSolver; this.type = calcType(); }
@Override public List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList) { // we do not attempt to perform any symbol solving when analyzing ancestors in the reflection model, so we can // simply ignore the boolean parameter here; an UnsolvedSymbolException cannot occur return reflectionClassAdapter.getAncestors(); }
@Override public String toString() { return "ReflectionClassDeclaration{" + "clazz=" + getId() + '}'; }
@Override public ResolvedReferenceTypeDeclaration declaringType() { if (method.getDeclaringClass().isInterface()) { return new ReflectionInterfaceDeclaration(method.getDeclaringClass(), typeSolver); } if (method.getDeclaringClass().isEnum()) { return new ReflectionEnumDeclaration(method.getDeclaringClass(), typeSolver); } else { return new ReflectionClassDeclaration(method.getDeclaringClass(), typeSolver); } }
public ReflectionTypeParameter(TypeVariable typeVariable, boolean declaredOnClass, TypeSolver typeSolver) { GenericDeclaration genericDeclaration = typeVariable.getGenericDeclaration(); if (genericDeclaration instanceof Class) { container = ReflectionFactory.typeDeclarationFor((Class) genericDeclaration, typeSolver); } else if (genericDeclaration instanceof Method) { container = new ReflectionMethodDeclaration((Method) genericDeclaration, typeSolver); } else if (genericDeclaration instanceof Constructor) { container = new ReflectionConstructorDeclaration((Constructor) genericDeclaration, typeSolver); } this.typeVariable = typeVariable; this.typeSolver = typeSolver; }
public ReflectionFieldDeclaration(Field field, TypeSolver typeSolver) { this.field = field; this.typeSolver = typeSolver; this.type = calcType(); }
@Override public List<ResolvedReferenceType> getAncestors(boolean acceptIncompleteList) { // we do not attempt to perform any symbol solving when analyzing ancestors in the reflection model, so we can // simply ignore the boolean parameter here; an UnsolvedSymbolException cannot occur return reflectionClassAdapter.getAncestors(); }
@Override public String toString() { return "ReflectionClassDeclaration{" + "clazz=" + getId() + '}'; }