|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttudresden.ocl.injection.lib.TypeTracer
Contains the log of object types found in a collection.
Additionally provides static methods
traceTypes(String,Collection)
and
traceTypes(String,Map)
to be called from generated code.
These logs are continuesly written to a log file,
see log
for the file format.
Field Summary | |
static char |
ADD_ALL
An askeriks ('*'). |
static char |
ADD_MINIMA
The plus character. |
private String |
attr
|
static char |
COMMENT
The # character. |
private static HashMap |
element_types
|
private static HashMap |
key_types
|
private static PrintStream |
log
The information gathered by all type tracers is written to this stream. |
static char |
REMOVE_MINIMA
The minus character. |
static char |
SEPARATOR
A tabulator. |
static String |
TRACE_TYPES
|
private HashSet |
types_all
Contains all types ever been in the collection. |
private HashSet |
types_minima
Contains the minimal subset of types_all ,
whose subtype extension contains all elements
of types_all . |
Constructor Summary | |
private |
TypeTracer(String attr)
|
Method Summary | |
private void |
traceTypes(Iterator iterator,
String kind)
|
static void |
traceTypes(String attr,
Collection c)
|
private static void |
traceTypes(String attr,
Iterator i,
HashMap types,
String kind)
|
static void |
traceTypes(String attr,
Map m)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String TRACE_TYPES
private static final HashMap element_types
private static final HashMap key_types
private String attr
private HashSet types_all
private HashSet types_minima
types_all
,
whose subtype extension contains all elements
of types_all
.
public static final char SEPARATOR
log
.
public static final char ADD_ALL
log
.
public static final char ADD_MINIMA
log
.
public static final char REMOVE_MINIMA
log
.
public static final char COMMENT
log
.
private static PrintStream log
System.out
.
May also be set by the user code.
A description of the file format follows:
ADD_ALL
types_all
.ADD_MINIMA
types_minima
.REMOVE_MINIMA
types_minima
.COMMENT
JavaAttribute.getFullDocName()
.
The name is terminated by a SEPARATOR
.
SEPARATOR
again.
Class.getName()
.
The element type is terminated by the line end.
Constructor Detail |
private TypeTracer(String attr)
Method Detail |
public static void traceTypes(String attr, Collection c)
public static void traceTypes(String attr, Map m)
private static void traceTypes(String attr, Iterator i, HashMap types, String kind)
private void traceTypes(Iterator iterator, String kind)
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |