Class ClassRefactor
java.lang.Object
org.apache.tapestry5.versionmigrator.ClassRefactor
Class that represents information about one class being renamed and/or moved
between artifacts (JARs) and/or packages.
-
Constructor Summary
ConstructorsConstructorDescriptionClassRefactor
(String newClassName, String oldClassName, String sourceArtifact, String destinationArtifact) Constructor for classes being moved from one artifact to another and possibly being renamed or moved between packages. -
Method Summary
Modifier and TypeMethodDescriptionReturns the artifact where the class is now located.Returns the new fully-qualified class name.Returns the new package location.Returns the old fully-qualified class name.Returns the simple old class name.Returns the artifact where the class was located.boolean
Returns whether the class is internal or not.boolean
Returns whether the class was moved between artifacts.boolean
Returns whether the class had its fully qualified class name changed.toString()
-
Constructor Details
-
ClassRefactor
public ClassRefactor(String newClassName, String oldClassName, String sourceArtifact, String destinationArtifact) Constructor for classes being moved from one artifact to another and possibly being renamed or moved between packages.
-
-
Method Details
-
getNewClassName
Returns the new fully-qualified class name. -
getOldClassName
Returns the old fully-qualified class name. -
getSourceArtifact
Returns the artifact where the class was located. -
getDestinationArtifact
Returns the artifact where the class is now located. -
isMovedBetweenArtifacts
Returns whether the class was moved between artifacts. -
isRenamed
Returns whether the class had its fully qualified class name changed. This includes package changes. -
toString
-
getSimpleOldClassName
Returns the simple old class name. -
isInternal
Returns whether the class is internal or not. -
getNewPackageName
Returns the new package location.
-