| Package | Description |
|---|---|
| com.google.template.soy.jbcsrc.internal | |
| com.google.template.soy.jbcsrc.restricted |
| Modifier and Type | Method and Description |
|---|---|
TypeInfo |
InnerClasses.registerInnerClass(String simpleName,
int accessModifiers)
Register the given name as an inner class with the given access modifiers.
|
TypeInfo |
InnerClasses.registerInnerClassWithGeneratedName(String simpleName,
int accessModifiers)
Register the name (or a simpl mangling of it) as an inner class with the given access
modifiers.
|
TypeInfo |
ClassData.type() |
| Modifier and Type | Method and Description |
|---|---|
static SoyClassWriter.Builder |
SoyClassWriter.builder(TypeInfo type)
Returns a new SoyClassWriter for writing a new class of the given type.
|
static ClassData |
ClassData.create(TypeInfo type,
byte[] b,
int numFields,
int numDetachStates) |
SoyClassWriter.Builder |
SoyClassWriter.Builder.extending(TypeInfo baseClass)
Sets the base class for this type.
|
SoyClassWriter.Builder |
SoyClassWriter.Builder.implementing(TypeInfo typeInfo)
Adds an
interface to the class. |
void |
InnerClasses.registerAsInnerClass(org.objectweb.asm.ClassVisitor visitor,
TypeInfo innerClass)
Registers this factory as an inner class on the given class writer.
|
| Constructor and Description |
|---|
InnerClasses(TypeInfo outer) |
| Modifier and Type | Field and Description |
|---|---|
static TypeInfo |
BytecodeUtils.OBJECT |
| Modifier and Type | Method and Description |
|---|---|
static TypeInfo |
TypeInfo.create(Class<?> clazz) |
static TypeInfo |
TypeInfo.create(String className) |
TypeInfo |
TypeInfo.innerClass(String simpleName)
Returns a new
TypeInfo for an inner class of this class. |
abstract TypeInfo |
ConstructorRef.instanceClass() |
abstract TypeInfo |
FieldRef.owner()
The type that owns this field.
|
abstract TypeInfo |
MethodRef.owner()
The 'internal name' of the type that owns the method.
|
| Modifier and Type | Method and Description |
|---|---|
static ConstructorRef |
ConstructorRef.create(TypeInfo type,
Iterable<org.objectweb.asm.Type> argTypes)
Returns a new
ConstructorRef that refers to a constructor on the given type with the
given parameter types. |
static ConstructorRef |
ConstructorRef.create(TypeInfo type,
org.objectweb.asm.commons.Method init)
Returns a new
ConstructorRef that refers to a constructor on the given type with the
given parameter types. |
static FieldRef |
FieldRef.create(TypeInfo owner,
String name,
org.objectweb.asm.Type type,
int accessFlags,
boolean isNullable) |
static FieldRef |
FieldRef.createField(TypeInfo owner,
String name,
Class<?> type) |
static FieldRef |
FieldRef.createField(TypeInfo owner,
String name,
org.objectweb.asm.Type type) |
static FieldRef |
FieldRef.createFinalField(TypeInfo owner,
String name,
Class<?> type) |
static FieldRef |
FieldRef.createFinalField(TypeInfo owner,
String name,
org.objectweb.asm.Type type) |
static MethodRef |
MethodRef.createInstanceMethod(TypeInfo owner,
org.objectweb.asm.commons.Method method) |
static FieldRef |
FieldRef.createPublicStaticField(TypeInfo owner,
String name,
org.objectweb.asm.Type type) |
static MethodRef |
MethodRef.createStaticMethod(TypeInfo owner,
org.objectweb.asm.commons.Method method) |
static LocalVariable |
LocalVariable.createThisVar(TypeInfo owner,
org.objectweb.asm.Label start,
org.objectweb.asm.Label end) |
static void |
BytecodeUtils.defineDefaultConstructor(org.objectweb.asm.ClassVisitor cv,
TypeInfo ownerType)
Generates a default nullary public constructor for the given type on the
ClassVisitor. |