Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hartmath.expression
Class HString  view HString download HString.java

java.lang.Object
  extended bycom.hartmath.expression.HExpression
      extended bycom.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:
isMember in interface HObject
Overrides:
isMember in class HExpression

isHeadMember

public boolean isHeadMember(HSymbol sym)
Method Declaration.

Specified by:
isHeadMember in interface HObject
Overrides:
isHeadMember in class HExpression

toString

public java.lang.String toString()
Transform this in a String object


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:
less in interface HObject
Overrides:
less in class HExpression

greater

public boolean greater(com.hartmath.lib.Session session,
                       java.lang.Object obj)
Method Declaration.

Specified by:
greater in interface HObject
Overrides:
greater in class HExpression

hierarchy

public int hierarchy()
Returns an specific integer value for each class in the math-objects hierarchy

Specified by:
hierarchy in interface HObject
Overrides:
hierarchy in class HExpression

head

public HSymbol head()
Method Declaration.

Specified by:
head in interface HObject
Overrides:
head in class HExpression