Package org.aspectj.weaver.bcel
Class Utility
- java.lang.Object
-
- org.aspectj.weaver.bcel.Utility
-
public class Utility extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static inttestingParseCounter
-
Constructor Summary
Constructors Constructor Description Utility()
-
Method Summary
-
-
-
Method Detail
-
readAjAttributes
public static List<AjAttribute> readAjAttributes(String classname, Attribute[] as, ISourceContext context, World w, AjAttribute.WeaverVersionInfo version, ConstantPoolReader dataDecompressor)
-
beautifyLocation
public static String beautifyLocation(ISourceLocation isl)
-
createSuperInvoke
public static Instruction createSuperInvoke(InstructionFactory fact, BcelWorld world, Member signature)
-
createInvoke
public static Instruction createInvoke(InstructionFactory fact, BcelWorld world, Member signature)
-
createGet
public static Instruction createGet(InstructionFactory fact, Member signature)
-
createSet
public static Instruction createSet(InstructionFactory fact, Member signature)
-
createInstanceof
public static Instruction createInstanceof(InstructionFactory fact, ReferenceType t)
-
createInvoke
public static Instruction createInvoke(InstructionFactory fact, LazyMethodGen m)
-
createInvoke
public static Instruction createInvoke(InstructionFactory fact, short kind, Member member)
-
makeArgNames
public static String[] makeArgNames(int n)
-
appendConversion
public static void appendConversion(InstructionList il, InstructionFactory fact, ResolvedType fromType, ResolvedType toType)
-
createConversion
public static InstructionList createConversion(InstructionFactory factory, Type fromType, Type toType)
-
createConversion
public static InstructionList createConversion(InstructionFactory fact, Type fromType, Type toType, boolean allowAutoboxing)
-
createConstant
public static Instruction createConstant(InstructionFactory fact, int value)
-
replaceInstruction
public static void replaceInstruction(InstructionHandle ih, InstructionList replacementInstructions, LazyMethodGen enclosingMethod)
-
deleteInstruction
public static void deleteInstruction(InstructionHandle ih, LazyMethodGen enclosingMethod)
-
deleteInstruction
public static void deleteInstruction(InstructionHandle ih, InstructionHandle retargetTo, LazyMethodGen enclosingMethod)
-
copyInstruction
public static Instruction copyInstruction(Instruction i)
-
getSourceLine
public static int getSourceLine(InstructionHandle ih)
-
setSourceLine
public static void setSourceLine(InstructionHandle ih, int lineNumber)
-
makePublic
public static int makePublic(int i)
-
pushAndReturnArrayOfVars
public static BcelVar[] pushAndReturnArrayOfVars(ResolvedType[] proceedParamTypes, InstructionList il, InstructionFactory fact, LazyMethodGen enclosingMethod)
-
isConstantPushInstruction
public static boolean isConstantPushInstruction(Instruction i)
-
getSuppressedWarnings
public static List<Lint.Kind> getSuppressedWarnings(AnnotationAJ[] anns, Lint lint)
-
bcelAttribute
public static Attribute bcelAttribute(AjAttribute a, ConstantPool pool)
-
-