r
This commit is contained in:
@@ -138,7 +138,8 @@ public class ConstantResolver {
|
|||||||
MethodDeclaration md = context.findMethodDeclaration(td, mi.getName().getIdentifier(), true);
|
MethodDeclaration md = context.findMethodDeclaration(td, mi.getName().getIdentifier(), true);
|
||||||
if (md != null) {
|
if (md != null) {
|
||||||
String evaluated = evaluateMethodOutput(mi, md, context, visited);
|
String evaluated = evaluateMethodOutput(mi, md, context, visited);
|
||||||
if (evaluated != null) return evaluated;
|
System.out.println("EVALUATED " + mi.getName().getIdentifier() + " -> " + evaluated);
|
||||||
|
if (evaluated != null && !evaluated.equals("null")) return evaluated;
|
||||||
|
|
||||||
if (md.getReturnType2() != null) {
|
if (md.getReturnType2() != null) {
|
||||||
java.util.List<String> values = context.getEnumValues(md.getReturnType2().toString());
|
java.util.List<String> values = context.getEnumValues(md.getReturnType2().toString());
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ public class GenericEventDetector {
|
|||||||
} else {
|
} else {
|
||||||
eventValue = context.resolveExpression(eventExpr);
|
eventValue = context.resolveExpression(eventExpr);
|
||||||
}
|
}
|
||||||
|
System.out.println("DETECTED EVENT EXPR: " + eventExpr + " -> " + eventValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
MethodDeclaration method = findEnclosingMethod(node);
|
MethodDeclaration method = findEnclosingMethod(node);
|
||||||
|
|||||||
Reference in New Issue
Block a user