Methods Summary |
---|
public void | advance()
indent++;
|
public void | close()
if( stream != null ) stream.close();
|
public void | closeObject()
out(")");
|
private java.lang.String | internalTab()
String s = "";
for( int i = 0; i < indent; i++ ) {
s += "\t";
}
return s;
|
public boolean | isString(java.lang.String s)
if ( s!=null && s.indexOf('\"")>=0 )
return true;
//if( s.startsWith("\"") && s.endsWith("\"") ) return true;
return false;
|
public java.lang.String | makeBooleanString(boolean b)
if(b) return "TRUE";
return "FALSE";
|
public java.lang.String | makeLongString(java.lang.String s)!!! needs correction
String res = "\n|";
if( s != null ) {
for( int i = 0; i < s.length(); i++ ) {
if( s.charAt(i) == '\n" ) res += "\n|";
else res += s.charAt(i);
}
}
return res;
|
public java.lang.String | makeRose98StyleQualifiedName(java.lang.String s)Replaces the '.' with '::' in s
String result = "";
for( int i = 0; i < s.length(); i++ ) {
if( s.charAt(i) == '." ) result += "::";
else result += s.charAt(i);
}
return result;
|
public java.lang.String | makeStateString(java.lang.String s)
String result = "";
for( int i = 0; i < s.length(); i++ ) {
if( s.charAt(i) == '." ) result += ":";
else result += s.charAt(i);
}
return result;
|
public java.lang.String | makeString(java.lang.String s)
if( s != null ) return "\"" + s + "\"";
return "\"\"";
|
public java.lang.String | makeString()
return makeString(null);
|
public void | newline()
out("");
|
public void | out(java.lang.String outstring)
if( stream != null ) stream.print( internalTab() + outstring + "\n" );
|
public void | println(java.lang.String s)
stream.print( s + "\n" );
|
public java.lang.String | replaceQuotationMarks(java.lang.String s)
String result = "";
for( int i = 0; i < s.length(); i++ ) {
if( s.charAt(i) == '\"" ) result += "'";
else result += s.charAt(i);
}
return result;
|
public void | retreat()
indent--;
|
public java.lang.String | tab()
return "\t";
|