1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 | package Torello.JavaDoc.SyntaxHiLite;
import Torello.Java.StrPrint;
class THROW
{
static final String HORIZ_SEP =
"=============================================================\n";
// throw new P
static String paramsAsStr(
String codeText,
String codeTypeParam,
byte styleNum,
boolean includeLineNumbers
)
{
return
'\n' +
THROW.HORIZ_SEP +
"codeType: " + codeTypeParam + '\n' +
"includeLineNumbers: " + includeLineNumbers + '\n' +
"styleNum: " + styleNum + '\n' +
THROW.HORIZ_SEP +
"codeText:\n" + ((codeText==null)
? "Null CodeText, This Shouldn't be Possible, But it happened.\n"
: (StrPrint.widthHeightAbbrev(codeText, null, 100, 6, true) + '\n')) +
THROW.HORIZ_SEP;
}
}
|