com.bluemarsh.jswat.view
Class ClassDefinition

java.lang.Object
  |
  +--com.bluemarsh.jswat.view.ClassDefinition

public class ClassDefinition
extends java.lang.Object

ClassDefinition gives the classname and the start and end line numbers of a class definition.

Author:
Nathan Fiedler

Constructor Summary
ClassDefinition(java.lang.String name, int begin, int end)
          Constructs a ClassDefinition object with the given name.
 
Method Summary
 int getBeginLine()
          Get the line where the class definition begins.
 java.lang.String getClassName()
          Get the name of the class definition.
 int getEndLine()
          Get the line where the class definition ends.
 void setClassName(java.lang.String cname)
          Set the name of the class definition.
 java.lang.String toString()
          Return a String representation of this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassDefinition

public ClassDefinition(java.lang.String name,
                       int begin,
                       int end)
Constructs a ClassDefinition object with the given name.
Parameters:
name - name of the class.
begin - first line of the class.
end - last line of the class.
Method Detail

getBeginLine

public int getBeginLine()
Get the line where the class definition begins.
Returns:
beginning line.

getClassName

public java.lang.String getClassName()
Get the name of the class definition.
Returns:
class name.

getEndLine

public int getEndLine()
Get the line where the class definition ends.
Returns:
ending line.

setClassName

public void setClassName(java.lang.String cname)
Set the name of the class definition.
Parameters:
cname - name of the class.

toString

public java.lang.String toString()
Return a String representation of this.
Overrides:
toString in class java.lang.Object