org.prorefactor.refactor
Class RefactorTarget
java.lang.Object
org.prorefactor.refactor.RefactorTarget
- All Implemented Interfaces:
- java.lang.Comparable
- Direct Known Subclasses:
- NamesTarget, NoundoTarget, RenameSchema.RenameTarget, SubstituteTarget
public class RefactorTarget
- extends java.lang.Object
- implements java.lang.Comparable
Represents a (potential) target for refactoring.
Implements "Comparable" so that this class can be sorted.
Is sorted by filename, linenumber, column, in reverse, so that we can
use Iterator to move through each file, starting at the bottom
of each. (Currently required as a workaround for AST/source-file
line number synchronization after file changes.)
Method Summary |
int |
compareTo(java.lang.Object o)
This class comparison is based on filename, linenumber, and column, in reverse. |
boolean |
equals(java.lang.Object o)
This class equality match is based on class, filename, line, and column. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
changedLines
public int[] changedLines
column
public int column
filename
public java.lang.String filename
linenum
public int linenum
nodeHandle
public int nodeHandle
RefactorTarget
public RefactorTarget()
compareTo
public int compareTo(java.lang.Object o)
- This class comparison is based on filename, linenumber, and column, in reverse.
- Specified by:
compareTo
in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object o)
- This class equality match is based on class, filename, line, and column.
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2008 Joanju Software. All Rights Reserved.