Examples of ClassInfo


Examples of com.google.test.metric.ClassInfo

      LocalVariableExtractor localVariablesExtractor = new LocalVariableExtractor();
      functionDefinition.accept(localVariablesExtractor);
      OperationBuilder operationBuilder = new OperationBuilder(repository);
      functionDefinition.accept(operationBuilder);

      ClassInfo classInfo = stack.peek();
      classInfo.addMethod(new MethodInfo(
          classInfo,
          functionDefinition.getName(),
          functionDefinition.getLine(),
          null,
          functionDefinition.getParameters(),
View Full Code Here

Examples of com.google.test.metric.ClassInfo

  }

  private MethodInfo getMethod(String methodName, Class<?> clazz) {
    ClassRepository repo = new JavaClassRepository();
    repo.getClass(Object.class.getCanonicalName()); // pre-cache for easier debugging.
    ClassInfo classInfo = repo.getClass(clazz.getCanonicalName());
    return classInfo.getMethod(methodName);
  }
View Full Code Here

Examples of com.ibatis.common.beans.ClassInfo

    }
  }

  private void initializeBeanResults(ResultSet rs) {
    try {
      ClassInfo classInfo = ClassInfo.getInstance(getResultClass());
      String[] propertyNames = classInfo.getWriteablePropertyNames();

      Map propertyMap = new HashMap();
      for (int i = 0; i < propertyNames.length; i++) {
        propertyMap.put(propertyNames[i].toUpperCase(), propertyNames[i]);
      }

      List resultMappingList = new ArrayList();
      ResultSetMetaData rsmd = rs.getMetaData();
      for (int i = 0, n = rsmd.getColumnCount(); i < n; i++) {
        String columnName = rsmd.getColumnLabel(i + 1);
        String upperColumnName = columnName.toUpperCase();
        String matchedProp = (String) propertyMap.get(upperColumnName);
        Class type = null;
        if (matchedProp == null) {
          Probe p = ProbeFactory.getProbe(this.getResultClass());
          try {
            type = p.getPropertyTypeForSetter(this.getResultClass(), columnName);
          } catch (Exception e) {
            //TODO - add logging to this class?
          }
        } else {
          type = classInfo.getSetterType(matchedProp);
        }
        if (type != null || matchedProp != null) {
          BasicResultMapping resultMapping = new BasicResultMapping();
          resultMapping.setPropertyName((matchedProp != null ? matchedProp : columnName));
          resultMapping.setColumnName(columnName);
View Full Code Here

Examples of com.python.pydev.analysis.additionalinfo.ClassInfo

    public void testPatternMatch() throws Exception {
        SearchPattern patternMatcher = new SearchPattern();
        patternMatcher.setPattern("aa");

        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("aa", null, null)));

        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("aaa", null, null)));

        assertFalse(MatchHelper.matchItem(patternMatcher, new ClassInfo("baaa", null, null)));

        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("aaa", "coi.foo", null)));

        patternMatcher.setPattern("xx.aa");
        assertFalse(MatchHelper.matchItem(patternMatcher, new ClassInfo("aaa", "invalid.foo", null)));

        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("aaa", "xx.foo", null)));

        patternMatcher.setPattern("xx.foo.aa");
        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("aaa", "xx.foo.bar", null)));

        patternMatcher.setPattern("xx.foo.bar.aa");
        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("aaa", "xx.foo.bar", null)));

        patternMatcher.setPattern("xx.foo.bar.aa.aa");
        assertFalse(MatchHelper.matchItem(patternMatcher, new ClassInfo("aaa", "xx.foo.bar", null)));

        patternMatcher.setPattern("xx.foo.ba.aa");
        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("aaa", "xx.foo.bar", null)));

        patternMatcher.setPattern("xx.fo*o.ba.aa");
        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("aaa", "xx.foo.bar", null)));

        patternMatcher.setPattern("coi*.intersection");
        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("Intersection", "coilib50.basic.native", null)));

        patternMatcher.setPattern("coilib50.intersection");
        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("Intersection", "coilib50.basic.native", null)));

        patternMatcher.setPattern("coilib50.");
        assertTrue(MatchHelper.matchItem(patternMatcher, new ClassInfo("Intersection", "coilib50.basic.native", null)));
    }
View Full Code Here

Examples of com.subhajit.diagrams.codeanalysis.ClassInfo

          sourceMethod);
      if (method == null) {
        System.err.println("Could not locate method.");
        return;
      }
      ctx.setClassInfo(new ClassInfo(className, classLoader));
      ctx.setFilters(SequenceDiagramAction.getPackageListInteractively()
          .toArray(IConstants.ZERO_LENGTH_STRING_ARRAY));
      ctx.setFollowInvokedMethods(true);

      MethodInfo methodInfo = MethodInfo.createMethodInfo(method);
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.ClassInfo

         *
         * This is possible if we already have such declaration to begin with.
         */
        private boolean canBeDirectElementRef(TypeRef<T, C> t, QName tn, TypeInfo parentInfo) {
            Element te = null;
            ClassInfo ci = null;
            QName targetTagName = null;

            if(t.isNillable() || t.getDefaultValue()!=null) {
                // can't put those attributes on <element ref>
                return false;
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.model.core.ClassInfo

         *
         * This is possible if we already have such declaration to begin with.
         */
        private boolean canBeDirectElementRef(TypeRef<T, C> t, QName tn, TypeInfo parentInfo) {
            Element te = null;
            ClassInfo ci = null;
            QName targetTagName = null;

            if (t.getTarget() instanceof Element) {
                te = (Element) t.getTarget();
                targetTagName = te.getElementName();
View Full Code Here

Examples of com.volantis.mcs.build.javadoc.ClassInfo

     * Generate a utilities package for the current object if it is needed.
     * @param repInfo
     * @param generatedDir The directory that the utilities are written to.
     */
    public static void generateUtilities(RepositoryObjectInfo repInfo, File generatedDir) {
        ClassInfo objectClassInfo = repInfo.getObjectClassInfo();
        String objectClassName = objectClassInfo.getName();
        PackageInfo objectPackage = objectClassInfo.getPackageInfo();
        String utilitiesPackage = objectPackage.getName();
        String utilitiesName = objectClassName + "Utilities";

        List allObjectFields = repInfo.getAllObjectFields();
        boolean utilitiesNeeded = false;
View Full Code Here

Examples of components.ClassInfo

  // first the entry for ourselves.
  ivec[ 0 ] = new InterfaceVector( me, c, null );
  // now all the others (if any)
  for( int i = 0; i< ntotal; i++){
      ClassInfo intf = (ClassInfo)c.allInterfaces.elementAt( i );
      ivec[ i+1 ] = new InterfaceVector( me, intf, null );
  }
  return imf.newInterfaceMethodTable( me, imtName, ivec );
    }
View Full Code Here

Examples of de.scoopgmbh.copper.instrument.ClassInfo

    final Map<String, Clazz> clazzMap = findInterruptableMethods(compileTargetDir);
    final Map<String, ClassInfo> clazzInfoMap = new HashMap<String, ClassInfo>();
    instrumentWorkflows(adaptedTargetDir, clazzMap, clazzInfoMap, compileTargetDir);
    for (Clazz clazz : clazzMap.values()) {
      File f = sourceFiles.get(clazz.classname+".java");
      ClassInfo info = clazzInfoMap.get(clazz.classname);
      if (info != null) {
        if (f != null) {
          info.setSourceCode(readFully(f));
        }
        ClassInfo superClassInfo = clazzInfoMap.get(clazz.superClassname);
        info.setSuperClassInfo(superClassInfo);
      }
    }
    final ClassLoader cl = createClassLoader(map, adaptedTargetDir, loadNonWorkflowClasses ? compileTargetDir : adaptedTargetDir, clazzMap);
    checkConstraints(map);
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.