|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ph.pr.parser.vbs2java.VBS2JavaBase
public abstract class VBS2JavaBase
Provides helper methods. VB Scripts should be converted to Java classes that extend this class.
TODO Most of this should probably become protected static final ...
com.ph.pr.parser.vb2java.achapps.ACHAppBase
)Field Summary | |
---|---|
java.text.SimpleDateFormat |
dateFormat
|
protected DIM |
False
|
protected DIM |
Nothing
|
protected DIM |
True
|
protected DIM |
Values
|
Constructor Summary | |
---|---|
VBS2JavaBase()
|
Method Summary | |
---|---|
DIM |
add(DIM a,
DIM b)
|
DIM |
and(DIM dim,
DIM dim2)
|
DIM |
append(DIM a,
DIM b)
|
boolean |
bool(DIM d)
|
static CONST |
C(DIM dim)
Shortcut. |
DIM |
cdbl(DIM d)
|
static DIM |
CDbl(DIM dim)
|
DIM |
CInt(DIM dim)
|
DIM |
CLng(DIM dim)
|
DIM |
CreateObject(DIM dim)
|
DIM |
CStr(DIM dim)
|
DIM |
D()
|
private DIM |
D(java.math.BigDecimal num)
|
private DIM |
D(DIM true2)
|
DIM |
D(double d)
|
DIM |
D(int x)
|
static DIM |
D(java.lang.String x)
Shortcut. |
DIM |
DatePart(DIM dim,
DIM date)
|
DIM |
divide(DIM dim,
DIM dim2)
|
DIM |
eq(DIM a,
DIM b)
|
DIM |
Format(DIM data,
DIM pattern)
|
DIM |
FormatDateString(DIM InputString,
DIM pattern)
|
DIM |
gt(DIM x,
DIM y)
|
DIM |
gteq(DIM x,
DIM y)
|
protected int |
i(DIM ii)
|
void |
InitFreeformFields()
|
DIM |
INSTR(DIM list,
DIM letter)
InStr typical usage
if (bool(noteq( INSTR(D("0123456789."),c),D(0)))) s2 = append( c,s2);
|
DIM |
Int(DIM dim)
Gets rid of any decimal places |
DIM |
INT(DIM dim)
|
DIM |
IsEmpty(DIM x)
|
DIM |
IsNull(DIM x)
we dont actually support null, yet |
DIM |
IsNumeric(DIM x)
|
DIM |
Left(DIM x,
DIM len)
|
DIM |
len(DIM inputString)
|
DIM |
Len(DIM str)
|
DIM |
LEN(DIM str)
|
DIM |
lt(DIM x,
DIM y)
|
DIM |
lteq(DIM x,
DIM y)
|
DIM |
LTrim(DIM data)
|
DIM |
Mid(DIM str,
DIM start,
DIM len)
|
DIM |
MID(DIM str,
DIM start,
DIM len)
|
DIM |
multiply(DIM dim,
DIM dim2)
|
private java.math.BigDecimal |
n(DIM a)
|
boolean |
not(boolean b)
|
DIM |
not(DIM d)
|
DIM |
noteq(DIM a,
DIM b)
|
DIM |
or(DIM dim,
DIM dim2)
|
DIM |
Right(DIM outputString,
DIM maxLength)
|
DIM |
RPad(DIM s,
DIM desiredLength)
|
protected void |
rte(boolean b)
|
protected java.lang.String |
s(DIM d)
|
DIM |
String(DIM howMany,
DIM padChar)
|
DIM |
subtract(DIM dim,
DIM dim2)
|
DIM |
Trim(DIM dim)
|
DIM |
TRIM(DIM dim)
|
DIM |
UCase(DIM dim)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.text.SimpleDateFormat dateFormat
protected DIM False
protected DIM Nothing
protected DIM True
protected DIM Values
Constructor Detail |
---|
public VBS2JavaBase()
Method Detail |
---|
public static CONST C(DIM dim)
CONST.CONST(String)
public static DIM CDbl(DIM dim)
public DIM CInt(DIM dim)
public DIM CLng(DIM dim)
public DIM CStr(DIM dim)
public DIM CreateObject(DIM dim)
public DIM D(double d)
public static DIM D(java.lang.String x)
DIM.DIM(String)
public DIM D()
public DIM D(int x)
public DIM DatePart(DIM dim, DIM date)
public DIM INSTR(DIM list, DIM letter)
if (bool(noteq( INSTR(D("0123456789."),c),D(0)))) s2 = append( c,s2);
protected java.lang.String s(DIM d)
public void InitFreeformFields()
public DIM Int(DIM dim)
public DIM IsEmpty(DIM x)
public DIM IsNull(DIM x)
public DIM IsNumeric(DIM x)
public DIM LTrim(DIM data)
public DIM Left(DIM x, DIM len)
protected int i(DIM ii)
public DIM Len(DIM str)
public DIM LEN(DIM str)
public DIM MID(DIM str, DIM start, DIM len)
public DIM Mid(DIM str, DIM start, DIM len)
public DIM RPad(DIM s, DIM desiredLength)
public DIM Right(DIM outputString, DIM maxLength)
outputString
- maxLength
-
public DIM String(DIM howMany, DIM padChar)
public DIM TRIM(DIM dim)
public DIM Trim(DIM dim)
public DIM UCase(DIM dim)
public DIM add(DIM a, DIM b)
private DIM D(java.math.BigDecimal num)
private java.math.BigDecimal n(DIM a)
public DIM and(DIM dim, DIM dim2)
public DIM append(DIM a, DIM b)
public boolean bool(DIM d)
public DIM cdbl(DIM d)
public DIM divide(DIM dim, DIM dim2)
public DIM INT(DIM dim)
public DIM eq(DIM a, DIM b)
private DIM D(DIM true2)
public DIM gt(DIM x, DIM y)
public DIM gteq(DIM x, DIM y)
public DIM len(DIM inputString)
public DIM lt(DIM x, DIM y)
public DIM lteq(DIM x, DIM y)
public DIM multiply(DIM dim, DIM dim2)
public boolean not(boolean b)
public DIM not(DIM d)
public DIM noteq(DIM a, DIM b)
public DIM or(DIM dim, DIM dim2)
public DIM subtract(DIM dim, DIM dim2)
protected void rte(boolean b)
public DIM Format(DIM data, DIM pattern)
public DIM FormatDateString(DIM InputString, DIM pattern)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |