Package classycle
Class CommandLine
- java.lang.Object
-
- classycle.CommandLine
-
- Direct Known Subclasses:
AnalyserCommandLine,DependencyCheckerCommandLine
public abstract class CommandLine extends java.lang.Object- Author:
- Franz-Josef Elmer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]_classFilesprotected StringPatternSequence_patternprotected StringPattern_reflectionPatternprotected boolean_valid
-
Constructor Summary
Constructors Constructor Description CommandLine(java.lang.String[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getClassFiles()Returns all class file descriptors (i.e., class files, directorys, jar files, or zip files).StringPatterngetPattern()Returns the pattern fully qualified class names have to match.StringPatterngetReflectionPattern()Returns the reflection pattern as extracted from the option -reflectionPattern.java.lang.StringgetUsage()Returns the usage of correct command line arguments and options.protected voidhandleOption(java.lang.String argument)booleanisMergeInnerClasses()Returnstrueif the command line option-mergeInnerClassesoccured.booleanisValid()Returns true if the command line arguments and options are valid.
-
-
-
Field Detail
-
_valid
protected boolean _valid
-
_pattern
protected StringPatternSequence _pattern
-
_reflectionPattern
protected StringPattern _reflectionPattern
-
_classFiles
protected java.lang.String[] _classFiles
-
-
Method Detail
-
handleOption
protected void handleOption(java.lang.String argument)
-
getClassFiles
public java.lang.String[] getClassFiles()
Returns all class file descriptors (i.e., class files, directorys, jar files, or zip files).
-
getPattern
public StringPattern getPattern()
Returns the pattern fully qualified class names have to match. The pattern is based on the options -includingClasses and -excludingClasses. If -includingClasses is missing every classes is included which is not excluded. If -excludingClasses is missing no class is excluded.
-
getReflectionPattern
public StringPattern getReflectionPattern()
Returns the reflection pattern as extracted from the option -reflectionPattern.
-
isValid
public boolean isValid()
Returns true if the command line arguments and options are valid.
-
isMergeInnerClasses
public boolean isMergeInnerClasses()
Returnstrueif the command line option-mergeInnerClassesoccured.
-
getUsage
public java.lang.String getUsage()
Returns the usage of correct command line arguments and options.
-
-