org.jupe.plugin
Class Debug

java.lang.Object
  extended by org.jupe.plugin.Debug

public class Debug
extends java.lang.Object

Used for debugging Builder and Deltavisitor. To check if they correctly react on changes in the source code.

Author:
Emanuel Thomas

Constructor Summary
Debug()
          Default constructor.
 
Method Summary
 void addEntry(int type, int kind, org.eclipse.core.resources.IResource resource)
          Add a log entry.
 void clearLog()
          Clears the log list.
 java.util.List<org.jupe.plugin.Debug.LogEntry> getLog()
          Returns the debug log list.
 boolean hasEntry(int type, int kind, java.lang.String name)
          Checks if an corresponding log entry exists.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()
Default constructor.

Method Detail

clearLog

public void clearLog()
Clears the log list.


getLog

public java.util.List<org.jupe.plugin.Debug.LogEntry> getLog()
Returns the debug log list.

Returns:
the log list.

addEntry

public void addEntry(int type,
                     int kind,
                     org.eclipse.core.resources.IResource resource)
Add a log entry.

Parameters:
type - type of ResourceDelta
kind - kind of ResourceDelta
resource - the resource which has changed

hasEntry

public boolean hasEntry(int type,
                        int kind,
                        java.lang.String name)
Checks if an corresponding log entry exists.

Parameters:
type - type of delta
kind - kind of delta
name - name of the resource
Returns:
true if it exists.