|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.token.Register
public class Register
| Field Summary | |
|---|---|
static java.lang.String[] |
REGISTER_NAMES
Accessible register names. |
static int[] |
REGISTER_VALUES
Accessible register values. |
| Constructor Summary | |
|---|---|
Register(int ordinal)
Create a new instance of this class. |
|
Register(TestOn on)
Create a new instance of this class. |
|
| Method Summary | |
|---|---|
boolean |
canBePreempted()
Return true if the associated value can be evaluated without ability context. |
static Register |
deserialize(java.io.InputStream input)
Read and return the enum from the given inputstream. |
static Register |
deserialize(int ordinal)
Read and return the enum from the given inputstream. |
TestOn |
getTargetable()
Return the component associated to this register. |
int |
getValue(Ability ability,
Targetable tested,
ContextEventListener context,
int index)
Returns the integer value of this expression |
boolean |
isGlobal()
Is this register is plugged on a set of targetable component. |
boolean |
isTargetable()
Is this register is plugged on a targetable component. |
int |
ordinal()
Return the ID of this register. |
void |
serialize(java.io.OutputStream out)
Write this enum to the given outputstream. |
java.lang.String |
toString()
|
static Register |
valueOfXsd(java.lang.String xsdName)
Return null of enum value corresponding to the given Xsd name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] REGISTER_NAMES
public static final int[] REGISTER_VALUES
REGISTER_NAMES's
order.
| Constructor Detail |
|---|
public Register(TestOn on)
on - public Register(int ordinal)
ordinal - | Method Detail |
|---|
public int getValue(Ability ability,
Targetable tested,
ContextEventListener context,
int index)
ability - is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.tested - the tested cardcontext - is the context attached to this test.index - the index value access.
public boolean isTargetable()
public boolean isGlobal()
public void serialize(java.io.OutputStream out)
out - the stream ths enum would be written.
public static Register deserialize(java.io.InputStream input)
throws java.io.IOException
input - the stream containing the enum to read.
java.io.IOException - If some other I/O error occurspublic static Register deserialize(int ordinal)
ordinal - the key.
public static Register valueOfXsd(java.lang.String xsdName)
xsdName - the Xsd name of this Register.
public int ordinal()
public TestOn getTargetable()
public boolean canBePreempted()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||