Examples of addSuperClass()


Examples of com.facebook.presto.jdbc.internal.jol.info.ClassData.addSuperClass()

        long klassID = read_ID();

        String name = classNames.get(klassID);

        ClassData cd = new ClassData(name);
        cd.addSuperClass(name);

        read_U4(); // stack trace

        long superKlassID = read_ID();
        ClassData superCd = classDatas.get(superKlassID);
View Full Code Here

Examples of com.google.javascript.jscomp.newtypes.NominalType.RawNominalType.addSuperClass()

          String className = ctorType.toString();
          if (parentClass == null && !"Object".equals(functionName)) {
            parentClass = getObjectNominalType();
          }
          if (parentClass != null) {
            if (!ctorType.addSuperClass(parentClass)) {
              warnings.add(JSError.make(
                  declNode, INHERITANCE_CYCLE, className));
            } else if (parentClass != getObjectNominalType()) {
              if (ctorType.isStruct() && !parentClass.isStruct()) {
                warnings.add(JSError.make(
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.addSuperClass()

  }
 
  public static Resource toList(OntModel ont, String type, String itemType) {
    OntClass c = ont.createClass(type);
    Resource i = ont.getResource(itemType);
    c.addSuperClass(RDF.List);     
    c.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.first,i));
    c.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.rest,c));
    return c;   
  }
 
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.addSuperClass()

 
  public static Resource toList(OntModel ont, String type, String itemType) {
    OntClass c = ont.createClass(type);
    Resource i = ont.getResource(itemType);
    c.addSuperClass(RDF.List);     
    c.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.first,i));
    c.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.rest,c));
    return c;   
  }
 
  public static void removeSubClass(OntModel ont, Resource c, Resource d) {
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.addSuperClass()

  public static Resource toList(OntModel ont, String type, String itemType) {
    OntClass c = ont.createClass(type);
    Resource i = ont.getResource(itemType);
    c.addSuperClass(RDF.List);     
    c.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.first,i));
    c.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.rest,c));
    return c;   
  }
 
  public static void removeSubClass(OntModel ont, Resource c, Resource d) {
    ont.remove(ont.createStatement(c,RDFS.subClassOf,d));
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.addSuperClass()

    // we don't like anonymous lists
    if (uri==null || (type!=null && type.startsWith(schema.XSD_URI) && !schema.isValidDatatype(type))) {
      // pass over anonymous simple types
      if (uri!=null) {
        cls = ont.createClass(uri);
        cls.addSuperClass(RDF.List);   
        return cls;
      } else return RDF.List;
    }
   
    // the type may be null for embedded simpleType
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.addSuperClass()

    else first = schema.toOWL(ont,type);
   
    if (uri!=null || createAnon) {
      cls = ont.createClass(uri);
      if (uri!=null) ctx.putOntClass(uri, cls);
      cls.addSuperClass(RDF.List);   
      if (first!=null) {
        // add the item type as range of rdf:first
        cls.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.first,first));
        // add the class itself as the range of rdf:rest
        cls.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.rest,cls));
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.addSuperClass()

      cls = ont.createClass(uri);
      if (uri!=null) ctx.putOntClass(uri, cls);
      cls.addSuperClass(RDF.List);   
      if (first!=null) {
        // add the item type as range of rdf:first
        cls.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.first,first));
        // add the class itself as the range of rdf:rest
        cls.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.rest,cls));
      }
    }
    return cls;
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.addSuperClass()

      cls.addSuperClass(RDF.List);   
      if (first!=null) {
        // add the item type as range of rdf:first
        cls.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.first,first));
        // add the class itself as the range of rdf:rest
        cls.addSuperClass(ont.createAllValuesFromRestriction(null,RDF.rest,cls));
      }
    }
    return cls;
  }
 
View Full Code Here

Examples of com.hp.hpl.jena.ontology.OntClass.addSuperClass()

    if (base!=null) {
      if (schema.isValidDatatype(base)) {
        // pass over anonymous simple types
        if (uri==null) return xs.ont.getResource(base);
        OntClass cls = xs.ont.createClass(uri);
        cls.addSuperClass(xs.ont.getResource(base));
        return cls;
       
      }
      else return null;
    }
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.