- All Implemented Interfaces:
FieldI, Serializable
- Enclosing class:
ExtDocsTest
public static class ExtDocsTest.StringField
extends Object
implements FieldI
A simple implementation of a string field
- See Also:
-
-
Constructor Summary
Constructors
-
Method Summary
Add two members of the field.
Divides two members of the field.
Get the multiplicative identity for this field.
Get the additive identity for this field
The modulus of two members of the field.
Multiplies two members of the field.
The negation -x of an element.
Subtract two members of the field.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StringField
public StringField()
-
Method Details
-
add
Description copied from interface: FieldI
Add two members of the field.
- Specified by:
add in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
eq
Description copied from interface: FieldI
Equals
- Specified by:
eq in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
ne
Description copied from interface: FieldI
Not Equals
- Specified by:
ne in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
sub
Description copied from interface: FieldI
Subtract two members of the field.
- Specified by:
sub in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
neg
Description copied from interface: FieldI
The negation -x of an element.
- Specified by:
neg in interface FieldI
- Parameters:
l - the argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
mul
Description copied from interface: FieldI
Multiplies two members of the field.
- Specified by:
mul in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
div
Description copied from interface: FieldI
Divides two members of the field.
- Specified by:
div in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
mod
Description copied from interface: FieldI
The modulus of two members of the field.
- Specified by:
mod in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
pow
Description copied from interface: FieldI
The power operator.
- Specified by:
pow in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
gt
Description copied from interface: FieldI
Greater than
- Specified by:
gt in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
ge
Description copied from interface: FieldI
Greater or equal to
- Specified by:
ge in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
lt
Description copied from interface: FieldI
Less than
- Specified by:
lt in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
le
Description copied from interface: FieldI
Less than or equals to
- Specified by:
le in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
and
Description copied from interface: FieldI
Logical and.
- Specified by:
and in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
or
Description copied from interface: FieldI
Logical or.
- Specified by:
or in interface FieldI
- Parameters:
l - left-hand argument
r - right-hand argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
not
Description copied from interface: FieldI
Logical not.
- Specified by:
not in interface FieldI
- Parameters:
l - argument
- Returns:
- an object representing the result or null if it can not be evaluated.
-
getOne
Description copied from interface: FieldI
Get the multiplicative identity for this field.
- Specified by:
getOne in interface FieldI
- Returns:
- object representing one or null if undefined for this field
-
getZero
Description copied from interface: FieldI
Get the additive identity for this field
- Specified by:
getZero in interface FieldI
- Returns:
- object representing zero or null if undefined for this field