scala.tools.nsc.backend.jvm.ClassNode1 Maven / Gradle / Ivy
The newest version!
/*
* Scala (https://www.scala-lang.org)
*
* Copyright EPFL and Lightbend, Inc.
*
* Licensed under Apache License 2.0
* (http://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package scala.tools.nsc.backend.jvm;
import scala.tools.asm.MethodVisitor;
import scala.tools.asm.Opcodes;
import scala.tools.asm.tree.ClassNode;
import scala.tools.asm.tree.MethodNode;
/**
* A subclass of {@link ClassNode} to customize the representation of
* label nodes with {@link LabelNode1}.
*/
public class ClassNode1 extends ClassNode {
public ClassNode1() {
this(Opcodes.ASM6);
}
public ClassNode1(int api) {
super(api);
}
@Override
public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) {
MethodNode method = new MethodNode1(access, name, descriptor, signature, exceptions);
methods.add(method);
return method;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy