Gitlab service upgraded. Please report any problems to dl_gitadmin@cs.lth.se

Commit 86ce4776 authored by Anders Nilsson's avatar Anders Nilsson

Updated javadoc

parent de4a7529
......@@ -227,10 +227,10 @@ aspect MiscUtilities {
}
syn boolean Declaration.isClassDecl() = getElement(0).isClass();
eq ClassDeclaration.isClassDecl() = true;
eq ClassDeclaration.isClassDecl() = false;
eq IndividualDeclaration.isClassDecl() = false;
syn boolean Declaration.isIndividualDecl() = getElement(0).isIndividual();
eq IndividualDeclaration.isIndividualDecl() = true;
eq IndividualDeclaration.isIndividualDecl() = false;
eq ClassDeclaration.isIndividualDecl() = false;
syn boolean Element.isClass() = false;
......@@ -250,12 +250,12 @@ aspect RewriteClasses {
c.setElementList(getElementList());
return c;
}
when (isIndividualDecl())
to IndividualDeclaration {
IndividualDeclaration c = new IndividualDeclaration();
c.setElementList(getElementList());
return c;
}
// when (isIndividualDecl())
// to IndividualDeclaration {
// IndividualDeclaration c = new IndividualDeclaration();
// c.setElementList(getElementList());
// return c;
// }
}
rewrite OwlClass {
......
......@@ -28,12 +28,24 @@ aspect Types {
}
syn Declaration ASTNode.getSuperClass(String name) = null;
eq Start.getSuperClass(String name) =
eq Start.getSuperClass(String name) =
getSpecification().getSuperClass(name);
eq Specification.getSuperClass(String name) =
getOntoDeclaration().getSuperClass(name);
eq Specification.getSuperClass(String name) {
Declaration decl = getOntoDeclaration().getSuperClass(name);
if (decl == null) {
decl = findDecl("Thing");
if (decl == null) {
decl = new ClassDeclaration();
Clazz c = new Clazz();
c.addAttribute(new IRI(new Value("Thing")));
decl.addElement(c);
getOntoDeclaration().addElement(decl);
}
}
return decl;
}
eq ComplexElement.getSuperClass(String name) {
for (Element e : getElementList()) {
for (Element e : getElements()) {
Declaration d = e.getSuperClass(name);
if (d != null) {
return d;
......@@ -41,7 +53,32 @@ aspect Types {
}
return null;
}
eq SubClassOf.getSuperClass(String name) {
if (getElement(0).name().equals(name)) {
return goStart().findDecl(getElement(1).name());
}
return null;
}
syn Declaration ASTNode.findDecl(String name) = null;
eq Start.findDecl(String name) =
getSpecification().findDecl(name);
eq Specification.findDecl(String name) = getOntoDeclaration().findDecl(name);
eq ComplexElement.findDecl(String name) {
for (Element e : getElements()) {
Declaration d = e.findDecl(name);
if (d != null) {
return d;
}
}
return null;
}
eq ClassDeclaration.findDecl(String name) {
if (name.equals(name())) {
return this;
}
return null;
}
syn lazy OClass OClass.getSuperClass();
eq OwlClassDecl.getSuperClass() {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_22) on Thu Jan 13 16:50:34 CET 2011 -->
<!-- Generated by javadoc (build 1.6.0_22) on Mon Feb 07 11:11:51 CET 2011 -->
<TITLE>
JavaCharStream
</TITLE>
<META NAME="date" CONTENT="2011-01-13">
<META NAME="date" CONTENT="2011-02-07">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_22) on Thu Jan 13 16:50:35 CET 2011 -->
<!-- Generated by javadoc (build 1.6.0_22) on Mon Feb 07 11:11:52 CET 2011 -->
<TITLE>
OwlParser
</TITLE>
<META NAME="date" CONTENT="2011-01-13">
<META NAME="date" CONTENT="2011-02-07">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
......
......@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_22) on Thu Jan 13 16:50:35 CET 2011 -->
<!-- Generated by javadoc (build 1.6.0_22) on Mon Feb 07 11:11:52 CET 2011 -->
<TITLE>
OwlParserConstants
</TITLE>
<META NAME="date" CONTENT="2011-01-13">
<META NAME="date" CONTENT="2011-02-07">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
......
......@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_22) on Thu Jan 13 16:50:35 CET 2011 -->
<!-- Generated by javadoc (build 1.6.0_22) on Mon Feb 07 11:11:52 CET 2011 -->
<TITLE>
OwlParserTokenManager
</TITLE>
<META NAME="date" CONTENT="2011-01-13">
<META NAME="date" CONTENT="2011-02-07">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment