|
|||||||||
| Home >> All >> com >> hartmath >> [ expression overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.hartmath.expression
Class HString

java.lang.Objectcom.hartmath.expression.HExpression
com.hartmath.expression.HString
- All Implemented Interfaces:
- HObject
- Direct Known Subclasses:
- HSymbol
- public class HString
- extends HExpression
The HString class represents character strings. This class adopts much of
its functionality from the java.lang.String class
| Field Summary | |
protected java.lang.String |
str
Description of the Field |
| Fields inherited from interface com.hartmath.expression.HObject |
COMPLEXFILEID, COMPLEXID, DOUBLECOMPLEXFILEID, DOUBLECOMPLEXID, DOUBLEFILEID, DOUBLEID, FRACTIONFILEID, FRACTIONID, FUNCTIONFILEID, FUNCTIONID, INTEGERFILEID, INTEGERID, OBJECTID, PATTERNFILEID, PATTERNID, STRINGFILEID, STRINGID, SYMBOLFILEID, SYMBOLID |
| Constructor Summary | |
HString()
Constructs a new empty HString. |
|
HString(char[] value)
Constructs a new HString whose initial value is the specified array of characters. |
|
HString(char[] value,
int offset,
int count)
Constructs a new HString whose initial value is the specified sub array of characters. |
|
HString(java.lang.String value)
Constructs a new HString that is a copy of the specified String. |
|
HString(java.lang.StringBuffer buffer)
|
|
| Method Summary | |
int |
compareTo(HString obj)
Method Declaration. |
boolean |
equals(java.lang.Object obj)
Method Declaration. |
boolean |
greater(com.hartmath.lib.Session session,
java.lang.Object obj)
Method Declaration. |
int |
hashCode()
Returns a hash code value for the object. |
HSymbol |
head()
Method Declaration. |
int |
hierarchy()
Returns an specific integer value for each class in the math-objects hierarchy |
boolean |
isHeadMember(HSymbol sym)
Method Declaration. |
boolean |
isMember(HObject obj)
Method Declaration. |
boolean |
less(com.hartmath.lib.Session session,
java.lang.Object obj)
Method Declaration. |
java.lang.String |
toString()
Transform this in a String object |
| Methods inherited from class com.hartmath.expression.HExpression |
apply, evaluate, isList, isNumber, isRational, matches, precedence, substitute, substitutePattern, toStringBuffer, unequals |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
str
protected java.lang.String str
- Description of the Field
| Constructor Detail |
HString
public HString()
- Constructs a new empty HString.
HString
public HString(java.lang.String value)
- Constructs a new HString that is a copy of the specified String.
HString
public HString(char[] value)
- Constructs a new HString whose initial value is the specified array of
characters.
HString
public HString(char[] value,
int offset,
int count)
- Constructs a new HString whose initial value is the specified sub array of
characters. The length of the new string will be count characters starting
at offset within the specified character array.
HString
public HString(java.lang.StringBuffer buffer)
| Method Detail |
isMember
public boolean isMember(HObject obj)
- Method Declaration.
- Specified by:
isMemberin interfaceHObject- Overrides:
isMemberin classHExpression
isHeadMember
public boolean isHeadMember(HSymbol sym)
- Method Declaration.
- Specified by:
isHeadMemberin interfaceHObject- Overrides:
isHeadMemberin classHExpression
toString
public java.lang.String toString()
- Transform this in a
Stringobject
hashCode
public int hashCode()
- Returns a hash code value for the object. This method is
supported for the benefit of hashtables such as those provided by
java.util.Hashtable.
equals
public boolean equals(java.lang.Object obj)
- Method Declaration.
compareTo
public int compareTo(HString obj)
- Method Declaration.
less
public boolean less(com.hartmath.lib.Session session, java.lang.Object obj)
- Method Declaration.
- Specified by:
lessin interfaceHObject- Overrides:
lessin classHExpression
greater
public boolean greater(com.hartmath.lib.Session session, java.lang.Object obj)
- Method Declaration.
- Specified by:
greaterin interfaceHObject- Overrides:
greaterin classHExpression
hierarchy
public int hierarchy()
- Returns an specific integer value for each class in the math-objects
hierarchy
- Specified by:
hierarchyin interfaceHObject- Overrides:
hierarchyin classHExpression
head
public HSymbol head()
- Method Declaration.
- Specified by:
headin interfaceHObject- Overrides:
headin classHExpression
|
|||||||||
| Home >> All >> com >> hartmath >> [ expression overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC