| Modifier and Type | Field and Description |
|---|---|
| private static String[] | |
| private static final char | |
| public static int | testingParseCounter
For testing purposes: bit clunky but does work |
| private static Hashtable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | appendConversion(InstructionList il, InstructionFactory fact, ResolvedType fromType, ResolvedType toType)
|
| public static Attribute | |
| public static String | |
| public static Instruction | copyInstruction(Instruction i)
Fix for Bugzilla #39479, #40109 patch contributed by Andy Clement Need to manually copy Select instructions - if we rely on the the 'fresh' object created by copy(), the InstructionHandle array 'targets' inside the Select object will not have been deep copied, so modifying targets in fresh will modify the original Select - not what we want ! |
| public static Instruction | |
| public static InstructionList | |
| public static InstructionList | |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | |
| public static Instruction | createInvoke(InstructionFactory fact, short
INVOKEINTERFACE, INVOKEVIRTUAL.. kind, Member member)Create an invoke instruction |
| public static Instruction | |
| public static Instruction | |
| public static void | deleteInstruction(InstructionHandle
the instruction handle to delete. ih, LazyMethodGen where to find ih's instruction list. enclosingMethod)delete an instruction handle and retarget all targeters of the deleted instruction to the next instruction. |
| public static void | deleteInstruction(InstructionHandle
the instruction handle to delete ih, InstructionHandle the instruction handle to retarget targeters of ih to. retargetTo, LazyMethodGen where to find ih's instruction list. enclosingMethod)delete an instruction handle and retarget all targeters of the deleted instruction to the provided target. |
| public static int | |
| public static List | |
| public static boolean | |
| public static boolean | isSuppressing(Member member, String lintkey)
Checks for suppression specified on the member or on the declaring type of that member |
| public static String[] | |
| public static JavaClass | |
| public static int | |
| public static BcelVar[] | pushAndReturnArrayOfVars(ResolvedType[] proceedParamTypes, InstructionList il, InstructionFactory fact, LazyMethodGen enclosingMethod)
|
| public static List | readAjAttributes(String classname, Attribute[] as, ISourceContext context, World w, AjAttribute.
|
| public static void | replaceInstruction(InstructionHandle
the instruction handle to replace. ih, InstructionList the branch instruction to replace ih with replacementInstructions, LazyMethodGen where to find ih's instruction list. enclosingMethod)replace an instruction handle with another instruction, in this case, a branch instruction. |
| public static void |
| argNames | back to summary |
|---|---|
| private static String[] argNames | |
| PACKAGE_INITIAL_CHAR | back to summary |
|---|---|
| private static final char PACKAGE_INITIAL_CHAR | |
| testingParseCounter | back to summary |
|---|---|
| public static int testingParseCounter For testing purposes: bit clunky but does work | |
| validBoxing | back to summary |
|---|---|
| private static Hashtable<String, String> validBoxing | |
| Utility | back to summary |
|---|---|
| public Utility() | |
| appendConversion | back to summary |
|---|---|
| public static void appendConversion(InstructionList il, InstructionFactory fact, ResolvedType fromType, ResolvedType toType) | |
| bcelAttribute | back to summary |
|---|---|
| public static Attribute bcelAttribute(AjAttribute a, ConstantPool pool) | |
| beautifyLocation | back to summary |
|---|---|
| public static String beautifyLocation(ISourceLocation isl) | |
| copyInstruction | back to summary |
|---|---|
| public static Instruction copyInstruction(Instruction i) Fix for Bugzilla #39479, #40109 patch contributed by Andy Clement Need to manually copy Select instructions - if we rely on the the 'fresh' object created by copy(), the InstructionHandle array 'targets' inside the Select object will not have been deep copied, so modifying targets in fresh will modify the original Select - not what we want ! (It is a bug in BCEL to do with cloning Select objects).
declare error:
call(* Instruction.copy()) && within(org.aspectj.weaver)
&& !withincode(* Utility.copyInstruction(Instruction)):
"use Utility.copyInstruction to work-around bug in Select.copy()";
| |
| createConstant | back to summary |
|---|---|
| public static Instruction createConstant(InstructionFactory fact, int value) | |
| createConversion | back to summary |
|---|---|
| public static InstructionList createConversion(InstructionFactory factory, Type fromType, Type toType) | |
| createConversion | back to summary |
|---|---|
| public static InstructionList createConversion(InstructionFactory fact, Type fromType, Type toType, boolean allowAutoboxing) | |
| createGet | back to summary |
|---|---|
| public static Instruction createGet(InstructionFactory fact, Member signature) | |
| createInstanceof | back to summary |
|---|---|
| public static Instruction createInstanceof(InstructionFactory fact, ReferenceType t) | |
| createInvoke | back to summary |
|---|---|
| public static Instruction createInvoke(InstructionFactory fact, BcelWorld world, Member signature) | |
| createInvoke | back to summary |
|---|---|
| public static Instruction createInvoke(InstructionFactory fact, LazyMethodGen m) | |
| createInvoke | back to summary |
|---|---|
| public static Instruction createInvoke(InstructionFactory fact, short kind, Member member) Create an invoke instruction
| |
| createSet | back to summary |
|---|---|
| public static Instruction createSet(InstructionFactory fact, Member signature) | |
| createSuperInvoke | back to summary |
|---|---|
| public static Instruction createSuperInvoke(InstructionFactory fact, BcelWorld world, Member signature) | |
| deleteInstruction | back to summary |
|---|---|
| public static void deleteInstruction(InstructionHandle ih, LazyMethodGen enclosingMethod) delete an instruction handle and retarget all targeters of the deleted instruction to the next instruction. Obviously, this should not be used to delete a control transfer instruction unless you know what you're doing.
| |
| deleteInstruction | back to summary |
|---|---|
| public static void deleteInstruction(InstructionHandle ih, InstructionHandle retargetTo, LazyMethodGen enclosingMethod) delete an instruction handle and retarget all targeters of the deleted instruction to the provided target.
| |
| getSourceLine | back to summary |
|---|---|
| public static int getSourceLine(InstructionHandle ih) returns -1 if no source line attribute | |
| getSuppressedWarnings | back to summary |
|---|---|
| public static List | |
| isConstantPushInstruction | back to summary |
|---|---|
| public static boolean isConstantPushInstruction(Instruction i) | |
| isSuppressing | back to summary |
|---|---|
| public static boolean isSuppressing(Member member, String lintkey) Checks for suppression specified on the member or on the declaring type of that member | |
| makeArgNames | back to summary |
|---|---|
| public static String[] makeArgNames(int n) | |
| makeJavaClass | back to summary |
|---|---|
| public static JavaClass makeJavaClass(String filename, byte[] bytes) | |
| makePublic | back to summary |
|---|---|
| public static int makePublic(int i) | |
| pushAndReturnArrayOfVars | back to summary |
|---|---|
| public static BcelVar[] pushAndReturnArrayOfVars(ResolvedType[] proceedParamTypes, InstructionList il, InstructionFactory fact, LazyMethodGen enclosingMethod) | |
| readAjAttributes | back to summary |
|---|---|
| public static List | |
| replaceInstruction | back to summary |
|---|---|
| public static void replaceInstruction(InstructionHandle ih, InstructionList replacementInstructions, LazyMethodGen enclosingMethod) replace an instruction handle with another instruction, in this case, a branch instruction.
| |
| setSourceLine | back to summary |
|---|---|
| public static void setSourceLine(InstructionHandle ih, int lineNumber) | |