@SuppressWarnings("unchecked") private boolean tryAsEnum(Node val, Class<?> expectedType, List<Object> returnValues) { if (!expectedType.isEnum()) return false; returnValues.add(this.resolver.resolveEnum(expectedType.asSubclass(Enum.class), val)); return true; }
String name = stripGenerics(typeReference.getTypeName()); wanted = stripGenerics(wanted); ImportList imports = getImportList(typeReference); if (c instanceof TypeDeclaration && namesMatch(name, ((TypeDeclaration) c).astName())) return false; if (stopAtSelf && c == prevN) break;
String packageName = null; if (value instanceof Select) { List<String> chain = unwrapSelectChain((Select) value); switch (chain.size()) { case 0:
returnValues.add(this.resolver.toAnnotationInstance(expectedType.asSubclass(java.lang.annotation.Annotation.class), (Annotation)val)); continue; } else {
String name = stripGenerics(typeReference.getTypeName()); wanted = stripGenerics(wanted); ImportList imports = getImportList(typeReference); if (c instanceof TypeDeclaration && namesMatch(name, ((TypeDeclaration) c).astName())) return false; if (stopAtSelf && c == prevN) break;
String packageName = null; if (value instanceof Select) { List<String> chain = unwrapSelectChain((Select) value); switch (chain.size()) { case 0:
returnValues.add(this.resolver.toAnnotationInstance(expectedType.asSubclass(java.lang.annotation.Annotation.class), (Annotation)val)); continue; } else {
String name = stripGenerics(typeReference.getTypeName()); wanted = stripGenerics(wanted); ImportList imports = getImportList(typeReference); if (c instanceof TypeDeclaration && namesMatch(name, ((TypeDeclaration) c).astName())) return false; if (stopAtSelf && c == prevN) break;
@SuppressWarnings("unchecked") private boolean tryAsEnum(Node val, Class<?> expectedType, List<Object> returnValues) { if (!expectedType.isEnum()) return false; returnValues.add(this.resolver.resolveEnum(expectedType.asSubclass(Enum.class), val)); return true; }
String packageName = null; if (value instanceof Select) { List<String> chain = unwrapSelectChain((Select) value); switch (chain.size()) { case 0:
returnValues.add(this.resolver.toAnnotationInstance(expectedType.asSubclass(java.lang.annotation.Annotation.class), (Annotation)val)); continue; } else {
@SuppressWarnings("unchecked") private boolean tryAsEnum(Node val, Class<?> expectedType, List<Object> returnValues) { if (!expectedType.isEnum()) return false; returnValues.add(this.resolver.resolveEnum(expectedType.asSubclass(Enum.class), val)); return true; }