Example usage for org.objectweb.asm Opcodes interface-usage

List of usage examples for org.objectweb.asm Opcodes interface-usage

Introduction

In this page you can find the example usage for org.objectweb.asm Opcodes interface-usage.

Usage

From source file org.codehaus.groovy.classgen.asm.BytecodeHelper.java

/**
 * A helper class for bytecode generation with AsmClassGenerator.
 */
public class BytecodeHelper implements Opcodes {

    private static String DTT_CLASSNAME = BytecodeHelper.getClassInternalName(DefaultTypeTransformation.class);

From source file org.codehaus.groovy.classgen.asm.CompileStack.java

/**
 * This class is a helper for AsmClassGenerator. It manages
 * different aspects of the code of a code block like
 * handling labels, defining variables, and scopes.
 * After a MethodNode is visited clear should be called, for
 * initialization the method init should be used.

From source file org.codehaus.groovy.classgen.asm.MethodCaller.java

/**
 * A helper class to invoke methods more easily in ASM
 */
public class MethodCaller implements Opcodes {

    private int opcode;

From source file org.codehaus.groovy.classgen.asm.sc.StaticTypesBinaryExpressionMultiTypeDispatcher.java

/**
 * A specialized version of the multi type binary expression dispatcher which is aware of static compilation.
 * It is able to generate optimized bytecode for some operations using JVM instructions when available.
 */
public class StaticTypesBinaryExpressionMultiTypeDispatcher extends BinaryExpressionMultiTypeDispatcher
        implements Opcodes {

From source file org.codehaus.groovy.classgen.asm.sc.StaticTypesCallSiteWriter.java

/**
 * A call site writer which replaces call site caching with static calls. This means that the generated code
 * looks more like Java code than dynamic Groovy code. Best effort is made to use JVM instructions instead of
 * calls to helper methods.
 */
public class StaticTypesCallSiteWriter extends CallSiteWriter implements Opcodes {

From source file org.codehaus.groovy.classgen.asm.sc.StaticTypesUnaryExpressionHelper.java

/**
 * An unary expression helper which generates optimized bytecode depending on
 * the current type on top of the operand stack.
 */
public class StaticTypesUnaryExpressionHelper extends UnaryExpressionHelper implements Opcodes {
    private static final UnaryMinusExpression EMPTY_UNARY_MINUS = new UnaryMinusExpression(

From source file org.codehaus.groovy.classgen.BytecodeHelper.java

/**
 * A helper class for bytecode generation with AsmClassGenerator.
 *
 * @author <a href="mailto:james@coredevelopers.net">James Strachan</a>
 * @author <a href="mailto:b55r@sina.com">Bing Ran</a>
 * @author <a href="mailto:blackdrag@gmx.org">Jochen Theodorou</a>

From source file org.codehaus.groovy.classgen.ClassGenerator.java

/**
 * Abstract base class for generator of Java class versions of Groovy AST classes
 */
public abstract class ClassGenerator extends ClassCodeVisitorSupport implements Opcodes {
    // inner classes created while generating bytecode
    protected LinkedList<ClassNode> innerClasses = new LinkedList<ClassNode>();

From source file org.codehaus.groovy.classgen.CompileStack.java

/**
 * This class is a helper for AsmClassGenerator. It manages
 * different aspects of the code of a code block like 
 * handling labels, defining variables, and scopes. 
 * After a MethodNode is visited clear should be called, for 
 * initialization the method init should be used.

From source file org.codehaus.groovy.classgen.DumpingClassLoader.java

/**
 * A class loader used for debugging the bytecode generation.
 * This will log all bytecode being loaded
 */
public class DumpingClassLoader extends GroovyClassLoader implements Opcodes {