Java Code Examples for org.jf.dexlib2.util.SyntheticAccessorResolver#METHOD
The following examples show how to use
org.jf.dexlib2.util.SyntheticAccessorResolver#METHOD .
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: SyntheticAccessCommentMethodItem.java From ZjDroid with Apache License 2.0 | 4 votes |
public boolean writeTo(IndentingWriter writer) throws IOException { writer.write("# "); switch (accessedMember.accessedMemberType) { case SyntheticAccessorResolver.METHOD: writer.write("invokes: "); break; case SyntheticAccessorResolver.GETTER: writer.write("getter for: "); break; case SyntheticAccessorResolver.SETTER: writer.write("setter for: "); break; case SyntheticAccessorResolver.PREFIX_INCREMENT: writer.write("++operator for: "); break; case SyntheticAccessorResolver.POSTFIX_INCREMENT: writer.write("operator++ for: "); break; case SyntheticAccessorResolver.PREFIX_DECREMENT: writer.write("--operator for: "); break; case SyntheticAccessorResolver.POSTFIX_DECREMENT: writer.write("operator-- for: "); break; case SyntheticAccessorResolver.ADD_ASSIGNMENT: writer.write("+= operator for: "); break; case SyntheticAccessorResolver.SUB_ASSIGNMENT: writer.write("-= operator for: "); break; case SyntheticAccessorResolver.MUL_ASSIGNMENT: writer.write("*= operator for: "); break; case SyntheticAccessorResolver.DIV_ASSIGNMENT: writer.write("/= operator for: "); break; case SyntheticAccessorResolver.REM_ASSIGNMENT: writer.write("%= operator for: "); break; case SyntheticAccessorResolver.AND_ASSIGNMENT: writer.write("&= operator for: "); break; case SyntheticAccessorResolver.OR_ASSIGNMENT: writer.write("|= operator for: "); break; case SyntheticAccessorResolver.XOR_ASSIGNMENT: writer.write("^= operator for: "); break; case SyntheticAccessorResolver.SHL_ASSIGNMENT: writer.write("<<= operator for: "); break; case SyntheticAccessorResolver.SHR_ASSIGNMENT: writer.write(">>= operator for: "); break; case SyntheticAccessorResolver.USHR_ASSIGNMENT: writer.write(">>>= operator for: "); break; default: throw new ExceptionWithContext("Unknown access type: %d", accessedMember.accessedMemberType); } int referenceType; if (accessedMember.accessedMemberType == SyntheticAccessorResolver.METHOD) { referenceType = ReferenceType.METHOD; } else { referenceType = ReferenceType.FIELD; } ReferenceFormatter.writeReference(writer, referenceType, accessedMember.accessedMember); return true; }
Example 2
Source File: SyntheticAccessCommentMethodItem.java From atlas with Apache License 2.0 | 4 votes |
public boolean writeTo(IndentingWriter writer) throws IOException { writer.write("# "); switch (accessedMember.accessedMemberType) { case SyntheticAccessorResolver.METHOD: writer.write("invokes: "); break; case SyntheticAccessorResolver.GETTER: writer.write("getter for: "); break; case SyntheticAccessorResolver.SETTER: writer.write("setter for: "); break; case SyntheticAccessorResolver.PREFIX_INCREMENT: writer.write("++operator for: "); break; case SyntheticAccessorResolver.POSTFIX_INCREMENT: writer.write("operator++ for: "); break; case SyntheticAccessorResolver.PREFIX_DECREMENT: writer.write("--operator for: "); break; case SyntheticAccessorResolver.POSTFIX_DECREMENT: writer.write("operator-- for: "); break; case SyntheticAccessorResolver.ADD_ASSIGNMENT: writer.write("+= operator for: "); break; case SyntheticAccessorResolver.SUB_ASSIGNMENT: writer.write("-= operator for: "); break; case SyntheticAccessorResolver.MUL_ASSIGNMENT: writer.write("*= operator for: "); break; case SyntheticAccessorResolver.DIV_ASSIGNMENT: writer.write("/= operator for: "); break; case SyntheticAccessorResolver.REM_ASSIGNMENT: writer.write("%= operator for: "); break; case SyntheticAccessorResolver.AND_ASSIGNMENT: writer.write("&= operator for: "); break; case SyntheticAccessorResolver.OR_ASSIGNMENT: writer.write("|= operator for: "); break; case SyntheticAccessorResolver.XOR_ASSIGNMENT: writer.write("^= operator for: "); break; case SyntheticAccessorResolver.SHL_ASSIGNMENT: writer.write("<<= operator for: "); break; case SyntheticAccessorResolver.SHR_ASSIGNMENT: writer.write(">>= operator for: "); break; case SyntheticAccessorResolver.USHR_ASSIGNMENT: writer.write(">>>= operator for: "); break; default: throw new ExceptionWithContext("Unknown access type: %d", accessedMember.accessedMemberType); } int referenceType; if (accessedMember.accessedMemberType == SyntheticAccessorResolver.METHOD) { referenceType = ReferenceType.METHOD; } else { referenceType = ReferenceType.FIELD; } ReferenceFormatter.writeReference(writer, referenceType, accessedMember.accessedMember); return true; }
Example 3
Source File: SyntheticAccessCommentMethodItem.java From zjdroid with Apache License 2.0 | 4 votes |
public boolean writeTo(IndentingWriter writer) throws IOException { writer.write("# "); switch (accessedMember.accessedMemberType) { case SyntheticAccessorResolver.METHOD: writer.write("invokes: "); break; case SyntheticAccessorResolver.GETTER: writer.write("getter for: "); break; case SyntheticAccessorResolver.SETTER: writer.write("setter for: "); break; case SyntheticAccessorResolver.PREFIX_INCREMENT: writer.write("++operator for: "); break; case SyntheticAccessorResolver.POSTFIX_INCREMENT: writer.write("operator++ for: "); break; case SyntheticAccessorResolver.PREFIX_DECREMENT: writer.write("--operator for: "); break; case SyntheticAccessorResolver.POSTFIX_DECREMENT: writer.write("operator-- for: "); break; case SyntheticAccessorResolver.ADD_ASSIGNMENT: writer.write("+= operator for: "); break; case SyntheticAccessorResolver.SUB_ASSIGNMENT: writer.write("-= operator for: "); break; case SyntheticAccessorResolver.MUL_ASSIGNMENT: writer.write("*= operator for: "); break; case SyntheticAccessorResolver.DIV_ASSIGNMENT: writer.write("/= operator for: "); break; case SyntheticAccessorResolver.REM_ASSIGNMENT: writer.write("%= operator for: "); break; case SyntheticAccessorResolver.AND_ASSIGNMENT: writer.write("&= operator for: "); break; case SyntheticAccessorResolver.OR_ASSIGNMENT: writer.write("|= operator for: "); break; case SyntheticAccessorResolver.XOR_ASSIGNMENT: writer.write("^= operator for: "); break; case SyntheticAccessorResolver.SHL_ASSIGNMENT: writer.write("<<= operator for: "); break; case SyntheticAccessorResolver.SHR_ASSIGNMENT: writer.write(">>= operator for: "); break; case SyntheticAccessorResolver.USHR_ASSIGNMENT: writer.write(">>>= operator for: "); break; default: throw new ExceptionWithContext("Unknown access type: %d", accessedMember.accessedMemberType); } int referenceType; if (accessedMember.accessedMemberType == SyntheticAccessorResolver.METHOD) { referenceType = ReferenceType.METHOD; } else { referenceType = ReferenceType.FIELD; } ReferenceFormatter.writeReference(writer, referenceType, accessedMember.accessedMember); return true; }
Example 4
Source File: SyntheticAccessCommentMethodItem.java From HeyGirl with Apache License 2.0 | 4 votes |
public boolean writeTo(IndentingWriter writer) throws IOException { writer.write("# "); switch (accessedMember.accessedMemberType) { case SyntheticAccessorResolver.METHOD: writer.write("invokes: "); break; case SyntheticAccessorResolver.GETTER: writer.write("getter for: "); break; case SyntheticAccessorResolver.SETTER: writer.write("setter for: "); break; case SyntheticAccessorResolver.PREFIX_INCREMENT: writer.write("++operator for: "); break; case SyntheticAccessorResolver.POSTFIX_INCREMENT: writer.write("operator++ for: "); break; case SyntheticAccessorResolver.PREFIX_DECREMENT: writer.write("--operator for: "); break; case SyntheticAccessorResolver.POSTFIX_DECREMENT: writer.write("operator-- for: "); break; case SyntheticAccessorResolver.ADD_ASSIGNMENT: writer.write("+= operator for: "); break; case SyntheticAccessorResolver.SUB_ASSIGNMENT: writer.write("-= operator for: "); break; case SyntheticAccessorResolver.MUL_ASSIGNMENT: writer.write("*= operator for: "); break; case SyntheticAccessorResolver.DIV_ASSIGNMENT: writer.write("/= operator for: "); break; case SyntheticAccessorResolver.REM_ASSIGNMENT: writer.write("%= operator for: "); break; case SyntheticAccessorResolver.AND_ASSIGNMENT: writer.write("&= operator for: "); break; case SyntheticAccessorResolver.OR_ASSIGNMENT: writer.write("|= operator for: "); break; case SyntheticAccessorResolver.XOR_ASSIGNMENT: writer.write("^= operator for: "); break; case SyntheticAccessorResolver.SHL_ASSIGNMENT: writer.write("<<= operator for: "); break; case SyntheticAccessorResolver.SHR_ASSIGNMENT: writer.write(">>= operator for: "); break; case SyntheticAccessorResolver.USHR_ASSIGNMENT: writer.write(">>>= operator for: "); break; default: throw new ExceptionWithContext("Unknown access type: %d", accessedMember.accessedMemberType); } int referenceType; if (accessedMember.accessedMemberType == SyntheticAccessorResolver.METHOD) { referenceType = ReferenceType.METHOD; } else { referenceType = ReferenceType.FIELD; } ReferenceFormatter.writeReference(writer, referenceType, accessedMember.accessedMember); return true; }
Example 5
Source File: SyntheticAccessCommentMethodItem.java From ZjDroid with Apache License 2.0 | 4 votes |
public boolean writeTo(IndentingWriter writer) throws IOException { writer.write("# "); switch (accessedMember.accessedMemberType) { case SyntheticAccessorResolver.METHOD: writer.write("invokes: "); break; case SyntheticAccessorResolver.GETTER: writer.write("getter for: "); break; case SyntheticAccessorResolver.SETTER: writer.write("setter for: "); break; case SyntheticAccessorResolver.PREFIX_INCREMENT: writer.write("++operator for: "); break; case SyntheticAccessorResolver.POSTFIX_INCREMENT: writer.write("operator++ for: "); break; case SyntheticAccessorResolver.PREFIX_DECREMENT: writer.write("--operator for: "); break; case SyntheticAccessorResolver.POSTFIX_DECREMENT: writer.write("operator-- for: "); break; case SyntheticAccessorResolver.ADD_ASSIGNMENT: writer.write("+= operator for: "); break; case SyntheticAccessorResolver.SUB_ASSIGNMENT: writer.write("-= operator for: "); break; case SyntheticAccessorResolver.MUL_ASSIGNMENT: writer.write("*= operator for: "); break; case SyntheticAccessorResolver.DIV_ASSIGNMENT: writer.write("/= operator for: "); break; case SyntheticAccessorResolver.REM_ASSIGNMENT: writer.write("%= operator for: "); break; case SyntheticAccessorResolver.AND_ASSIGNMENT: writer.write("&= operator for: "); break; case SyntheticAccessorResolver.OR_ASSIGNMENT: writer.write("|= operator for: "); break; case SyntheticAccessorResolver.XOR_ASSIGNMENT: writer.write("^= operator for: "); break; case SyntheticAccessorResolver.SHL_ASSIGNMENT: writer.write("<<= operator for: "); break; case SyntheticAccessorResolver.SHR_ASSIGNMENT: writer.write(">>= operator for: "); break; case SyntheticAccessorResolver.USHR_ASSIGNMENT: writer.write(">>>= operator for: "); break; default: throw new ExceptionWithContext("Unknown access type: %d", accessedMember.accessedMemberType); } int referenceType; if (accessedMember.accessedMemberType == SyntheticAccessorResolver.METHOD) { referenceType = ReferenceType.METHOD; } else { referenceType = ReferenceType.FIELD; } ReferenceFormatter.writeReference(writer, referenceType, accessedMember.accessedMember); return true; }