|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.meta.java.lang.CharacterSugar
Untamed: A sweetener defining extra messages that may be e-sent to characters.
Constructor Summary | |
private |
CharacterSugar()
prevent instantiation |
Method Summary | |
static void |
__printOn(char self,
TextWriter out)
Enabled: Unlike Java's Writer.print(char), E's chars print by printing their quoted form. |
static void |
add(char self,
char other)
Enabled: Kludge to force overload resolution to prevent a char from successfully Java-coercing, on method.invoke(), to an int. |
static char |
add(char self,
int delta)
Enabled: |
static int |
asInteger(char self)
Enabled: Unicode character code |
static String |
escaped(char self)
Enabled: Just the part of a character's quoted form that encodes the character. |
static char |
max(char self,
char other)
Enabled: |
static char |
min(char self,
char other)
Enabled: |
static char |
next(char self)
Enabled: |
static char |
previous(char self)
Enabled: |
static int |
subtract(char self,
char other)
Enabled: |
static char |
subtract(char self,
int delta)
Enabled: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private CharacterSugar()
Method Detail |
public static int asInteger(char self)
public static char add(char self, int delta)
public static void add(char self, char other)
public static char subtract(char self, int delta)
public static int subtract(char self, char other)
public static char next(char self)
public static char previous(char self)
public static char min(char self, char other)
public static char max(char self, char other)
public static void __printOn(char self, TextWriter out) throws IOException
If you want to contribute the character itself to a TextWriter, print it by doing out print(""+c)
IOException
public static String escaped(char self)
In other words, everything except the enclosing quote signs.
This is used for composing a quoted character. It is mostly redundant
with org.erights.e.elib.tables.Twine#quote
and
org.erights.e.develop.format.StringHelper#quote
, but this one
outputs a backslash-en for a newline, rather than the newline itself.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |