1499 return allMatches; 1500 } else { 1501 String s_prime = s.replace(".", "\\."); 1502 1503 if (s_prime.endsWith("*")) { 1504 s_prime = s_prime.substring(0, s_prime.length() - 1) + ".+"; 1505 } 1506 1507 return Pattern.compile(s_prime); 1508 } 1509 } 1510 1511 /** 1512 * For internal use only. This method will be 1513 * removed without warning. 1514 */ 1515 public Context getContext() { 1516 return context; 1517 } 1518 1519 public String toString() { 1520 return "javac ProcessingEnvironment"; 1521 } 1522 1523 public static boolean isValidOptionName(String optionName) { 1524 for(String s : optionName.split("\\.", -1)) { 1525 if (!SourceVersion.isIdentifier(s)) 1526 return false; 1527 } 1528 return true; 1529 } 1530 } | 1499 return allMatches; 1500 } else { 1501 String s_prime = s.replace(".", "\\."); 1502 1503 if (s_prime.endsWith("*")) { 1504 s_prime = s_prime.substring(0, s_prime.length() - 1) + ".+"; 1505 } 1506 1507 return Pattern.compile(s_prime); 1508 } 1509 } 1510 1511 /** 1512 * For internal use only. This method will be 1513 * removed without warning. 1514 */ 1515 public Context getContext() { 1516 return context; 1517 } 1518 1519 /** 1520 * Internal use method to return the writer being used by the 1521 * processing environment. 1522 */ 1523 public PrintWriter getWriter() { 1524 return context.get(Log.outKey); 1525 } 1526 1527 public String toString() { 1528 return "javac ProcessingEnvironment"; 1529 } 1530 1531 public static boolean isValidOptionName(String optionName) { 1532 for(String s : optionName.split("\\.", -1)) { 1533 if (!SourceVersion.isIdentifier(s)) 1534 return false; 1535 } 1536 return true; 1537 } 1538 } |