Class StackMapTableWriter
java.lang.Object
com.ibm.wala.shrike.shrikeCT.ClassWriter.Element
com.ibm.wala.shrike.shrikeCT.StackMapTableWriter
-
Constructor Summary
ConstructorsConstructorDescriptionStackMapTableWriter(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars) StackMapTableWriter(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars, List<StackMapConstants.StackMapFrame> reuseFrames) StackMapTableWriter(ClassWriter writer, List<StackMapConstants.StackMapFrame> frames) StackMapTableWriter(ClassWriter w, List<StackMapConstants.StackMapFrame> sm, int[] newBytecodesToOldBytecodes) -
Method Summary
Modifier and TypeMethodDescriptionintcopyInto(byte[] buf, int offset) Copy the bytes into 'buf' at offset 'offset'.intgetSize()static List<StackMapConstants.StackMapFrame> stackMapTable(MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars, List<StackMapConstants.StackMapFrame> reuseFrames)
-
Constructor Details
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter writer, List<StackMapConstants.StackMapFrame> frames) throws IOException - Throws:
IOException
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars) throws Analyzer.FailureException, IOException - Throws:
Analyzer.FailureExceptionIOException
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars, List<StackMapConstants.StackMapFrame> reuseFrames) throws Analyzer.FailureException, IOException - Throws:
Analyzer.FailureExceptionIOException
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter w, List<StackMapConstants.StackMapFrame> sm, int[] newBytecodesToOldBytecodes) throws IOException - Throws:
IOException
-
-
Method Details
-
stackMapTable
public static List<StackMapConstants.StackMapFrame> stackMapTable(MethodData method, Compiler.Output output, ClassHierarchyProvider cha, String[][] vars, List<StackMapConstants.StackMapFrame> reuseFrames) throws Analyzer.FailureException - Throws:
Analyzer.FailureException
-
getSize
public int getSize()- Specified by:
getSizein classClassWriter.Element- Returns:
- the number of bytes that will be generated.
-
copyInto
public int copyInto(byte[] buf, int offset) Description copied from class:ClassWriter.ElementCopy the bytes into 'buf' at offset 'offset'.- Specified by:
copyIntoin classClassWriter.Element- Returns:
- the number of bytes copies, which must be equal to getSize()
-