]> gerrit.simantics Code Review - simantics/platform.git/blob
84289af0d2f2672ed40669bfc83c5b98a7f7a968
[simantics/platform.git] /
1 package org.simantics.scl.compiler.internal.codegen.types;
2
3 import org.cojen.classfile.TypeDesc;
4 import org.simantics.scl.compiler.constants.generic.ClassRef;
5
6 public enum DummyJavaReferenceValidator implements JavaReferenceValidator<Object, Object, Object, Object> {
7     INSTANCE;
8
9     @Override
10     public Object findClass(TypeDesc name) {
11         return null;
12     }
13
14     @Override
15     public boolean isInterface(Object clazz) {
16         return false;
17     }
18
19     @Override
20     public Object[] findCompatibleMethods(Object clazz, boolean isStatic,
21             String name, TypeDesc[] parameterTypes, TypeDesc returnType) {
22         throw new UnsupportedOperationException();
23     }
24
25     @Override
26     public TypeDesc getReturnType(Object method) {
27         throw new UnsupportedOperationException();
28     }
29
30     @Override
31     public TypeDesc[] getParameterTypes(Object method) {
32         throw new UnsupportedOperationException();
33     }
34
35     @Override
36     public Object[] findCompatibleConstructors(Object clazz, TypeDesc[] types) {
37         throw new UnsupportedOperationException();
38     }
39
40     @Override
41     public TypeDesc[] getConstructorParameterTypes(Object constructor) {
42         throw new UnsupportedOperationException();
43     }
44
45     @Override
46     public Object findField(Object clazz, String name) {
47         throw new UnsupportedOperationException();
48     }
49
50     @Override
51     public boolean isStaticField(Object field) {
52         throw new UnsupportedOperationException();
53     }
54
55     @Override
56     public TypeDesc getFieldType(Object field) {
57         throw new UnsupportedOperationException();
58     }
59
60     @Override
61     public boolean isAssignableFrom(TypeDesc to, TypeDesc from) {
62         throw new UnsupportedOperationException();
63     }
64
65     @Override
66     public Object[] chooseBest(Object[] methods) {
67         throw new UnsupportedOperationException();
68     }
69     
70     @Override
71     public ClassRef getClassRef(String className) {     
72         return null;
73     }
74
75     @Override
76     public boolean isPublic(Object clazz) {
77         return false;
78     }
79     
80 }