public class AbsExtendedPrimitive extends java.lang.Object implements AbsTerm
AbsPrimitive
.Modifier and Type | Field and Description |
---|---|
static int |
ABS_EXTENDED_PRIMITIVE |
ABS_AGENT_ACTION, ABS_AGGREGATE, ABS_CONCEPT, ABS_CONCEPT_SLOT_FUNCTION, ABS_CONTENT_ELEMENT_LIST, ABS_IRE, ABS_PREDICATE, ABS_PRIMITIVE, ABS_VARIABLE, UNKNOWN
Constructor and Description |
---|
AbsExtendedPrimitive(java.lang.String typeName)
Construct an Abstract descriptor to hold a extended-primitive of
the proper type (e.g. java.math.BigInteger...).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
get() |
AbsObject |
getAbsObject(java.lang.String name)
Makes no sense in the case of an AbsExtendedPrimitive that has no attribute
--> Just return null
|
int |
getAbsType() |
int |
getCount()
Makes no sense in the case of an AbsExtendedPrimitive that has no attribute
--> Just return 0
|
java.lang.String[] |
getNames()
Makes no sense in the case of an AbsExtendedPrimitive that has no attribute
--> Just return null
|
java.lang.String |
getTypeName() |
int |
hashCode() |
boolean |
isGrounded()
Tests if this AbsExtendedPrimitive is grounded.
|
void |
set(java.lang.Object value)
Set the value of this AbsExtendedPrimitive to the given value.
|
java.lang.String |
toString() |
static AbsExtendedPrimitive |
wrap(java.lang.Object value)
Create an AbsExtendedPrimitive of type
value.getClass()
containing a given value. |
public static final int ABS_EXTENDED_PRIMITIVE
public AbsExtendedPrimitive(java.lang.String typeName)
typeName
- The name of the type of the extended-primitive held by
this descriptor.public static AbsExtendedPrimitive wrap(java.lang.Object value)
value.getClass()
containing a given value.public void set(java.lang.Object value)
value
- The new valuejava.lang.IllegalArgumentException
- If the type of this AbsExtendedPrimitive
is not correct.public java.lang.Object get()
public java.lang.String getTypeName()
getTypeName
in interface AbsObject
public AbsObject getAbsObject(java.lang.String name)
getAbsObject
in interface AbsObject
name
- The name of the attribute.public java.lang.String[] getNames()
public boolean isGrounded()
isGrounded
in interface AbsObject
true
if the object is grounded.public int getCount()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getAbsType()
getAbsType
in interface AbsObject