Examples of FieldHandle


Examples of org.apache.tapestry5.plastic.FieldHandle

        Class fieldType = classCache.forName(field.getTypeName());

        ValueEncoder encoder = valueEncoderSource.getValueEncoder(fieldType);

        FieldHandle handle = field.getHandle();

        String fieldName = String.format("%s.%s", field.getPlasticClass().getClassName(), field.getName());

        setValueFromInitializeEventHandler(support, fieldName, handle, parameterName, encoder);
View Full Code Here

Examples of org.kite9.framework.model.FieldHandle

  @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

Examples of org.kite9.framework.model.FieldHandle

  @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

Examples of org.kite9.framework.model.FieldHandle

  @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

Examples of org.kite9.framework.model.FieldHandle

        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

Examples of org.kite9.framework.model.FieldHandle

        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

Examples of org.kite9.framework.model.FieldHandle

    pmi.addClass(convertClassName(BeforeState.class));
    pmi.addClass(convertClassName(AfterState.class));
    MethodHandle a = new MethodHandle(StateMovingClass.class.getDeclaredMethod("moveToTwo"));
    MethodHandle b = new MethodHandle(StateMovingClass.class.getDeclaredMethod("moveToThree"));
    MethodHandle c = new MethodHandle(StateMovingClass.class.getDeclaredMethod("reset"));
    FieldHandle f = new FieldHandle(StateMovingClass.class.getDeclaredField("current"));
    pmi.addCalls(a, f);
    pmi.addCalls(b, f);
    pmi.addCalls(c, f);
  }
View Full Code Here

Examples of org.kite9.framework.model.FieldHandle

    MethodHandle someMethod1 = new MethodHandle(Test16SequenceDiagram.class.getDeclaredMethod("someMethod1"));
    MethodHandle startMethod = new MethodHandle(Class1.class.getDeclaredMethod("startMethod"));
    MethodHandle method3 = new MethodHandle(Class2.class.getDeclaredMethod("method3"));
    MethodHandle method4 = new MethodHandle(Class2.class.getDeclaredMethod("method4"));
    MethodHandle methodA = new MethodHandle(Class3.class.getDeclaredMethod("methodA"));
    FieldHandle value = new FieldHandle(Class1.class.getDeclaredField("value"));
    FieldHandle set = new FieldHandle(Class1.class.getDeclaredField("set"));
    pmi.addCalls(someMethod1, startMethod);
    pmi.addCalls(someMethod1, methodA);
    pmi.addCalls(startMethod, method3);
    pmi.addCalls(startMethod, value);
    pmi.addCalls(startMethod, set);
View Full Code Here

Examples of org.kite9.framework.model.FieldHandle

    }
    return out;
  }

  public Transition[] getTransitions() {
    Set<MemberHandle> handles = pm.getCalledBy(new FieldHandle(f));
    Transition[] out = new Transition[handles.size()];
    int i = 0;
    for (MemberHandle handle : handles) {
      out[i++] = createTransition(handle);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.