public class Invoke extends Object implements Serializable
Constructor and Description |
---|
Invoke() |
Invoke(InvokeAtType type,
Integer pass,
String method,
List<Argument> arguments) |
Modifier and Type | Method and Description |
---|---|
void |
addArgument(Argument vArgument) |
void |
addArgument(int index,
Argument vArgument) |
void |
deletePass() |
Enumeration<Argument> |
enumerateArgument()
Method enumerateArgument.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Argument[] |
getArgument()
Method getArgument.Returns the contents of the collection in an Array.
|
Argument |
getArgument(int index)
Method getArgument.
|
List<Argument> |
getArgumentCollection()
Method getArgumentCollection.Returns a reference to '_argumentList'.
|
int |
getArgumentCount()
Method getArgumentCount.
|
InvokeAtType |
getAt()
Returns the value of field 'at'.
|
String |
getMethod()
Returns the value of field 'method'.
|
int |
getPass()
Returns the value of field 'pass'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
hasPass()
Method hasPass.
|
Iterator<Argument> |
iterateArgument()
Method iterateArgument.
|
void |
removeAllArgument() |
boolean |
removeArgument(Argument vArgument)
Method removeArgument.
|
Argument |
removeArgumentAt(int index)
Method removeArgumentAt.
|
void |
setArgument(Argument[] vArgumentArray) |
void |
setArgument(int index,
Argument vArgument) |
void |
setArgument(List<Argument> vArgumentList)
Sets the value of '_argumentList' by copying the given Vector.
|
void |
setAt(InvokeAtType at)
Sets the value of field 'at'.
|
void |
setMethod(String method)
Sets the value of field 'method'.
|
void |
setPass(int pass)
Sets the value of field 'pass'.
|
public Invoke()
public Invoke(InvokeAtType type, Integer pass, String method, List<Argument> arguments)
public void addArgument(Argument vArgument) throws IndexOutOfBoundsException
vArgument
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addArgument(int index, Argument vArgument) throws IndexOutOfBoundsException
index
- vArgument
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void deletePass()
public Enumeration<Argument> enumerateArgument()
public boolean equals(Object obj)
public Argument getArgument(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Argument[] getArgument()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Argument> getArgumentCollection()
public int getArgumentCount()
public InvokeAtType getAt()
public String getMethod()
public int getPass()
public boolean hasPass()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public Iterator<Argument> iterateArgument()
public void removeAllArgument()
public boolean removeArgument(Argument vArgument)
vArgument
- public Argument removeArgumentAt(int index)
index
- public void setArgument(int index, Argument vArgument) throws IndexOutOfBoundsException
index
- vArgument
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setArgument(Argument[] vArgumentArray)
vArgumentArray
- public void setArgument(List<Argument> vArgumentList)
vArgumentList
- the Vector to copy.public void setAt(InvokeAtType at)
at
- the value of field 'at'.public void setMethod(String method)
method
- the value of field 'method'.public void setPass(int pass)
pass
- the value of field 'pass'.Copyright © 2017. All rights reserved.