public ResolvedFieldDeclaration replaceType(ResolvedType fieldType) { return new ReflectionFieldDeclaration(field, typeSolver, fieldType); }
public ResolvedFieldDeclaration replaceType(ResolvedType fieldType) { return new ReflectionFieldDeclaration(field, typeSolver, fieldType); }
public ResolvedFieldDeclaration replaceType(ResolvedType fieldType) { return new ReflectionFieldDeclaration(field, typeSolver, fieldType); }
@Deprecated public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { for (Field field : clazz.getFields()) { if (field.getName().equals(name)) { return SymbolReference.solved(new ReflectionFieldDeclaration(field, typeSolver)); } } return SymbolReference.unsolved(ResolvedValueDeclaration.class); }
@Deprecated public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { for (Field field : clazz.getFields()) { if (field.getName().equals(name)) { return SymbolReference.solved(new ReflectionFieldDeclaration(field, typeSolver)); } } return SymbolReference.unsolved(ResolvedValueDeclaration.class); }
@Deprecated public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { for (Field field : clazz.getFields()) { if (field.getName().equals(name)) { return SymbolReference.solved(new ReflectionFieldDeclaration(field, typeSolver)); } } return SymbolReference.unsolved(ResolvedValueDeclaration.class); }
@Deprecated public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { for (Field field : clazz.getFields()) { if (field.getName().equals(name)) { return SymbolReference.solved(new ReflectionFieldDeclaration(field, typeSolver)); } } return SymbolReference.unsolved(ResolvedValueDeclaration.class); }
@Deprecated public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { for (Field field : clazz.getFields()) { if (field.getName().equals(name)) { return SymbolReference.solved(new ReflectionFieldDeclaration(field, typeSolver)); } } return SymbolReference.unsolved(ResolvedValueDeclaration.class); }
@Deprecated public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, TypeSolver typeSolver) { for (Field field : clazz.getFields()) { if (field.getName().equals(name)) { return SymbolReference.solved(new ReflectionFieldDeclaration(field, typeSolver)); } } return SymbolReference.unsolved(ResolvedValueDeclaration.class); }
public List<ResolvedFieldDeclaration> getAllFields() { ArrayList<ResolvedFieldDeclaration> fields = new ArrayList<>(); for (Field field : clazz.getDeclaredFields()) { fields.add(new ReflectionFieldDeclaration(field, typeSolver)); } for (ResolvedReferenceType ancestor : typeDeclaration.getAllAncestors()) { fields.addAll(ancestor.getTypeDeclaration().getAllFields()); } return fields; }
public List<ResolvedFieldDeclaration> getAllFields() { ArrayList<ResolvedFieldDeclaration> fields = new ArrayList<>(); for (Field field : clazz.getDeclaredFields()) { fields.add(new ReflectionFieldDeclaration(field, typeSolver)); } for (ResolvedReferenceType ancestor : typeDeclaration.getAllAncestors()) { fields.addAll(ancestor.getTypeDeclaration().getAllFields()); } return fields; }
public List<ResolvedFieldDeclaration> getAllFields() { ArrayList<ResolvedFieldDeclaration> fields = new ArrayList<>(); for (Field field : clazz.getDeclaredFields()) { fields.add(new ReflectionFieldDeclaration(field, typeSolver)); } for (ResolvedReferenceType ancestor : typeDeclaration.getAllAncestors()) { fields.addAll(ancestor.getTypeDeclaration().getAllFields()); } return fields; }
public ResolvedFieldDeclaration getField(String name) { for (Field field : clazz.getDeclaredFields()) { if (field.getName().equals(name)) { return new ReflectionFieldDeclaration(field, typeSolver); } } for (ResolvedReferenceType ancestor : typeDeclaration.getAllAncestors()) { if (ancestor.getTypeDeclaration().hasField(name)) { ReflectionFieldDeclaration reflectionFieldDeclaration = (ReflectionFieldDeclaration) ancestor.getTypeDeclaration().getField(name); return reflectionFieldDeclaration.replaceType(ancestor.getFieldType(name).get()); } } throw new UnsolvedSymbolException(name, "Field in " + this); }
public ResolvedFieldDeclaration getField(String name) { for (Field field : clazz.getDeclaredFields()) { if (field.getName().equals(name)) { return new ReflectionFieldDeclaration(field, typeSolver); } } for (ResolvedReferenceType ancestor : typeDeclaration.getAllAncestors()) { if (ancestor.getTypeDeclaration().hasField(name)) { ReflectionFieldDeclaration reflectionFieldDeclaration = (ReflectionFieldDeclaration) ancestor.getTypeDeclaration().getField(name); return reflectionFieldDeclaration.replaceType(ancestor.getFieldType(name).get()); } } throw new UnsolvedSymbolException(name, "Field in " + this); }
public ResolvedFieldDeclaration getField(String name) { for (Field field : clazz.getDeclaredFields()) { if (field.getName().equals(name)) { return new ReflectionFieldDeclaration(field, typeSolver); } } for (ResolvedReferenceType ancestor : typeDeclaration.getAllAncestors()) { if (ancestor.getTypeDeclaration().hasField(name)) { ReflectionFieldDeclaration reflectionFieldDeclaration = (ReflectionFieldDeclaration) ancestor.getTypeDeclaration().getField(name); return reflectionFieldDeclaration.replaceType(ancestor.getFieldType(name).get()); } } throw new UnsolvedSymbolException(name, "Field in " + this); }