public class Helper4ooRexx4Net
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static system.IFormatProvider |
ifpCultureNeutral
Culture neutral
IFormatProvider for allowing to parse and create Rexx decimal numbers using
the point (dot) character for the decimal point. |
static java.lang.String |
version
Version field, major version before dot, date of version after dot.
|
Constructor and Description |
---|
Helper4ooRexx4Net() |
Modifier and Type | Method and Description |
---|---|
static system.Object |
clr_box(java.lang.String typeIndicator,
java.lang.String value)
Create and return an instance of the
typeIndicator Wrapper class representing
the value or turn a java.lang.String into a System.String
and return it. |
static java.lang.Object |
clr_unbox(system.Object o)
Utility method for "oorexx.net" to turn values of
clr primitive types and or System.String
values to plain strings, otherwise returns argument unchanged. |
static java.util.Map |
getCultureNeutralParseMethods()
Returns an unmodifiable
Map of miCultureNeutralParseMethods to
allow inspection and usage. |
static java.util.Map |
getCultureNeutralToStringMethods()
Returns an unmodifiable
Map of miCultureNeutralToStringMethods to
allow inspection and usage. |
static java.lang.String |
getFieldName(system.Type t,
java.lang.String argName)
Searches a field in the supplied type which matches caselessly the supplied needle and returns
the spelling found in the
FieldInfo object. |
static java.lang.String |
getMethodName(system.Type t,
java.lang.String argName)
Searches a method in the supplied type which matches caselessly the supplied needle and returns
the spelling found in the
MethodInfo object. |
static java.util.Map |
getPrimitiveWrapperClasses()
Returns an unmodifiable
Map of tiPrimitiveWrapperClasses to
allow inspection and usage. |
static java.lang.String |
getPropertyName(system.Type t,
java.lang.String argName)
Searches a property in the supplied type which matches caselessly the supplied needle and returns
the spelling found in the
PropertyInfo object. |
static boolean |
isDebug()
Getter method for field
bDebug . |
static boolean |
isVerbose()
Getter method for field
bVerbose . |
static void |
main(java.lang.String[] args)
main method. |
static void |
setDebug(boolean DebugMode)
Setter method for field
bDebug . |
static void |
setVerbose(boolean verboseMode)
Setter method for field
bVerbose . |
public static final java.lang.String version
public static system.IFormatProvider ifpCultureNeutral
IFormatProvider
for allowing to parse and create Rexx decimal numbers using
the point (dot) character for the decimal point. Affects boxing and unboxing of "System.Decimal",
"System.Single" and and "System.Double".public static boolean isVerbose()
bVerbose
.public static void setVerbose(boolean verboseMode)
bVerbose
.verboseMode
- to use from now onpublic static boolean isDebug()
bDebug
.public static void setDebug(boolean DebugMode)
bDebug
.DebugMode
- to use from now onpublic static java.util.Map getPrimitiveWrapperClasses()
Map
of tiPrimitiveWrapperClasses
to
allow inspection and usage.Map
of tiPrimitiveWrapperClasses
public static java.util.Map getCultureNeutralParseMethods()
Map
of miCultureNeutralParseMethods
to
allow inspection and usage.Map
of miCultureNeutralParseMethods
public static java.util.Map getCultureNeutralToStringMethods()
Map
of miCultureNeutralToStringMethods
to
allow inspection and usage.Map
of miCultureNeutralToStringMethods
public static void main(java.lang.String[] args) throws java.io.IOException
main
method.args
- command line arguments, not usedjava.io.IOException
- raised if a problem occurs while initializing the Bridge
.public static java.lang.Object clr_unbox(system.Object o)
clr
primitive types and or System.String
values to plain strings, otherwise returns argument unchanged.o
- a .net object of type system.Object
public static system.Object clr_box(java.lang.String typeIndicator, java.lang.String value)
typeIndicator
Wrapper class representing
the value
or turn a java.lang.String
into a System.String
and return it.typeIndicator
- one of (only capital letters need to be given) "STring" (return the value
as string), or return a boxed value
according to the
following table:
typeIndicator | returns boxed value of type |
---|---|
"BOolean" | "System.Boolean" |
"BYte" | "System.Byte" |
"Char" | "System.Char" |
"DEcimal" | "System.Decimal" |
"DOuble" | "System.Double" |
"I16" | "System.Int16" |
"I32" | "System.Int32" |
"I64" | "System.Int64" |
"INT16" | "System.Int16" |
"INT32" | "System.Int32" |
"INT64" | "System.Int64" |
"SByte" | "System.SByte" |
"SIngle" | "System.Single" |
"STring" | "System.String" |
"UI16" | "System.UInt16" |
"UI32" | "System.UInt32" |
"UI64" | "System.UInt64" |
"UINT16" | "System.UInt16" |
"UINT32" | "System.UInt32" |
"UINT64" | "System.UInt64" |
value
- a string containing the value to be boxedsystem.String
object, null
if
null
was supplied as the value
parameter or the boxed
object.public static java.lang.String getMethodName(system.Type t, java.lang.String argName)
MethodInfo
object.t
- the system.Type
object to look for the method's nameargName
- the name of a method we seeknull
if none was foundpublic static java.lang.String getPropertyName(system.Type t, java.lang.String argName)
PropertyInfo
object.t
- the system.Type
object to look for the property's nameargName
- the name of a property we seeknull
if none was foundpublic static java.lang.String getFieldName(system.Type t, java.lang.String argName)
FieldInfo
object.t
- the system.Type
object to look for the field's nameargName
- the name of a field we seeknull
if none was found