1 package org.simantics.scl.compiler.internal.codegen.types;
3 import org.cojen.classfile.TypeDesc;
4 import org.simantics.scl.compiler.constants.generic.ClassRef;
6 public enum DummyJavaReferenceValidator implements JavaReferenceValidator<Object, Object, Object, Object> {
10 public Object findClass(TypeDesc name) {
15 public boolean isInterface(Object clazz) {
20 public Object[] findCompatibleMethods(Object clazz, boolean isStatic,
21 String name, TypeDesc[] parameterTypes, TypeDesc returnType) {
22 throw new UnsupportedOperationException();
26 public TypeDesc getReturnType(Object method) {
27 throw new UnsupportedOperationException();
31 public TypeDesc[] getParameterTypes(Object method) {
32 throw new UnsupportedOperationException();
36 public Object[] findCompatibleConstructors(Object clazz, TypeDesc[] types) {
37 throw new UnsupportedOperationException();
41 public TypeDesc[] getConstructorParameterTypes(Object constructor) {
42 throw new UnsupportedOperationException();
46 public Object findField(Object clazz, String name) {
47 throw new UnsupportedOperationException();
51 public boolean isStaticField(Object field) {
52 throw new UnsupportedOperationException();
56 public TypeDesc getFieldType(Object field) {
57 throw new UnsupportedOperationException();
61 public boolean isAssignableFrom(TypeDesc to, TypeDesc from) {
62 throw new UnsupportedOperationException();
66 public Object[] chooseBest(Object[] methods) {
67 throw new UnsupportedOperationException();
71 public ClassRef getClassRef(String className) {
76 public boolean isPublic(Object clazz) {