|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MethodsTable
This interface defines the methods every MethodInfoStructure
containerimplementation has to provide.
Method Summary | |
---|---|
void |
addAll(MethodsTable ft)
Appends the given MethodsTable to the current one. |
void |
addElement(MethodInfoStructure entry)
Adds the specified MethodInfoStructure at the end of the table. |
void |
addElementAt(MethodInfoStructure entry,
int index,
boolean overwrite)
Adds the specified MethodInfoStructure at the provided position, shifting of
one index any subsequente entry (if exists) iff the overwrite parameter is set
to false , otherwise the current entry at index index will be
overwritten. |
java.lang.Object |
clone()
Clone the current MethodsTable instance. |
void |
fromStream(java.io.DataInputStream dis,
Dna dna,
int methodsCount)
Reads the table from the given stream. |
MethodInfoStructure |
get(int index)
Get a reference to the entry stored at the provided index. |
Dna |
getDna()
Get the Dna container |
int |
getIndexOf(MethodInfoStructure entry)
Return the index of the provided entry, if exists. |
MethodInfoStructure |
remove(int index,
boolean compact)
Removes the entry at the specified index, if exists, resizing the table if compact is true , otherwise the removed entry has to be
replaced by null |
int |
remove(MethodInfoStructure entry,
boolean compact)
Removes the specified entry, if exists, resizing the table if compact is
true , otherwise the removed entry has to be replaced by null |
void |
setDna(Dna dna)
Set the Dna container |
int |
size()
Returns the number of entries stored by the table |
void |
toStream(java.io.DataOutputStream dos)
Writes the table to the given output stream. |
void |
validate()
Perform the validation process over each MethodsTable entry. |
Method Detail |
---|
void addElement(MethodInfoStructure entry)
MethodInfoStructure
at the end of the table.
entry
- The new entry to be addedvoid addElementAt(MethodInfoStructure entry, int index, boolean overwrite) throws java.lang.IndexOutOfBoundsException, java.lang.UnsupportedOperationException
MethodInfoStructure
at the provided position, shifting of
one index any subsequente entry (if exists) iff the overwrite
parameter is set
to false
, otherwise the current entry at index index
will be
overwritten.
entry
- The new entry to be addedindex
- The position at which the entry should be placedoverwrite
- Should any existing entry be overwritten?
java.lang.IndexOutOfBoundsException
- Trying to access to an invalid index
java.lang.UnsupportedOperationException
- The method is not supported by the current implementationMethodInfoStructure get(int index) throws java.lang.IndexOutOfBoundsException
index
- The index to access to
java.lang.IndexOutOfBoundsException
- Tying to acces to an invalid indexint getIndexOf(MethodInfoStructure entry) throws MethodInfoStructureNotFoundException, java.lang.UnsupportedOperationException
entry
- The entry whose index inside the MethodsTable
we are interested in
MethodInfoStructureNotFoundException
- The provided entry is not stored within the current table
java.lang.UnsupportedOperationException
- The method is not supported by the current implementationMethodInfoStructure remove(int index, boolean compact) throws java.lang.IndexOutOfBoundsException, java.lang.UnsupportedOperationException
compact
is true
, otherwise the removed entry has to be
replaced by null
index
- The index of the entry we want to removecompact
- Tells whether the table should be compacted or not
java.lang.IndexOutOfBoundsException
- Tying to acces to an invalid index
java.lang.UnsupportedOperationException
- The method is not supported by the current implementationint remove(MethodInfoStructure entry, boolean compact) throws MethodInfoStructureNotFoundException, java.lang.UnsupportedOperationException
compact
is
true
, otherwise the removed entry has to be replaced by null
entry
- The entry we want to removecompact
- Tells whether the table should be compacted or not
MethodInfoStructureNotFoundException
- The provided entry is not stored within the current table
java.lang.UnsupportedOperationException
- The method is not supported by the current implementationint size()
void addAll(MethodsTable ft)
MethodsTable
to the current one.
ft
- java.lang.Object clone() throws java.lang.CloneNotSupportedException
MethodsTable
instance.
java.lang.CloneNotSupportedException
void fromStream(java.io.DataInputStream dis, Dna dna, int methodsCount) throws MissingDnaContainerException, DnaDeserializationException
dis
- The stream the table should be read fromdna
- The Dna
instance this MethodsTable
belogs tomethodsCount
- The number of expected methods
MissingDnaContainerException
- This exception is thrown iff no valid Dna
instance has been set
DnaDeserializationException
void toStream(java.io.DataOutputStream dos) throws DnaSerializationException
dos
- The OutputStream
DnaSerializationException
void setDna(Dna dna)
Dna
container
dna
- The Dna
containerDna getDna()
Dna
container
Dna
containervoid validate() throws FieldInfoValidationException, InfoStructureAttributeOutOfRangeException, MissingDnaContainerException, MissingCPTableException
MethodsTable
entry.
FieldInfoValidationException
InfoStructureAttributeOutOfRangeException
MissingDnaContainerException
MissingCPTableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |