예제 #1
0
 private boolean isParameterStringArray() {
   VariableTree variableTree = parameters.get(0);
   boolean result = false;
   if (variableTree.type().is(Tree.Kind.ARRAY_TYPE)) {
     ArrayTypeTree arrayTypeTree = (ArrayTypeTree) variableTree.type();
     result =
         arrayTypeTree.type().symbolType().isClass()
             && "String".equals(arrayTypeTree.type().symbolType().name());
   }
   return result;
 }
예제 #2
0
 private boolean hasObjectParameter() {
   return parameters.size() == 1 && parameters.get(0).type().symbolType().is("java.lang.Object");
 }