Package org.kite9.framework.serialization

Examples of org.kite9.framework.serialization.XMLHelper$SchemaTypeUsingStaxProvider


  @Test
  public void test_1_9_ClassHavingAnnotation() throws IOException, SecurityException, NoSuchFieldException {
    Set<MemberHandle> subs = pm.getMembersWithAnnotation(convertName(K9OnDiagram.class));
    Field sf = Annotated.class.getField("someField");
    Assert.assertTrue(subs.contains(new FieldHandle(sf)));
  }
View Full Code Here


        addDependency(className, model, desc, false);
        return createAnnotationVisitor(model, new ClassHandle(className), desc);
      }

      public FieldVisitor visitField(int access, String name, String desc, String sign, Object value) {
        final FieldHandle mh = new FieldHandle(className, name);
        addDependency(className, model, desc, true);
        return createFieldVisitor(model, className, mh);
      }

      public MethodVisitor visitMethod(int access, String name, String desc, String sig, String[] exceptions) {
View Full Code Here

        model.addMemberAnnotation(convertAnnotationDescriptor(desc), mh);
        return createAnnotationVisitor(model, mh, desc);
      }

      public void visitFieldInsn(int arg0, String owner, String name, String desc) {
        FieldHandle field = new FieldHandle(owner, name);
        model.addCalls(mh, field);
        addDependency(className, model, desc, true);
        model.addClassDependency(className, owner);
      }
View Full Code Here

        addDependency(className, model, desc, true);
        return createFieldVisitor(model, className, mh);
      }

      public MethodVisitor visitMethod(int access, String name, String desc, String sig, String[] exceptions) {
        final MemberHandle mh = createHandle(className, name, desc);
        addDependency(className, model, desc, true);
        return createMethodVisitor(model, className, mh);

      }
View Full Code Here

        addDependency(className, model, desc, true);
        model.addClassDependency(className, owner);
      }

      public void visitMethodInsn(int arg0, String owner, String name, String desc) {
        MemberHandle remoteMethod = createHandle(owner, name, desc);
        model.addCalls(mh, remoteMethod);
        addDependency(className, model, desc, true);
        model.addClassDependency(className, owner);
      }
View Full Code Here

  @Test
  public void test_1_1_TestMethodBCallersContainsA() throws IOException, SecurityException, NoSuchMethodException {
    Method mb = CallerCalling.class.getMethod("methodB");
    Method ma = CallerCalling.class.getMethod("methodA");

    Assert.assertTrue(pm.getCalledBy(new MethodHandle(mb)).contains(new MethodHandle(ma)));
  }
View Full Code Here

  @Test
  public void test_1_2_TestMethodACallingContainsB() throws IOException, SecurityException, NoSuchMethodException {
    Method mb = CallerCalling.class.getMethod("methodB");
    Method ma = CallerCalling.class.getMethod("methodA");

    Assert.assertTrue(pm.getCalls(new MethodHandle(ma)).contains(new MethodHandle(mb)));
  }
View Full Code Here

  @Test
  public void test_1_3_TestMethodBCallingField() throws IOException, SecurityException, NoSuchMethodException,
      NoSuchFieldException {
    Method mb = CallerCalling.class.getMethod("methodB");
    Field sub = CallerCalling.class.getDeclaredField("sub");
    Assert.assertTrue(pm.getCalls(new MethodHandle(mb)).contains(new FieldHandle(sub)));
  }
View Full Code Here

  @Test
  public void test_1_4_TestFieldCalledByMethodB() throws IOException, SecurityException, NoSuchFieldException,
      NoSuchMethodException {
    Method mb = CallerCalling.class.getMethod("methodB");
    Field sub = CallerCalling.class.getDeclaredField("sub");
    Assert.assertTrue(pm.getCalledBy(new FieldHandle(sub)).contains(new MethodHandle(mb)));
  }
View Full Code Here

  @Test
  public void test_1_8_MethodHavingAnnotation() throws IOException, SecurityException, NoSuchMethodException {
    Set<MemberHandle> subs = pm.getMembersWithAnnotation(convertName(Kite9Item.class));
    Method sm = Annotated.class.getMethod("someMethod");
    Assert.assertTrue(subs.contains(new MethodHandle(sm)));
  }
View Full Code Here

TOP

Related Classes of org.kite9.framework.serialization.XMLHelper$SchemaTypeUsingStaxProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.