public final class SoyClassWriter
extends org.objectweb.asm.ClassVisitor
ClassWriter that allows us to specialize ClassWriter.getCommonSuperClass(java.lang.String, java.lang.String) for compiler generated types as well as set common defaults for
all classwriters used by jbcsrc.| Modifier and Type | Class and Description |
|---|---|
static class |
SoyClassWriter.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SoyClassWriter.Builder |
builder(TypeInfo type)
Returns a new SoyClassWriter for writing a new class of the given type.
|
void |
setNumDetachStates(int numDetachStates)
Sets the number of 'detach states' needed by the compiled class.
|
ClassData |
toClassData()
Returns the bytecode of the class that was build with this class writer.
|
void |
visit(int v,
int a,
String n,
String s,
String b,
String[] i)
Deprecated.
Don't call visit(), SoyClassWriter calls it for you during construction.
|
org.objectweb.asm.FieldVisitor |
visitField(int access,
String name,
String desc,
String signature,
Object value) |
void |
visitSource(String source,
String debug)
Deprecated.
Don't call visitSource(), SoyClassWriter calls it for you during construction.
|
public static SoyClassWriter.Builder builder(TypeInfo type)
public void setNumDetachStates(int numDetachStates)
@Deprecated public void visitSource(String source, String debug)
visitSource in class org.objectweb.asm.ClassVisitor@Deprecated public void visit(int v, int a, String n, String s, String b, String[] i)
visit in class org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.FieldVisitor visitField(int access,
String name,
String desc,
String signature,
Object value)
visitField in class org.objectweb.asm.ClassVisitorpublic ClassData toClassData()