MCPcopy Create free account
hub / github.com/ReadyTalk/avian / parseAnnotation

Method parseAnnotation

classpath/avian/Classes.java:143–160  ·  view source on GitHub ↗
(ClassLoader loader,
                                          Object pool,
                                          InputStream in)

Source from the content-addressed store, hash-verified

141 }
142
143 private static Object[] parseAnnotation(ClassLoader loader,
144 Object pool,
145 InputStream in)
146 throws IOException
147 {
148 byte[] typeName = (byte[]) Singleton.getObject(pool, read2(in) - 1);
149 Object[] annotation = new Object[(read2(in) + 1) * 2];
150 annotation[1] = SystemClassLoader.getClass
151 (loadVMClass(loader, typeName, 1, typeName.length - 3));
152
153 for (int i = 2; i < annotation.length; i += 2) {
154 byte[] name = (byte[]) Singleton.getObject(pool, read2(in) - 1);
155 annotation[i] = new String(name, 0, name.length - 1);
156 annotation[i + 1] = parseAnnotationValue(loader, pool, in);
157 }
158
159 return annotation;
160 }
161
162 private static Object[] parseAnnotationTable(ClassLoader loader,
163 Object pool,

Callers 2

parseAnnotationValueMethod · 0.95
parseAnnotationTableMethod · 0.95

Calls 5

getObjectMethod · 0.95
getClassMethod · 0.95
loadVMClassMethod · 0.95
parseAnnotationValueMethod · 0.95
read2Method · 0.45

Tested by

no test coverage detected