public void visitTypeAnnotation(Clazz clazz, TypeAnnotation typeAnnotation) { // Read the target info. TargetInfo targetInfo = createTargetInfo(); targetInfo.accept(clazz, typeAnnotation, this); typeAnnotation.targetInfo = targetInfo; // Read the type path. int u1pathLength = dataInput.readUnsignedByte(); typeAnnotation.typePath = new TypePathInfo[u1pathLength]; for (int index = 0; index < u1pathLength; index++) { TypePathInfo typePathInfo = new TypePathInfo(); visitTypePathInfo(clazz, typeAnnotation, typePathInfo); typeAnnotation.typePath[index] = typePathInfo; } // Read the actual annotation. visitAnnotation(clazz, typeAnnotation); }
public void visitTypeAnnotation(Clazz clazz, TypeAnnotation typeAnnotation) { // Read the target info. TargetInfo targetInfo = createTargetInfo(); targetInfo.accept(clazz, typeAnnotation, this); typeAnnotation.targetInfo = targetInfo; // Read the type path. int u1pathLength = dataInput.readUnsignedByte(); typeAnnotation.typePath = new TypePathInfo[u1pathLength]; for (int index = 0; index < u1pathLength; index++) { TypePathInfo typePathInfo = new TypePathInfo(); visitTypePathInfo(clazz, typeAnnotation, typePathInfo); typeAnnotation.typePath[index] = typePathInfo; } // Read the actual annotation. visitAnnotation(clazz, typeAnnotation); }
public void visitTypeAnnotation(Clazz clazz, TypeAnnotation typeAnnotation) { // Read the target info. TargetInfo targetInfo = createTargetInfo(); targetInfo.accept(clazz, typeAnnotation, this); typeAnnotation.targetInfo = targetInfo; // Read the type path. int u1pathLength = dataInput.readUnsignedByte(); typeAnnotation.typePath = new TypePathInfo[u1pathLength]; for (int index = 0; index < u1pathLength; index++) { TypePathInfo typePathInfo = new TypePathInfo(); visitTypePathInfo(clazz, typeAnnotation, typePathInfo); typeAnnotation.typePath[index] = typePathInfo; } // Read the actual annotation. visitAnnotation(clazz, typeAnnotation); }