public class Verifier extends Object implements GroovyClassVisitor, org.objectweb.asm.Opcodes
Verifies the AST node and adds any default AST code before bytecode generation occurs.
Checks include:
Modifiers | Name | Description |
---|---|---|
interface |
Verifier.DefaultArgsAction |
Modifiers | Name | Description |
---|---|---|
static String |
DEFAULT_PARAMETER_GENERATED |
|
static String |
INITIAL_EXPRESSION |
|
static String |
STATIC_METACLASS_BOOL |
|
static String |
SWAP_INIT |
|
static String |
__TIMESTAMP |
|
static String |
__TIMESTAMP__ |
Type Params | Return Type | Name and description |
---|---|---|
|
public static String |
capitalize(String name) Capitalizes the start of the given bean property name. |
|
public ClassNode |
getClassNode() |
|
public MethodNode |
getMethodNode() |
|
public static long |
getTimestamp(Class<?> clazz) |
|
public static Long |
getTimestampFromFieldName(String fieldName) |
|
public static ConstantExpression |
transformToPrimitiveConstantIfPossible(ConstantExpression constantExpression) When constant expressions are created, the value is always wrapped to a non primitive type. |
|
public void |
variableNotAlwaysInitialized(VariableExpression var) |
|
public void |
variableNotFinal(Variable var, Expression bexp) |
|
public void |
visit(org.objectweb.asm.MethodVisitor mv) |
|
public void |
visit(org.objectweb.asm.MethodVisitor mv) |
|
public void |
visit(org.objectweb.asm.MethodVisitor mv) |
|
public void |
visit(org.objectweb.asm.MethodVisitor mv) |
|
public void |
visit(org.objectweb.asm.MethodVisitor mv) |
|
public void |
visit(org.objectweb.asm.MethodVisitor mv) |
|
public void |
visit(org.objectweb.asm.MethodVisitor mv) |
|
public void |
visit(org.objectweb.asm.MethodVisitor mv) |
|
public void |
visitClass(ClassNode node) |
|
public void |
visitClosureExpression(ClosureExpression expression) |
|
public void |
visitClosureExpression(ClosureExpression ce) |
|
public void |
visitClosureExpression(ClosureExpression e) |
|
public void |
visitConstructor(ConstructorNode node) |
|
public void |
visitConstructorCallExpression(ConstructorCallExpression cce) |
|
public void |
visitConstructorCallExpression(ConstructorCallExpression call) |
|
public void |
visitConstructorCallExpression(ConstructorCallExpression call) |
|
public void |
visitField(FieldNode node) |
|
public void |
visitGenericType(GenericsType genericsType) |
|
public void |
visitMethod(MethodNode node) |
|
public void |
visitMethodCallExpression(MethodCallExpression mce) |
|
public void |
visitProperty(PropertyNode node) |
|
public void |
visitReturnStatement(ReturnStatement statement) |
|
public void |
visitVariableExpression(VariableExpression ve) |
|
public void |
visitVariableExpression(VariableExpression e) |
|
public void |
visitVariableExpression(VariableExpression e) |
When constant expressions are created, the value is always wrapped to a non primitive type. Some constant expressions are optimized to return primitive types, but not all primitives are handled. This method guarantees to return a similar constant expression but with a primitive type instead of a boxed type.
Additionally, single char strings are converted to 'char' types.constantExpression
- a constant expression