Java Code Examples for proguard.util.StringMatcher
The following examples show how to use
proguard.util.StringMatcher. These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: java-n-IDE-for-Android Source File: DynamicClassReferenceInitializer.java License: Apache License 2.0 | 5 votes |
/** * Creates a new DynamicClassReferenceInitializer that optionally prints * warnings and notes, with optional class specifications for which never * to print notes. */ public DynamicClassReferenceInitializer(ClassPool programClassPool, ClassPool libraryClassPool, WarningPrinter missingNotePrinter, WarningPrinter dependencyWarningPrinter, WarningPrinter notePrinter, StringMatcher noteExceptionMatcher) { this.programClassPool = programClassPool; this.libraryClassPool = libraryClassPool; this.missingNotePrinter = missingNotePrinter; this.dependencyWarningPrinter = dependencyWarningPrinter; this.notePrinter = notePrinter; this.noteExceptionMatcher = noteExceptionMatcher; }
Example 2
Source Project: java-n-IDE-for-Android Source File: DynamicMemberReferenceInitializer.java License: Apache License 2.0 | 5 votes |
/** * Creates a new DynamicMemberReferenceInitializer. */ public DynamicMemberReferenceInitializer(ClassPool programClassPool, ClassPool libraryClassPool, WarningPrinter notePrinter, StringMatcher noteFieldExceptionMatcher, StringMatcher noteMethodExceptionMatcher) { this.programClassPool = programClassPool; this.libraryClassPool = libraryClassPool; this.notePrinter = notePrinter; this.noteFieldExceptionMatcher = noteFieldExceptionMatcher; this.noteMethodExceptionMatcher = noteMethodExceptionMatcher; }
Example 3
Source Project: java-n-IDE-for-Android Source File: Initializer.java License: Apache License 2.0 | 5 votes |
/** * Extracts a list of exceptions of classes for which not to print notes, * from the keep configuration. */ private StringMatcher createClassNoteExceptionMatcher(List noteExceptions) { if (noteExceptions != null) { List noteExceptionNames = new ArrayList(noteExceptions.size()); for (int index = 0; index < noteExceptions.size(); index++) { KeepClassSpecification keepClassSpecification = (KeepClassSpecification)noteExceptions.get(index); if (keepClassSpecification.markClasses) { // If the class itself is being kept, it's ok. String className = keepClassSpecification.className; if (className != null) { noteExceptionNames.add(className); } // If all of its extensions are being kept, it's ok too. String extendsClassName = keepClassSpecification.extendsClassName; if (extendsClassName != null) { noteExceptionNames.add(extendsClassName); } } } if (noteExceptionNames.size() > 0) { return new ListParser(new ClassNameParser()).parse(noteExceptionNames); } } return null; }
Example 4
Source Project: java-n-IDE-for-Android Source File: Initializer.java License: Apache License 2.0 | 5 votes |
/** * Extracts a list of exceptions of field or method names for which not to * print notes, from the keep configuration. */ private StringMatcher createClassMemberNoteExceptionMatcher(List noteExceptions, boolean isField) { if (noteExceptions != null) { List noteExceptionNames = new ArrayList(); for (int index = 0; index < noteExceptions.size(); index++) { KeepClassSpecification keepClassSpecification = (KeepClassSpecification)noteExceptions.get(index); List memberSpecifications = isField ? keepClassSpecification.fieldSpecifications : keepClassSpecification.methodSpecifications; if (memberSpecifications != null) { for (int index2 = 0; index2 < memberSpecifications.size(); index2++) { MemberSpecification memberSpecification = (MemberSpecification)memberSpecifications.get(index2); String memberName = memberSpecification.name; if (memberName != null) { noteExceptionNames.add(memberName); } } } } if (noteExceptionNames.size() > 0) { return new ListParser(new ClassNameParser()).parse(noteExceptionNames); } } return null; }
Example 5
Source Project: proguard Source File: DynamicClassReferenceInitializer.java License: GNU General Public License v2.0 | 5 votes |
/** * Creates a new DynamicClassReferenceInitializer that optionally prints * warnings and notes, with optional class specifications for which never * to print notes. */ public DynamicClassReferenceInitializer(ClassPool programClassPool, ClassPool libraryClassPool, WarningPrinter missingNotePrinter, WarningPrinter dependencyWarningPrinter, WarningPrinter notePrinter, StringMatcher noteExceptionMatcher) { this.programClassPool = programClassPool; this.libraryClassPool = libraryClassPool; this.missingNotePrinter = missingNotePrinter; this.dependencyWarningPrinter = dependencyWarningPrinter; this.notePrinter = notePrinter; this.noteExceptionMatcher = noteExceptionMatcher; }
Example 6
Source Project: proguard Source File: DynamicMemberReferenceInitializer.java License: GNU General Public License v2.0 | 5 votes |
/** * Creates a new DynamicMemberReferenceInitializer. */ public DynamicMemberReferenceInitializer(ClassPool programClassPool, ClassPool libraryClassPool, WarningPrinter notePrinter, StringMatcher noteFieldExceptionMatcher, StringMatcher noteMethodExceptionMatcher) { this.programClassPool = programClassPool; this.libraryClassPool = libraryClassPool; this.notePrinter = notePrinter; this.noteFieldExceptionMatcher = noteFieldExceptionMatcher; this.noteMethodExceptionMatcher = noteMethodExceptionMatcher; }
Example 7
Source Project: bazel Source File: DynamicClassReferenceInitializer.java License: Apache License 2.0 | 5 votes |
/** * Creates a new DynamicClassReferenceInitializer that optionally prints * warnings and notes, with optional class specifications for which never * to print notes. */ public DynamicClassReferenceInitializer(ClassPool programClassPool, ClassPool libraryClassPool, WarningPrinter missingNotePrinter, WarningPrinter dependencyWarningPrinter, WarningPrinter notePrinter, StringMatcher noteExceptionMatcher) { this.programClassPool = programClassPool; this.libraryClassPool = libraryClassPool; this.missingNotePrinter = missingNotePrinter; this.dependencyWarningPrinter = dependencyWarningPrinter; this.notePrinter = notePrinter; this.noteExceptionMatcher = noteExceptionMatcher; }
Example 8
Source Project: bazel Source File: DynamicMemberReferenceInitializer.java License: Apache License 2.0 | 5 votes |
/** * Creates a new DynamicMemberReferenceInitializer. */ public DynamicMemberReferenceInitializer(ClassPool programClassPool, ClassPool libraryClassPool, WarningPrinter notePrinter, StringMatcher noteFieldExceptionMatcher, StringMatcher noteMethodExceptionMatcher) { this.programClassPool = programClassPool; this.libraryClassPool = libraryClassPool; this.notePrinter = notePrinter; this.noteFieldExceptionMatcher = noteFieldExceptionMatcher; this.noteMethodExceptionMatcher = noteMethodExceptionMatcher; }
Example 9
Source Project: java-n-IDE-for-Android Source File: AttributeNameFilter.java License: Apache License 2.0 | 3 votes |
/** * Creates a new AttributeNameFilter. * @param stringMatcher the string matcher that will check the attribute * names. * @param attributeVisitor the <code>AttributeVisitor</code> to which * visits will be delegated. */ public AttributeNameFilter(StringMatcher stringMatcher, AttributeVisitor attributeVisitor) { this.stringMatcher = stringMatcher; this.attributeVisitor = attributeVisitor; }
Example 10
Source Project: java-n-IDE-for-Android Source File: MemberNameFilter.java License: Apache License 2.0 | 3 votes |
/** * Creates a new MemberNameFilter. * @param regularExpressionMatcher the regular expression against which * member names will be matched. * @param memberVisitor the <code>MemberVisitor</code> to which * visits will be delegated. */ public MemberNameFilter(StringMatcher regularExpressionMatcher, MemberVisitor memberVisitor) { this.regularExpressionMatcher = regularExpressionMatcher; this.memberVisitor = memberVisitor; }
Example 11
Source Project: java-n-IDE-for-Android Source File: ClassNameFilter.java License: Apache License 2.0 | 3 votes |
/** * Creates a new ClassNameFilter. * @param regularExpressionMatcher the regular expression against which * class names will be matched. * @param classVisitor the <code>ClassVisitor</code> to which * visits will be delegated. */ public ClassNameFilter(StringMatcher regularExpressionMatcher, ClassVisitor classVisitor) { this.regularExpressionMatcher = regularExpressionMatcher; this.classVisitor = classVisitor; }
Example 12
Source Project: java-n-IDE-for-Android Source File: MemberDescriptorFilter.java License: Apache License 2.0 | 3 votes |
/** * Creates a new MemberDescriptorFilter. * @param regularExpressionMatcher the regular expression against which * member descriptors will be matched. * @param memberVisitor the <code>MemberVisitor</code> to which * visits will be delegated. */ public MemberDescriptorFilter(StringMatcher regularExpressionMatcher, MemberVisitor memberVisitor) { this.regularExpressionMatcher = regularExpressionMatcher; this.memberVisitor = memberVisitor; }
Example 13
Source Project: java-n-IDE-for-Android Source File: DataEntryNameFilter.java License: Apache License 2.0 | 2 votes |
/** * Creates a new DataEntryNameFilter. * @param stringMatcher the string matcher that will be applied to the names * of the filtered data entries. */ public DataEntryNameFilter(StringMatcher stringMatcher) { this.stringMatcher = stringMatcher; }
Example 14
Source Project: proguard Source File: DataEntryNameFilter.java License: GNU General Public License v2.0 | 2 votes |
/** * Creates a new DataEntryNameFilter. * @param stringMatcher the string matcher that will be applied to the names * of the filtered data entries. */ public DataEntryNameFilter(StringMatcher stringMatcher) { this.stringMatcher = stringMatcher; }
Example 15
Source Project: bazel Source File: DataEntryNameFilter.java License: Apache License 2.0 | 2 votes |
/** * Creates a new DataEntryNameFilter. * @param stringMatcher the string matcher that will be applied to the names * of the filtered data entries. */ public DataEntryNameFilter(StringMatcher stringMatcher) { this.stringMatcher = stringMatcher; }