Package org.adoptopenjdk.jitwatch.model

Examples of org.adoptopenjdk.jitwatch.model.IMetaMember


    MetaClass metaClass = testModel.getPackageManager().getMetaClass(fqClassName);
   
    MemberSignatureParts msp = MemberSignatureParts.fromLogCompilationSignature("org.adoptopenjdk.jitwatch.demo.MakeHotSpotLog " + methodName + " ()V");
   
    IMetaMember testMember = metaClass.getMemberFromSignature(msp);

    CompileNode root = buildCompileNodeForXML(lines, testMember, testModel);
   
//    private void testCallChain3()
//    {
View Full Code Here


    {
      fail();
    }

    MetaClass metaClass = testModel.getPackageManager().getMetaClass(fqClassName);
    IMetaMember testMember = metaClass.getMemberFromSignature(MemberSignatureParts.fromParts(fqClassName, methodName, "void", new String[] { "long" }));

    assertNotNull(testMember);
   
    CompileNode root = buildCompileNodeForXML(lines, testMember, testModel);
   
View Full Code Here

    {
      fail();
    }

    MetaClass metaClass = testModel.getPackageManager().getMetaClass(fqClassName);
    IMetaMember testMember = metaClass.getMemberFromSignature(MemberSignatureParts.fromParts(fqClassName, methodName, "void", new String[] { "long" }));

    assertNotNull(testMember);
   
    CompileNode root = buildCompileNodeForXML(lines, testMember, testModel);
   
View Full Code Here

  public void testFindBestLineMatchForMemberSignature()
  {
    Method m = getMethod("java.util.Arrays", "copyOf", new Class<?>[] { Object[].class, int.class, Class.class });
   
    MetaClass metaClass = new MetaClass(null, "java.util.arrays");
    IMetaMember member = new MetaMethod(m, metaClass);
   
    List<String> srcLinesList = new ArrayList<>();

    srcLinesList.add("public static <T> T[] copyOf(T[] original, int newLength) {");
    srcLinesList.add("  return (T[]) copyOf(original, newLength, original.getClass());");
View Full Code Here

  public void testFindBestLineMatchForMemberSignatureBytecode()
  {
    Method m = getMethod("java.util.Arrays", "copyOf", new Class<?>[] { Object[].class, int.class, Class.class });
   
    MetaClass metaClass = new MetaClass(null, "java.util.arrays");
    IMetaMember member = new MetaMethod(m, metaClass);
   
    List<String> srcLinesList = new ArrayList<>();

    srcLinesList.add("public static <T extends java/lang/Object> T[] copyOf(T[], int);");
    srcLinesList
View Full Code Here

  public void testFindBestLineMatchForMemberSignatureBytecodeRegression()
  {
    Method m = getMethod("java.util.Arrays", "copyOf", new Class<?>[] { Object[].class, int.class });
       
    MetaClass metaClass = new MetaClass(null, "java.util.arrays");
    IMetaMember member = new MetaMethod(m, metaClass);

    List<String> srcLinesList = new ArrayList<>();

    srcLinesList
        .add("public static <T extends java/lang/Object, U extends java/lang/Object> T[] copyOf(U[], int, java.lang.Class<? extends T[]>);");
View Full Code Here

    String bytecodeSig = "public void doSomethingWithVarArgs(java.lang.String...)";
   
    MemberSignatureParts msp = MemberSignatureParts.fromBytecodeSignature("org.adoptopenjdk.jitwatch.test.TestParseUtil", bytecodeSig);
   
    IMetaMember foundVarArgsMethod = metaClass.getMemberFromSignature(msp);
   
    assertNotNull(foundVarArgsMethod);
  }
View Full Code Here

    String bytecodeSig = "public void method_with_underscores()";
   
    MemberSignatureParts msp = MemberSignatureParts.fromBytecodeSignature("org.adoptopenjdk.jitwatch.test.TestParseUtil", bytecodeSig);
   
    IMetaMember foundVarArgsMethod = metaClass.getMemberFromSignature(msp);
   
    assertNotNull(foundVarArgsMethod);
  }
View Full Code Here

    String bytecodeSig = "static int access$600(java.awt.Window)";
   
    MemberSignatureParts msp = MemberSignatureParts.fromBytecodeSignature(awtWindowClass, bytecodeSig);
   
    IMetaMember foundVarArgsMethod = metaClass.getMemberFromSignature(msp);
   
    assertNotNull(foundVarArgsMethod);
  }
View Full Code Here

    JITDataModel model = new JITDataModel();

    model.buildAndGetMetaClass(Object.class);

    IMetaMember member1 = ParseUtil.getMemberFromComment(model, comment1);

    assertEquals("public java.lang.Object()", member1.toString());
  }
View Full Code Here

TOP

Related Classes of org.adoptopenjdk.jitwatch.model.IMetaMember

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.