|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tdk.signaturetest.Result
com.sun.tdk.signaturetest.SigTest
com.sun.tdk.signaturetest.Setup
public class Setup
This class creates signature file. The classes in the
signature file are grouped by type, and alphabetized by class name.
The following signature files could be created:
where <options> includes:
-TestURL
<URL>
-FileName
<n>
-Package
<package name>
-PackageWithoutSubpackages
<package>
-Exclude
<package or class name>
-static
-CheckValue
-AllPublic
-Classpath
<path>
-Version
<version>
getProperty("java.version")
.
-Verbose
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.sun.tdk.signaturetest.plugin.PluginAPI |
---|
PluginAPI.InjectionPoint |
Field Summary | |
---|---|
static java.lang.String |
CHECKVALUE_OPTION
|
static java.lang.String |
CLOSEDFILE_OPTION
|
static java.lang.String |
COPYRIGHT_OPTION
|
protected boolean |
isClosedFile
|
protected boolean |
isIgnorableReported
specifies that ignored class names will be reported. |
static java.lang.String |
KEEP_SIGFILE_OPTION
|
static java.lang.String |
NONCLOSEDFILE_OPTION
|
protected java.net.URL |
signatureFile
contains signature file. |
static java.lang.String |
XGENCONSTS_OPTION
|
static java.lang.String |
XREFLECTION_OPTION
|
Fields inherited from class com.sun.tdk.signaturetest.Result |
---|
NO_EXIT |
Fields inherited from interface com.sun.tdk.signaturetest.plugin.PluginAPI |
---|
AFTER_BUILD_MEMBERS, AFTER_CLASS_CORRECTOR, BEFORE_TEST, CLASS_CORRECTOR, IS_CLASS_ACCESSIBLE, ON_CLASS_LOAD |
Constructor Summary | |
---|---|
Setup()
|
Method Summary | |
---|---|
void |
decodeOptions(java.lang.String optionName,
java.lang.String[] args)
|
protected java.lang.String |
getComponentName()
|
protected void |
ignore(java.lang.String message)
ignore class with given message. |
static void |
main(java.lang.String[] args)
runs test in from command line. |
protected boolean |
parseParameters(java.lang.String[] args)
parses parameters and initialize fields as specified by arguments |
void |
run(java.lang.String[] args,
java.io.PrintWriter pw,
java.io.PrintWriter ref)
runs test with the given arguments. |
protected void |
usage()
Prints help text. |
Methods inherited from class com.sun.tdk.signaturetest.SigTest |
---|
addFormat, addInherited, decodeCommonOptions, getClassDescrLoader, getContext, getFileManager, getFilter, getLog, getNumErrors, getNumWarnings, getTransformer, initErrors, isPackageMember, load, loadPlugin, normalizeArrayParaemeters, printErrors, removeUndocumentedAnnotations, setClassDescrLoader, setFilter, setFormat, setLog, setTransformer, setupProblem, storeError, storeWarning, useErasurator |
Methods inherited from class com.sun.tdk.signaturetest.Result |
---|
error, exit, failed, getReason, isPassed, notrun, passed, passed, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLOSEDFILE_OPTION
public static final java.lang.String NONCLOSEDFILE_OPTION
public static final java.lang.String CHECKVALUE_OPTION
public static final java.lang.String XGENCONSTS_OPTION
public static final java.lang.String COPYRIGHT_OPTION
public static final java.lang.String KEEP_SIGFILE_OPTION
public static final java.lang.String XREFLECTION_OPTION
protected java.net.URL signatureFile
protected boolean isClosedFile
protected boolean isIgnorableReported
Constructor Detail |
---|
public Setup()
Method Detail |
---|
public static void main(java.lang.String[] args)
public void run(java.lang.String[] args, java.io.PrintWriter pw, java.io.PrintWriter ref)
protected boolean parseParameters(java.lang.String[] args)
args
- contains arguments required to be parsed.public void decodeOptions(java.lang.String optionName, java.lang.String[] args) throws CommandLineParserException
CommandLineParserException
protected void usage()
usage
in class SigTest
protected java.lang.String getComponentName()
getComponentName
in class SigTest
protected void ignore(java.lang.String message)
message
- given message.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |