public class SupportLevelDocumentationGenerator extends java.lang.Object implements ReportConstants
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ALT_OBJECT_PREFIX
Object wrapper type prefix.
|
private static int |
ALT_OBJECT_PREFIX_SIZE
Length of the object prefix.
|
private static java.lang.String |
OBJECT_PREFIX
Object wrapper type prefix.
|
private static int |
OBJECT_PREFIX_SIZE
Length of the object prefix.
|
private static int |
WRAPPER_PREFIX_SIZE
Length of the wrapper type package qualifier.
|
private static java.lang.String |
WRAPPER_TYPE_PREFIX
Wrapper type package qualifier.
|
CVT_LVL_BASIC, CVT_LVL_FULL, CVT_LVL_FULL_RESTR, CVT_LVL_MASK, CVT_LVL_NONE, CVT_LVL_PARTIAL, LVL_UNKNOWN, RT_LVL_BASIC, RT_LVL_FULL, RT_LVL_FULL_RESTR, RT_LVL_MASK, RT_LVL_NONE, RT_LVL_PARTIAL, RT_LVL_STUB, RT_LVL_UNTESTED, SORT_ALL, SORT_NONE, SORT_NOT_LAST, SRC_CODE_BASE, SRC_CODE_CACHE, SRC_SCHEMA, SRC_UNKNOWN
Constructor and Description |
---|
SupportLevelDocumentationGenerator() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatSupportLvl(SupportLevelHelper.Descriptor lvl)
Generate the textile syntax for a table cell contents which describes a support level with the
proper coloring.
|
static java.util.Map<java.lang.String,java.lang.String> |
initNameLookup(java.util.Set<java.lang.Class<? extends _BaseObject_>> legacyClasses)
Create a mapping of fully qualified Java class names to fully qualified legacy class names.
|
static void |
main(java.lang.String[] args)
Command line interface to execute the document generation.
|
static java.lang.String |
readType(LegacyParameter p)
Describe the given data type, objects are reported as their qualified type names.
|
static java.lang.String |
render(LegacyParameter[] parms)
Describe the list of 4GL parameters as a text in the form "mode data_type(, mode datatype)*".
|
static java.lang.String |
render(java.lang.reflect.Type[] parms)
Describe the list of Java parameters as a text in the form "data_type(, datatype)*".
|
static java.lang.String |
reverseType(java.lang.String jtype,
java.util.Map<java.lang.String,java.lang.String> map)
Calculate the legacy type from the Java type.
|
private static final java.lang.String WRAPPER_TYPE_PREFIX
private static final int WRAPPER_PREFIX_SIZE
private static final java.lang.String OBJECT_PREFIX
private static final int OBJECT_PREFIX_SIZE
private static final java.lang.String ALT_OBJECT_PREFIX
private static final int ALT_OBJECT_PREFIX_SIZE
public static java.lang.String reverseType(java.lang.String jtype, java.util.Map<java.lang.String,java.lang.String> map)
jtype
- The Java data type.public static java.lang.String render(LegacyParameter[] parms)
parms
- The parameter list.public static java.lang.String render(java.lang.reflect.Type[] parms)
parms
- The parameter list.public static java.lang.String readType(LegacyParameter p)
p
- The parameter to inspect.public static java.lang.String formatSupportLvl(SupportLevelHelper.Descriptor lvl)
lvl
- The support level to describe.public static java.util.Map<java.lang.String,java.lang.String> initNameLookup(java.util.Set<java.lang.Class<? extends _BaseObject_>> legacyClasses)
legacyClasses
- All classes with legacy annotations.public static void main(java.lang.String[] args)
args
- Ignored.