Refactored test data, now we have one package for each match type

This commit is contained in:
Andrea Aime 2006-01-28 10:16:18 +00:00
parent 26a8c04d31
commit bc42b5df48
22 changed files with 195 additions and 56 deletions

View File

@ -1,4 +1,4 @@
package gr.spinellis.invoice;
package gr.spinellis.basic.invoice;
public class Customer {
String name;

View File

@ -1,11 +1,11 @@
package gr.spinellis.invoice;
package gr.spinellis.basic.invoice;
import java.util.List;
import gr.spinellis.product.*;
import gr.spinellis.basic.product.*;
/**
* @composed 1 - * gr.spinellis.invoice.InvoiceItem
* @assoc * - 1 gr.spinellis.invoice.Customer
* @composed 1 - * InvoiceItem
* @assoc * - 1 Customer
*/
public class Invoice {
public double total;

View File

@ -0,0 +1,12 @@
package gr.spinellis.basic.invoice;
import gr.spinellis.basic.product.*;
/**
* @assoc * - 1 Product
*/
public class InvoiceItem {
public Product product;
public int quantity;
}

View File

@ -1,4 +1,4 @@
package gr.spinellis.product;
package gr.spinellis.basic.product;
import java.util.*;
/**

View File

@ -1,7 +1,7 @@
package gr.spinellis.product;
package gr.spinellis.basic.product;
/**
* @assoc * - 1 gr.spinellis.product.Category
* @assoc * - 1 Category
*/
public class Product {

View File

@ -1,12 +1,12 @@
package gr.spinellis.views;
package gr.spinellis.basic.views;
/**
* @view
* @opt hide
*
* @match class gr.spinellis.product.*
* @match class gr.spinellis.basic.product.*
* @opt !hide
* @match class gr.spinellis.*
* @match class gr.spinellis.basic.*
* @opt nodefillcolor LemonChiffon
*/
public abstract class ViewAbstract {

View File

@ -0,0 +1,11 @@
package gr.spinellis.basic.views;
/**
* @view
* @opt hide
*
* @match class gr.spinellis.basic.*
* @opt !hide
*/
public class ViewAll {
}

View File

@ -0,0 +1,16 @@
package gr.spinellis.basic.views;
/**
* @view
* @opt hide
*
* @match class gr.spinellis.basic.*
* @opt !hide
*
* @match class gr.spinellis.basic.*
* @opt attributes
* @opt operations
* @opt types
*/
public class ViewAllDetailed {
}

View File

@ -1,10 +1,11 @@
package gr.spinellis.views;
package gr.spinellis.basic.views;
/**
* @view
* @opt hide java.*
*
* @match class gr.spinellis.*
* @opt hide
*
* @match class gr.spinellis.basic.*
* @opt !hide
* @opt attributes
* @opt nodefontsize 16
* @opt nodefillcolor yellow

View File

@ -1,4 +1,4 @@
package gr.spinellis.views;
package gr.spinellis.basic.views;
/**
* @view

View File

@ -1,12 +1,12 @@
package gr.spinellis.views;
package gr.spinellis.basic.views;
/**
* @view
*
* @opt nodefillcolor LightGray
* @match class gr.spinellis.product.Product
* @match class gr.spinellis.basic.product.Product
* @opt attributes
* @match class gr.spinellis.product.Category
* @match class gr.spinellis.basic.product.Category
* @opt nodefillcolor brown
*/
public class ViewChildOverride extends ViewAbstract {

View File

@ -1,8 +1,11 @@
package gr.spinellis.views;
package gr.spinellis.basic.views;
/**
* @view
* @opt hide
*
* @match class (gr.spinellis.basic.*|java.*)
* @opt !hide
* @match class .*
* @opt nodefillcolor gray
* @match class gr.spinellis.*

View File

@ -1,10 +1,10 @@
package gr.spinellis.views;
package gr.spinellis.basic.views;
/**
* @view
* @opt hide
*
* @match class gr.spinellis.product.*
* @match class gr.spinellis.basic.product.*
* @opt !hide
* @opt attributes
*/

View File

@ -0,0 +1,48 @@
package gr.spinellis.context.classes;
import javax.swing.JComponent;
class ABaseClass {
}
public class A extends ABaseClass {
B b;
JComponent component;
public E getChild() {};
}
class B {
C c;
}
/**
* Linked indirectly, won't be rendered
*/
class C {
}
class D {
A a;
}
class E {
}
class ASubclass extends A {
}
class AClient {
public void compute(A a);
}
/**
* This won't be rendererd since it's not linked to the A
*/
class AloneInTheDark {
}

View File

@ -0,0 +1,17 @@
package gr.spinellis.context.views;
/**
* @view
* @opt hide
* @opt inferrel
* @opt inferdep
*
* @match context gr.spinellis.context.classes.A
* @opt !hide
* @match class gr.spinellis.context.classes.A
* @opt nodefillcolor lemonchiffon
*/
public class ViewContext {
}

View File

@ -0,0 +1,17 @@
package gr.spinellis.iface.classes;
import java.io.Serializable;
public interface Face {}
interface SubFace extends Face, Serializable {}
interface SubSubFace extends SubFace {}
interface Independent extends Serializable {}
class DirectImplementor implements Face {}
class FarImplementor implements SubSubFace {}
class NonCompliant {}

View File

@ -0,0 +1,16 @@
package gr.spinellis.iface.views;
/**
* @view
*
* @match class .*
* @opt hide
* @match interface gr.spinellis.iface.classes.Face
* @opt !hide
* @match class gr.spinellis.iface.classes.Face
* @opt nodefillcolor lemonchiffon
*/
public class ViewInterfaces {
}

View File

@ -1,12 +0,0 @@
package gr.spinellis.invoice;
import gr.spinellis.product.*;
/**
* @assoc * - 1 gr.spinellis.product.Product
*/
public class InvoiceItem {
public Product product;
public int quantity;
}

View File

@ -0,0 +1,15 @@
package gr.spinellis.subclass.classes;
import java.io.Serializable;
public class Super {}
class SubOne extends Super {}
class SubTwo extends Super {}
class SubOneOne extends SubOne {}
class SubOneTwo extends SubOne {}
class Alone {}

View File

@ -0,0 +1,16 @@
package gr.spinellis.subclass.views;
/**
* @view
*
* @match class .*
* @opt hide
* @match subclass gr.spinellis.subclass.classes.Super
* @opt !hide
* @match class gr.spinellis.subclass.classes.Super
* @opt nodefillcolor lemonchiffon
*/
public class ViewSubclasses {
}

View File

@ -1,8 +0,0 @@
package gr.spinellis.views;
/**
* @view
* @opt hide java.*
*/
public class ViewAll {
}

View File

@ -1,13 +0,0 @@
package gr.spinellis.views;
/**
* @view
* @opt hide java.*
*
* @match class gr.spinellis.*
* @opt attributes
* @opt operations
* @opt types
*/
public class ViewAllDetailed {
}