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.mbte.groovypp.compiler.bytecode.StackAwareMethodAdapter.java

public class StackAwareMethodAdapter extends LineNumberLabelSwitcherMethodAdapter
        implements Opcodes, LocalVarTypeInferenceState {

    // TODO: Unimplemented bytecodes
    //    int IINC = 132;
    //    int JSR = 168;

From source file org.mbte.groovypp.compiler.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.mbte.groovypp.compiler.CompileASTTransform.java

@GroovyASTTransformation(phase = CompilePhase.INSTRUCTION_SELECTION)
public class CompileASTTransform implements ASTTransformation, Opcodes {
    private static final ClassNode COMPILE_TYPE = ClassHelper.make(Typed.class);
    private static final ClassNode DYNAMIC_TYPE = ClassHelper.make(Dynamic.class);
    private static final ClassNode MIXED_TYPE = ClassHelper.make(Mixed.class);

From source file org.mbte.groovypp.compiler.CompilerStack.java

public class CompilerStack implements Opcodes {
    // state flag
    private boolean clear = true;
    // current scope
    private VariableScope scope;
    // current label for continue

From source file org.mbte.groovypp.compiler.CompilerTransformer.java

public abstract class CompilerTransformer extends ReturnsAdder implements Opcodes, LocalVarTypeInferenceState {

    public final CompilerStack compileStack;
    public final ClassNode classNode;
    protected final StackAwareMethodAdapter mv;
    public final int debug;

From source file org.mbte.groovypp.compiler.NullReturnStatement.java

class NullReturnStatement extends BytecodeSequence implements Opcodes {
    @Override
    public void visit(GroovyCodeVisitor visitor) {
        if (visitor instanceof StaticCompiler)
            ((StaticCompiler) visitor).visitBytecodeSequence(this);
        else

From source file org.mbte.groovypp.compiler.StaticCompiler.java

public class StaticCompiler extends CompilerTransformer implements Opcodes {
    private StaticMethodBytecode methodBytecode;

    // exception blocks list
    private List<Runnable> exceptionBlocks = new ArrayList<Runnable>();

From source file org.mbte.groovypp.compiler.TraitASTTransform.java

@GroovyASTTransformation(phase = CompilePhase.CONVERSION)
public class TraitASTTransform implements ASTTransformation, Opcodes {

    public void visit(ASTNode[] nodes, final SourceUnit source) {
        ModuleNode module = (ModuleNode) nodes[0];
        List<ClassNode> toProcess = new LinkedList<ClassNode>();

From source file org.mbte.groovypp.compiler.TraitASTTransformFinal.java

@GroovyASTTransformation(phase = CompilePhase.INSTRUCTION_SELECTION)
public class TraitASTTransformFinal implements ASTTransformation, Opcodes {
    public void visit(ASTNode[] nodes, final SourceUnit source) {
        ModuleNode module = (ModuleNode) nodes[0];
        for (ClassNode classNode : module.getClasses()) {
            if (classNode instanceof InnerClassNode && classNode.getName().endsWith("$TraitImpl")) {

From source file org.mbte.groovypp.compiler.transformers.ExprTransformer.java

public abstract class ExprTransformer<T extends Expression> implements Opcodes {

    private static IdentityHashMap<Class, ExprTransformer> transformers = new IdentityHashMap<Class, ExprTransformer>();

    static {
        transformers.put(CastExpression.class, new CastExpressionTransformer());