public class ExpectationImpl extends Object implements ModifiableExpectation
Constructor and Description |
---|
ExpectationImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ExpectationVisitor expectationVisitor,
boolean available)
accepts a visitor
|
boolean |
canMatch() |
Action |
getAction() |
Expression[] |
getArguments() |
String |
getId() |
String |
getMethod() |
Multiplicity |
getMultiplicity() |
boolean |
isSatisfied() |
void |
setAction(Action action) |
void |
setArguments(Expression[] argumentConstrants) |
void |
setId(String id) |
void |
setMethod(String method) |
void |
setMultiplicity(Multiplicity multiplicity) |
public void setId(String id)
setId
in interface ModifiableExpectation
constraint
- public String getId()
getId
in interface Expectation
public void setMethod(String method)
setMethod
in interface ModifiableExpectation
constraint
- public String getMethod()
getMethod
in interface Expectation
public void setMultiplicity(Multiplicity multiplicity)
setMultiplicity
in interface ModifiableExpectation
multiplicity
- public Multiplicity getMultiplicity()
getMultiplicity
in interface Expectation
public void setArguments(Expression[] argumentConstrants)
setArguments
in interface ModifiableExpectation
argumentConstrants
- public Expression[] getArguments()
getArguments
in interface Expectation
public void setAction(Action action)
setAction
in interface ModifiableExpectation
action
- The action to set.public Action getAction()
getAction
in interface Expectation
public boolean accept(ExpectationVisitor expectationVisitor, boolean available)
Visitable
public boolean canMatch()
public boolean isSatisfied()
isSatisfied
in interface Visitable
Copyright © 2005-2013 Agical AB. All Rights Reserved.