Add new internal interface for token provider

This commit is contained in:
Mumfrey committed 2015-05-28 23:50:11 +01:00
1 parent 7434e54b60
commit f66760a5bf
3 files changed
+46 -3

No files matched your search

@@ -28,7 +28,6 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.spongepowered.asm.lib.tree.AnnotationNode;
import org.spongepowered.asm.mixin.MixinEnvironment;
/**
@@ -220,7 +219,7 @@ public final class ConstraintParser {
return this.max;
}
public void check(MixinEnvironment environment) throws ConstraintViolationException {
public void check(ITokenProvider environment) throws ConstraintViolationException {
if (this != Constraint.NONE) {
Integer value = environment.getToken(this.token);
if (value == null) {