119 final Type currentSuperClass, final boolean isInterface) {
120 this(currentClass, currentSuperClass, null, isInterface);
121 }
122
123 /**
124 * Constructs a new {@link SimpleVerifier} to verify a specific class. This
125 * class will not be loaded into the JVM since it may be incorrect.
126 *
127 * @param currentClass
128 * the class that is verified.
129 * @param currentSuperClass
130 * the super class of the class that is verified.
131 * @param currentClassInterfaces
132 * the interfaces implemented by the class that is verified.
133 * @param isInterface
134 * if the class that is verified is an interface.
135 */
136 public SimpleVerifier(final Type currentClass,
137 final Type currentSuperClass,
138 final List<Type> currentClassInterfaces, final boolean isInterface) {
139 this(ASM5, currentClass, currentSuperClass, currentClassInterfaces,
140 isInterface);
141 }
142
143 protected SimpleVerifier(final int api, final Type currentClass,
144 final Type currentSuperClass,
145 final List<Type> currentClassInterfaces, final boolean isInterface) {
146 super(api);
147 this.currentClass = currentClass;
148 this.currentSuperClass = currentSuperClass;
149 this.currentClassInterfaces = currentClassInterfaces;
150 this.isInterface = isInterface;
151 }
152
153 /**
154 * Set the <code>ClassLoader</code> which will be used to load referenced
155 * classes. This is useful if you are verifying multiple interdependent
156 * classes.
157 *
158 * @param loader
159 * a <code>ClassLoader</code> to use
|
119 final Type currentSuperClass, final boolean isInterface) {
120 this(currentClass, currentSuperClass, null, isInterface);
121 }
122
123 /**
124 * Constructs a new {@link SimpleVerifier} to verify a specific class. This
125 * class will not be loaded into the JVM since it may be incorrect.
126 *
127 * @param currentClass
128 * the class that is verified.
129 * @param currentSuperClass
130 * the super class of the class that is verified.
131 * @param currentClassInterfaces
132 * the interfaces implemented by the class that is verified.
133 * @param isInterface
134 * if the class that is verified is an interface.
135 */
136 public SimpleVerifier(final Type currentClass,
137 final Type currentSuperClass,
138 final List<Type> currentClassInterfaces, final boolean isInterface) {
139 this(ASM6, currentClass, currentSuperClass, currentClassInterfaces,
140 isInterface);
141 }
142
143 protected SimpleVerifier(final int api, final Type currentClass,
144 final Type currentSuperClass,
145 final List<Type> currentClassInterfaces, final boolean isInterface) {
146 super(api);
147 this.currentClass = currentClass;
148 this.currentSuperClass = currentSuperClass;
149 this.currentClassInterfaces = currentClassInterfaces;
150 this.isInterface = isInterface;
151 }
152
153 /**
154 * Set the <code>ClassLoader</code> which will be used to load referenced
155 * classes. This is useful if you are verifying multiple interdependent
156 * classes.
157 *
158 * @param loader
159 * a <code>ClassLoader</code> to use
|