Skip to content
Snippets Groups Projects
Select Git revision
  • a8aa6cf83c68c07adaa9928d3e7eacee96c49a1d
  • master default protected
  • cont-frb/moberg-review
  • v0.9.20
  • v0.9.19
  • v0.9.18
  • v0.9.17
  • v0.9.16
  • v0.9.15
  • v0.9.14
  • v0.9.13
  • v0.9.12
  • v0.9.11
  • v0.9.10
  • v0.9.9
  • v0.9.8
  • v0.9.7
  • v0.9.6
  • v0.9.5
  • v0.9.4
  • v0.9.3
  • v0.9.2
  • v0.9.1
23 results

moberg.c

Blame
  • Forked from Anders Blomdell / moberg
    Source project has a limited visibility.
    DumpClasses.jrag 1.04 KiB
    /* -*-Java-*- */
    
    /* 
     * Copyright (C) 2006  Anders Nilsson <anders.nilsson@cs.lth.se>
     *
     * This file is part of OntologyCompiler.
     */
    
    import java.io.PrintStream;
    
    aspect DumpClasses {
        void ASTNode.dumpClasses(PrintStream pStream) {	
    	for (int i=0; i<getNumChild(); i++) {
    	    getChild(i).dumpClasses(pStream);
    	}
        }
    
        public void Start.dumpClasses(PrintStream pStream) {
    	super.dumpClasses(pStream);
        }
    
        void OwlClassDecl.dumpClasses(PrintStream pStream) {
    	pStream.print(getId());
    	pStream.print(" : "+getSuperClass().getId());	
    	pStream.print(" ::=");
    	Restrictions restrs = getRestrictions();
    	for (int i=0; i<restrs.getNumOwlRestriction(); i++) {
    	  pStream.print(" "+"restr");
    	}
    	
    // 	Properties props = getProperties();
    // 	for (int i=0; i<props.getNumProperty(); i++) {
    // 	    pStream.print("<");
    // 	    pStream.print(" "+props.getProperty(i).getId());
    // 	    pStream.print(":");
    // 	    pStream.print(props.getProperty(i).range().type());
    // 	    pStream.print(">");
    // 	    pStream.print(" ");
    // 	}
    	pStream.println(";");
        }
    }