Java Code Examples for proguard.classfile.VisitorAccepter#setVisitorInfo()
The following examples show how to use
proguard.classfile.VisitorAccepter#setVisitorInfo() .
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 File: ShortestUsageMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
protected void markAsUsed(VisitorAccepter visitorAccepter) { Object visitorInfo = visitorAccepter.getVisitorInfo(); ShortestUsageMark shortestUsageMark = visitorInfo != null && visitorInfo instanceof ShortestUsageMark && !((ShortestUsageMark)visitorInfo).isCertain() && !currentUsageMark.isShorter((ShortestUsageMark)visitorInfo) ? new ShortestUsageMark((ShortestUsageMark)visitorInfo, true): currentUsageMark; visitorAccepter.setVisitorInfo(shortestUsageMark); }
Example 2
Source File: MemberObfuscator.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
/** * Assigns a fixed new name to the given class member. * @param member the class member. * @param name the new name. */ static void setFixedNewMemberName(Member member, String name) { VisitorAccepter lastVisitorAccepter = MethodLinker.lastVisitorAccepter(member); if (!(lastVisitorAccepter instanceof LibraryMember) && !(lastVisitorAccepter instanceof MyFixedName)) { lastVisitorAccepter.setVisitorInfo(new MyFixedName(name)); } else { lastVisitorAccepter.setVisitorInfo(name); } }
Example 3
Source File: UsageMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Marks the given visitor accepter as being used. */ protected void markAsUsed(VisitorAccepter visitorAccepter) { visitorAccepter.setVisitorInfo(USED); }
Example 4
Source File: UsageMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Marks the given visitor accepter as possibly being used. */ protected void markAsPossiblyUsed(VisitorAccepter visitorAccepter) { visitorAccepter.setVisitorInfo(POSSIBLY_USED); }
Example 5
Source File: UsageMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Clears any usage marks from the given visitor accepter. */ protected void markAsUnused(VisitorAccepter visitorAccepter) { visitorAccepter.setVisitorInfo(null); }
Example 6
Source File: ShortestUsageMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
protected void markAsPossiblyUsed(VisitorAccepter visitorAccepter) { visitorAccepter.setVisitorInfo(new ShortestUsageMark(currentUsageMark, false)); }
Example 7
Source File: ClassCleaner.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
private void clean(VisitorAccepter visitorAccepter) { visitorAccepter.setVisitorInfo(null); }
Example 8
Source File: KeepMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
private static void markAsKept(VisitorAccepter visitorAccepter) { visitorAccepter.setVisitorInfo(KEPT); }
Example 9
Source File: Utf8UsageMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Marks the given VisitorAccepter as being used. * In this context, the VisitorAccepter will be a Utf8Constant object. */ private static void markAsUsed(VisitorAccepter visitorAccepter) { visitorAccepter.setVisitorInfo(USED); }
Example 10
Source File: NameAndTypeUsageMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Marks the given VisitorAccepter as being used. * In this context, the VisitorAccepter will be a NameAndTypeConstant object. */ private static void markAsUsed(VisitorAccepter visitorAccepter) { visitorAccepter.setVisitorInfo(USED); }
Example 11
Source File: AttributeUsageMarker.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
/** * Marks the given VisitorAccepter as being used (or useful). * In this context, the VisitorAccepter will be an Attribute object. */ private static void markAsUsed(VisitorAccepter visitorAccepter) { visitorAccepter.setVisitorInfo(USED); }