Package com.ibm.wala.shrike.shrikeCT
Class StackMapTableWriter
- java.lang.Object
-
- com.ibm.wala.shrike.shrikeCT.ClassWriter.Element
-
- com.ibm.wala.shrike.shrikeCT.StackMapTableWriter
-
public class StackMapTableWriter extends ClassWriter.Element
-
-
Constructor Summary
Constructors Constructor Description StackMapTableWriter(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, java.lang.String[][] vars)StackMapTableWriter(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, java.lang.String[][] vars, java.util.List<StackMapConstants.StackMapFrame> reuseFrames)StackMapTableWriter(ClassWriter writer, java.util.List<StackMapConstants.StackMapFrame> frames)StackMapTableWriter(ClassWriter w, java.util.List<StackMapConstants.StackMapFrame> sm, int[] newBytecodesToOldBytecodes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcopyInto(byte[] buf, int offset)Copy the bytes into 'buf' at offset 'offset'.intgetSize()static java.util.List<StackMapConstants.StackMapFrame>stackMapTable(MethodData method, Compiler.Output output, ClassHierarchyProvider cha, java.lang.String[][] vars, java.util.List<StackMapConstants.StackMapFrame> reuseFrames)
-
-
-
Constructor Detail
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter writer, java.util.List<StackMapConstants.StackMapFrame> frames) throws java.io.IOException
- Throws:
java.io.IOException
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, java.lang.String[][] vars) throws Analyzer.FailureException, java.io.IOException
- Throws:
Analyzer.FailureExceptionjava.io.IOException
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter writer, MethodData method, Compiler.Output output, ClassHierarchyProvider cha, java.lang.String[][] vars, java.util.List<StackMapConstants.StackMapFrame> reuseFrames) throws Analyzer.FailureException, java.io.IOException
- Throws:
Analyzer.FailureExceptionjava.io.IOException
-
StackMapTableWriter
public StackMapTableWriter(ClassWriter w, java.util.List<StackMapConstants.StackMapFrame> sm, int[] newBytecodesToOldBytecodes) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
stackMapTable
public static java.util.List<StackMapConstants.StackMapFrame> stackMapTable(MethodData method, Compiler.Output output, ClassHierarchyProvider cha, java.lang.String[][] vars, java.util.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()
-
-