|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLString
A reflection of String that implements JMLType.
String,
JMLType| Field Summary | |
static JMLString |
EMPTY
The empty JMLString. |
protected String |
str_
The contents of this object. |
| Constructor Summary | |
JMLString()
Initialize the contents of this object to be the empty string. |
|
JMLString(String s)
Initialize the contents of this object to be the given string. |
|
| Method Summary | |
Object |
clone()
Return a clone of this string. |
int |
compareTo(Object op2)
Compare this to op2, returning a comparison code. |
int |
compareTo(JMLString another)
Compares this to another. |
JMLString |
concat(char c)
Produce a new JMLString that is the concatentation of the JMLString and a char. |
JMLString |
concat(String s)
Produce a new JMLString that is the concatentation of the JMLString and a String. |
JMLString |
concat(JMLString s)
Produce a new JMLString that is the concatentation of two JMLStrings. |
boolean |
equals(Object s)
Tell if these two strings are equal. |
boolean |
equalsIgnoreCase(String another)
Are these strings equal, except for case? |
boolean |
equalsIgnoreCase(JMLString another)
Are these strings equal, except for case? |
int |
hashCode()
Return a hash code for this object. |
String |
toString()
Return theString. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected String str_
public static final JMLString EMPTY
JMLString()| Constructor Detail |
public JMLString()
EMPTY
public JMLString(String s)
throws IllegalArgumentException
IllegalArgumentException| Method Detail |
public Object clone()
clone in interface JMLTypeclone in class Object
public int compareTo(Object op2)
throws ClassCastException,
NullPointerException
compareTo in interface JMLComparableop2 - the object this is compared to.
ClassCastException - when o is not a JMLString.
NullPointerException - when o is null.equals(Object),
compareTo(JMLString)public int compareTo(JMLString another)
equals(Object),
compareTo(Object)public boolean equals(Object s)
equals in interface JMLTypeequals in class ObjectequalsIgnoreCase(String),
equalsIgnoreCase(JMLString),
compareTo(Object),
compareTo(JMLString)public boolean equalsIgnoreCase(JMLString another)
equals(java.lang.Object),
equalsIgnoreCase(String),
compareTo(Object),
compareTo(JMLString)public boolean equalsIgnoreCase(String another)
equals(java.lang.Object),
equalsIgnoreCase(JMLString),
compareTo(Object),
compareTo(JMLString)public int hashCode()
hashCode in interface JMLTypehashCode in class Objectpublic String toString()
toString in class Objectpublic JMLString concat(JMLString s)
public JMLString concat(String s)
public JMLString concat(char c)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||