Examples of TypeHierarchy


Examples of org.aspectj.org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy

    copies = new ICompilationUnit[length];
    System.arraycopy(workingCopies, 0, copies, 0, length);
  } else {
    copies = null;
  }
  this.typeHierarchy = new TypeHierarchy(element, copies, scope, computeSubtypes);
}
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy

    copies = new ICompilationUnit[length];
    System.arraycopy(workingCopies, 0, copies, 0, length);
  } else {
    copies = null;
  }
  this.typeHierarchy = new TypeHierarchy(element, copies, project, computeSubtypes);
}
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy

      SafeRunner.run(new ISafeRunnable() {
        public void handleException(Throwable exception) {
          Util.log(exception, "Exception occurred in listener of Java element change notification"); //$NON-NLS-1$
        }
        public void run() throws Exception {
          TypeHierarchy typeHierarchy = (TypeHierarchy)listener;
          if (typeHierarchy.hasFineGrainChanges()) {
            // case of changes in primary working copies
            typeHierarchy.needsRefresh = true;
            typeHierarchy.fireChange();
          }
        }
      });
    }
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy

      SafeRunner.run(new ISafeRunnable() {
        public void handleException(Throwable exception) {
          Util.log(exception, "Exception occurred in listener of Java element change notification"); //$NON-NLS-1$
        }
        public void run() throws Exception {
          TypeHierarchy typeHierarchy = (TypeHierarchy)listener;
          if (typeHierarchy.hasFineGrainChanges()) {
            // case of changes in primary working copies
            typeHierarchy.needsRefresh = true;
            typeHierarchy.fireChange();
          }
        }
      });
    }
  }
View Full Code Here

Examples of org.ontospread.xmlbind.TypeHierarchy

              //For each conceptDescription in relation
              for (ConceptDescription conceptDescription : r.getConceptDescriptions()) {
                final String objectConceptUri = conceptDescription.getUri();
                  logger.debug("Adding "+relationUri+" object "+objectConceptUri);
                  if(objectConceptUri!=null ){
                      TypeHierarchy hierarchy = r.getHierarchy();
            if (r.getOnproperty() != null) {
                          logger.debug("Registering relation " + relationUri + "(" + r.getOnproperty() + ") with concept " + objectConceptUri);               
                          relationsUris.add(objectConceptUri);                         
                          relationConcept.add(new ConceptRelationPair(hierarchy  ,  objectConceptUri, r.getOnproperty()));
                      } else {               
                          // Caution! this may seem counter-intuitive, but it is right
                          if (isSuperclassOfRelation(r)) {
                              // this _is superclass of_ object, so...
                            logger.debug("Adding subclass "+objectConceptUri);
                              subClassesUris.add(objectConceptUri);
                          } else {
                              // otherwise, the object _is superclass of_ this, so...
                            logger.debug("Adding superclass "+objectConceptUri);
                              superClassesUris.add(objectConceptUri);
                          }
                          relationConcept.add(
                              new ConceptRelationPair(hierarchy,
                                  objectConceptUri,
                                  OntoSpreadRelationWeight.DEFAULT_NAMESPACE+hierarchy.toString()));
                      }
                  } else{
                  }   
              }//End for each concept description in relation           
          }
View Full Code Here

Examples of org.pdf4j.saxon.type.TypeHierarchy

            return sequence;
        }

        if (requiredType != null) {
            // if declaration is null, we've already done the type checking in a previous pass
            final TypeHierarchy th = visitor.getConfiguration().getTypeHierarchy();
            SequenceType decl = requiredType;
            SequenceType sequenceType = SequenceType.makeSequenceType(
                    decl.getPrimaryType(), StaticProperty.ALLOWS_ZERO_OR_MORE);
            RoleLocator role = new RoleLocator(RoleLocator.VARIABLE, variableName, 0
            );
View Full Code Here

Examples of org.xmlvm.util.analytics.data.TypeHierarchy

        return file.getName().toLowerCase().endsWith(".class");
      }
    });
    System.out.println("Getting type hierarchy for " + classes.length + " classes.");

    TypeHierarchy result= new TypeHierarchy();
    final String basePath= library.getAbsolutePath();
    for (UniversalFile clazz : classes)
    {
      String fileName= clazz.getRelativePath(basePath).replace('\\', '.');
      DirectClassFile classFile= new DirectClassFile(clazz.getFileAsBytes(), fileName, false);
      classFile.setAttributeFactory(StdAttributeFactory.THE_ONE);
      try
      {
        classFile.getMagic();
      }
      catch (ParseException ex)
      {
        continue;
      }

      final int DOT_CLASS_LENGTH= ".class".length();
      String className= fileName.substring(0, fileName.length() - DOT_CLASS_LENGTH).replace('/', '.');

      // Super-class.
      if (classFile.getSuperclass() != null)
      {
        String superClassName= Util.parseClassName(classFile.getSuperclass().getClassType().getClassName()).toString();
        result.addDirectSubType(className, superClassName);
      }

      // Interfaces
      TypeList interfaces= classFile.getInterfaces();
      if (interfaces != null)
      {
        for (int i= 0; i < interfaces.size(); i++)
        {
          String interfaceName= Util.parseClassName(interfaces.getType(i).getClassName()).toString();
          result.addDirectSubType(className, interfaceName);
        }
      }
    }
    return result;
  }
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.