Class StringField
- java.lang.Object
-
- com.singularsys.extensions.field.implementations.AbstractComparativeField
-
- com.singularsys.extensions.field.implementations.StringField
-
- All Implemented Interfaces:
FieldI,java.io.Serializable
public final class StringField extends AbstractComparativeField
String concatenation, and comparison- Author:
- Richard Morris
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectadd(java.lang.Object l, java.lang.Object r)Add two members of the field.java.lang.Booleanand(java.lang.Object l, java.lang.Object r)Not implemented for this field.java.lang.Integercmp(java.lang.Object l, java.lang.Object r)Uses String.compareTo(String)java.lang.Objectdiv(java.lang.Object l, java.lang.Object r)Not implemented for this field.java.lang.ObjectgetOne()Not defined for this fieldjava.lang.ObjectgetZero()Not defined for this fieldjava.lang.Objectmod(java.lang.Object l, java.lang.Object r)Not implemented for this field.java.lang.Objectmul(java.lang.Object l, java.lang.Object r)Not implemented for this field.java.lang.Objectneg(java.lang.Object l)The negation -x of an element.java.lang.Booleannot(java.lang.Object l)Not implemented for this field.java.lang.Booleanor(java.lang.Object l, java.lang.Object r)Not implemented for this field.java.lang.Objectpow(java.lang.Object l, java.lang.Object r)Not implemented for this field.java.lang.Objectsub(java.lang.Object l, java.lang.Object r)Subtract two members of the field.
-
-
-
Method Detail
-
add
public java.lang.Object add(java.lang.Object l, java.lang.Object r) throws EvaluationExceptionDescription copied from interface:FieldIAdd two members of the field.- Parameters:
l- left hand argumentr- right hand argument- Returns:
- an object representing the result or null if it can not be evaluated.
- Throws:
EvaluationException- on error
-
sub
public java.lang.Object sub(java.lang.Object l, java.lang.Object r) throws EvaluationExceptionDescription copied from interface:FieldISubtract two members of the field.- Parameters:
l- left hand argumentr- right hand argument- Returns:
- null always
- Throws:
EvaluationException- on error
-
neg
public java.lang.Object neg(java.lang.Object l) throws EvaluationExceptionDescription copied from interface:FieldIThe negation -x of an element.- Parameters:
l- the argument- Returns:
- null always
- Throws:
EvaluationException- on error
-
cmp
public java.lang.Integer cmp(java.lang.Object l, java.lang.Object r) throws EvaluationExceptionUses String.compareTo(String)- Specified by:
cmpin classAbstractComparativeField- Returns:
- -1, 0, 1 if l < r, l==r or l > r respectively, or null if comparison cannot be carried out or
- Throws:
EvaluationException
-
mul
public java.lang.Object mul(java.lang.Object l, java.lang.Object r) throws EvaluationExceptionNot implemented for this field.- Parameters:
l- left hand argumentr- right hand argument- Returns:
- null
- Throws:
EvaluationException- on error
-
div
public java.lang.Object div(java.lang.Object l, java.lang.Object r) throws EvaluationExceptionNot implemented for this field.- Parameters:
l- left hand argumentr- right hand argument- Returns:
- null
- Throws:
EvaluationException- on error
-
mod
public java.lang.Object mod(java.lang.Object l, java.lang.Object r) throws EvaluationExceptionNot implemented for this field.- Parameters:
l- left hand argumentr- right hand argument- Returns:
- null
- Throws:
EvaluationException- on error
-
pow
public java.lang.Object pow(java.lang.Object l, java.lang.Object r) throws EvaluationExceptionNot implemented for this field.- Parameters:
l- left hand argumentr- right hand argument- Returns:
- null
- Throws:
EvaluationException- on error
-
and
public java.lang.Boolean and(java.lang.Object l, java.lang.Object r) throws EvaluationExceptionNot implemented for this field.- Parameters:
l- left hand argument implimentationr- right hand argument- Returns:
- null
- Throws:
EvaluationException- on error
-
or
public java.lang.Boolean or(java.lang.Object l, java.lang.Object r) throws EvaluationExceptionNot implemented for this field.- Parameters:
l- left hand argumentr- right hand argument- Returns:
- null
- Throws:
EvaluationException- on error
-
not
public java.lang.Boolean not(java.lang.Object l) throws EvaluationExceptionNot implemented for this field.- Parameters:
l- argument- Returns:
- null
- Throws:
EvaluationException- on error
-
getOne
public java.lang.Object getOne()
Not defined for this field- Returns:
- null
-
getZero
public java.lang.Object getZero()
Not defined for this field- Returns:
- null
-
-