|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkorat.finitization.impl.FieldDomain
public abstract class FieldDomain
Field Summary | |
---|---|
protected Class |
classOfField
|
Constructor Summary | |
---|---|
FieldDomain(Class classOfField)
Used for type checking when assigning class domains for this field |
|
FieldDomain(String classOfFieldName)
|
Method Summary | |
---|---|
protected boolean |
checkClassDomainIndex(int index)
|
protected boolean |
checkObjectIndex(int index)
|
abstract ClassDomain |
getClassDomain(int classDomainIndex)
Returns the class domain for the given index primitive types should return null . |
abstract ClassDomain |
getClassDomainFor(int objectIndex)
Finds the class domain for given object index by calling getClassDomainFor(objectIndex) and returns the following
class domain. |
abstract int |
getClassDomainIndexFor(int objectIndex)
Given the index of object in this field domain, returns index of that object in its class domain. |
Class |
getClassOfField()
|
abstract int |
getIndexOfFirstObjectInNextClassDomain(int objectIndex)
|
abstract ClassDomain |
getNextClassDomainFor(int objectIndex)
Finds the class domain for given object index by calling getClassDomainFor(objectIndex) and returns the following
class domain. |
abstract int |
getNumberOfElements()
Number of all elements in this field domain. |
abstract int |
getNumOfClassDomains()
Number of class domains contained in this field domain. |
abstract int |
getSizeOfClassDomain(int classDomainIndex)
Number of object in the class domain which is at a classDomainIndex position in the list of all class domains
within this field domain. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface korat.finitization.IFieldDomain |
---|
isArrayType, isPrimitiveType |
Field Detail |
---|
protected Class classOfField
Constructor Detail |
---|
FieldDomain(Class classOfField)
classOfField
- -
type of the fieldFieldDomain(String classOfFieldName) throws ClassNotFoundException
classOfFieldName
- -
fully qualified name of the Class
ClassNotFoundException
- -
if classOfFieldName is not validMethod Detail |
---|
protected boolean checkClassDomainIndex(int index)
protected boolean checkObjectIndex(int index)
public Class getClassOfField()
getClassOfField
in interface IFieldDomain
public abstract int getClassDomainIndexFor(int objectIndex)
objectIndex
because primitive type field domains
conceptually contain exactly one class domain.
objectIndex
- -
index of object in the field domain
public abstract int getIndexOfFirstObjectInNextClassDomain(int objectIndex)
public abstract int getNumOfClassDomains()
1
.
getNumOfClassDomains
in interface IFieldDomain
IPrimitiveTypeSet
public abstract int getSizeOfClassDomain(int classDomainIndex)
classDomainIndex
position in the list of all class domains
within this field domain.
Primitive types should return -1 if
classDomainIndex
is different than 0, or
getNumberOfElements()
else.
classDomainIndex
- -
class domain index
classDomainIndex
public abstract int getNumberOfElements()
getNumberOfElements
in interface IFieldDomain
public abstract ClassDomain getClassDomain(int classDomainIndex)
null
.
classDomainIndex
- -
the index of the class domain
public abstract ClassDomain getClassDomainFor(int objectIndex)
getClassDomainFor(objectIndex)
and returns the following
class domain.
Primitive types should return null
.
objectIndex
- -
the index of the given object
public abstract ClassDomain getNextClassDomainFor(int objectIndex)
getClassDomainFor(objectIndex)
and returns the following
class domain.
Primitive typess should return null
.
objectIndex
- -
the index of the given object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |