|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.simongibbs.scoof.Specifier
info.simongibbs.scoof.Passage
Represents a bit of code and its origin.
Constructor Summary | |
Passage(java.lang.String code,
int line)
Constructor for Passage. |
Method Summary | |
void |
foldToLowerCase()
STandARDise tO lowercase. |
void |
foldToUpperCase()
STandARDise tO UPPER CASE. |
java.lang.String |
getCode()
Returns the code, which will have been treated. |
static void |
main(java.lang.String[] args)
|
void |
mergeLines()
Merge lines from multiline comments, includes removal of asterisks. |
void |
normaliseLines()
Removes multiple blank lines and strips whitespace from the begining and ends of lines. |
void |
setCode(java.lang.String code)
Supply fresh untreated code. |
void |
squashWhitespace()
Renders code as one line, with whitespace standardised to single spaces. |
void |
squashWhitespace(java.lang.String delim)
Standardises whitespace to singles spaces using supplied set of delimiters. |
java.lang.String |
toString()
Produces CSV style output using treated code. |
static java.lang.String |
xmlEntityEncode(java.lang.String raw)
Handles conversion of a raw string into an XML compatible string by replacing minimum special characters with XML entities. |
Methods inherited from class info.simongibbs.scoof.Specifier |
compareTo, getGenerator, getLine, getOriginalLength, getSource, setGenerator, setLine, setOriginalLength, setSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Passage(java.lang.String code, int line)
Method Detail |
public java.lang.String getCode()
public void setCode(java.lang.String code)
code
- The code to setpublic void foldToUpperCase()
public void foldToLowerCase()
public void mergeLines()
public void squashWhitespace(java.lang.String delim)
public void squashWhitespace()
public void normaliseLines()
public java.lang.String toString()
Object.toString()
public static java.lang.String xmlEntityEncode(java.lang.String raw)
raw
-
String
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |