Package org.adoptopenjdk.jitwatch.model

Examples of org.adoptopenjdk.jitwatch.model.MetaMethod


     
      String testMethodName = "primitiveReturnPrimitiveParam";
     
      Method method = getClass().getDeclaredMethod(testMethodName, new Class[]{int.class});
     
      MetaMethod testMethod = new MetaMethod(method, metaClass);
     
      metaClass.addMetaMethod(testMethod);
     
      String testRetType = "int";
      String[] testParamTypes = new String[]{"int"};
     
      IMetaMember result = metaClass.getMemberFromSignature(MemberSignatureParts.fromParts(metaClass.getFullyQualifiedName(), testMethodName, testRetType, testParamTypes));
   
      assertNotNull(result);
      assertEquals(testMethod.toString(), result.toString());
    }
View Full Code Here


     
      String testMethodName = "voidReturnPrimitiveParam";
     
      Method method = getClass().getDeclaredMethod(testMethodName, new Class[]{int.class});
     
      MetaMethod testMethod = new MetaMethod(method, metaClass);
     
      metaClass.addMetaMethod(testMethod);
     
      String testRetType = "void";
      String[] testParamTypes = new String[]{"int"};
     
      IMetaMember result = metaClass.getMemberFromSignature(MemberSignatureParts.fromParts(metaClass.getFullyQualifiedName(),testMethodName, testRetType, testParamTypes));
   
      assertNotNull(result);
      assertEquals(testMethod.toString(), result.toString());
    }
View Full Code Here

     
      String testMethodName = "voidReturnNoParams";
     
      Method method = getClass().getDeclaredMethod(testMethodName, new Class[0]);
     
      MetaMethod testMethod = new MetaMethod(method, metaClass);
     
      metaClass.addMetaMethod(testMethod);
     
      String testRetType = "void";
      String[] testParamTypes = new String[0];
     
      IMetaMember result = metaClass.getMemberFromSignature(MemberSignatureParts.fromParts(metaClass.getFullyQualifiedName(),testMethodName, testRetType, testParamTypes));
   
      assertNotNull(result);
      assertEquals(testMethod.toString(), result.toString());
    }
View Full Code Here

     
      String testMethodName = "objectReturnObjectParam";
     
      Method method = getClass().getDeclaredMethod(testMethodName, new Class[]{java.lang.String.class});
     
      MetaMethod testMethod = new MetaMethod(method, metaClass);
     
      metaClass.addMetaMethod(testMethod);
     
      String testRetType = "java.lang.String";
      String[] testParamTypes = new String[]{"java.lang.String"};
     
      IMetaMember result = metaClass.getMemberFromSignature(MemberSignatureParts.fromParts(metaClass.getFullyQualifiedName(),testMethodName, testRetType, testParamTypes));
   
      assertNotNull(result);
      assertEquals(testMethod.toString(), result.toString());
    }
View Full Code Here

     
      String testMethodName = "arrayReturnArrayParam";
     
      Method method = getClass().getDeclaredMethod(testMethodName, new Class[]{int[].class});
     
      MetaMethod testMethod = new MetaMethod(method, metaClass);
     
      metaClass.addMetaMethod(testMethod);
     
      String testRetType = "[Ljava.lang.String;";
      String[] testParamTypes = new String[]{"[I"};
     
      IMetaMember result = metaClass.getMemberFromSignature(MemberSignatureParts.fromParts(metaClass.getFullyQualifiedName(),testMethodName, testRetType, testParamTypes));
   
      assertNotNull(result);
      assertEquals(testMethod.toString(), result.toString());
    }
View Full Code Here

TOP

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

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.