| org.acm.seguin.refactor.type.TypeChangeVisitor org.acm.seguin.refactor.EliminatePackageImportVisitor
EliminatePackageImportVisitor | public class EliminatePackageImportVisitor extends TypeChangeVisitor (Code) | | Description of the Class
author: Chris Seguin |
EliminatePackageImportVisitor | public EliminatePackageImportVisitor(ComplexTransform complex)(Code) | | Constructor for the EliminatePackageImportVisitor object
Parameters: complex - Description of Parameter |
addFilterClass | public void addFilterClass(String name)(Code) | | Adds a feature to the FilterClass attribute of the
EliminatePackageImportVisitor object
Parameters: name - The feature to be added to the FilterClass attribute |
addRenamingTransforms | protected void addRenamingTransforms(ComplexTransform refactoring, FileSummary node, String className)(Code) | | Gets the RenamingTransform
Parameters: refactoring - The feature to be added to the RenamingTransformsattribute Parameters: node - The feature to be added to the RenamingTransformsattribute Parameters: className - The feature to be added to the RenamingTransformsattribute |
getAppropriateClasses | protected LinkedList getAppropriateClasses(FileSummary node)(Code) | | Gets the list of classes to iterate over
Parameters: node - Description of Parameter The list |
getCurrentPackage | protected String getCurrentPackage()(Code) | | Return the current package
the current package of the class |
getFileSpecificTransform | protected TransformAST getFileSpecificTransform(FileSummary summary)(Code) | | Gets the File Specific Transform
Parameters: summary - Description of Parameter The FileSpecificTransform value |
getNewFile | protected File getNewFile(FileSummary node)(Code) | | Gets the reference to the file where the refactored output should be sent
Parameters: node - Description of Parameter The NewFile value |
getNewImports | protected AddImportTransform getNewImports(FileSummary node, String className)(Code) | | Gets the New Imports transform
Parameters: node - Description of Parameter Parameters: className - Description of Parameter The NewImports value |
preconditions | protected boolean preconditions(FileSummary summary)(Code) | | Checks any preconditions
Parameters: summary - Description of Parameter Description of the Returned Value |
setPackageSummary | public void setPackageSummary(PackageSummary summary)(Code) | | Sets the Package attribute of the EliminatePackageImportVisitor object
Parameters: summary - The new Package value |
Methods inherited from org.acm.seguin.refactor.type.TypeChangeVisitor | abstract protected void addRenamingTransforms(ComplexTransform refactoring, FileSummary node, String className)(Code)(Java Doc) abstract protected LinkedList getAppropriateClasses(FileSummary node)(Code)(Java Doc) abstract protected String getCurrentPackage()(Code)(Java Doc) abstract protected TransformAST getFileSpecificTransform(FileSummary summary)(Code)(Java Doc) abstract protected File getNewFile(FileSummary node)(Code)(Java Doc) abstract protected AddImportTransform getNewImports(FileSummary node, String className)(Code)(Java Doc) abstract protected RemoveImportTransform getRemoveImportTransform(ImportSummary node)(Code)(Java Doc) protected State getState(boolean foundImport, FileSummary node, String className)(Code)(Java Doc) protected boolean preconditions(FileSummary summary)(Code)(Java Doc) public Object visit(Summary node, Object data)(Code)(Java Doc) public Object visit(FileSummary node, Object data)(Code)(Java Doc) public Object visit(ImportSummary node, Object data)(Code)(Java Doc) public Object visit(TypeSummary node, Object data)(Code)(Java Doc) public Object visit(MethodSummary node, Object data)(Code)(Java Doc) public Object visit(FieldSummary node, Object data)(Code)(Java Doc) public Object visit(ParameterSummary node, Object data)(Code)(Java Doc) public Object visit(LocalVariableSummary node, Object data)(Code)(Java Doc) public Object visit(VariableSummary node, Object data)(Code)(Java Doc) public Object visit(TypeDeclSummary node, Object data)(Code)(Java Doc) public Object visit(MessageSendSummary node, Object data)(Code)(Java Doc) public Object visit(FieldAccessSummary node, Object data)(Code)(Java Doc)
|
|
|