|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jml2b.util.Profiler jml2b.structure.jml.Exsures
This class implements an exsures clause, that is an exception type, a field corresponding to the exception and a property.
Field Summary |
Fields inherited from interface jml2b.link.Linkable |
STATE_LINKED, STATE_LINKED_STATEMENTS, STATE_LINKED_TYPE_CHECKED, STATE_UNLINKED |
Constructor Summary | |
Exsures(Type t,
java.lang.String name,
Expression s)
Constructs an exsure clause. |
Method Summary | |
java.lang.Object |
clone()
|
Type |
getExceptionType()
Returns the type of the exception. |
Expression |
getExpression()
Returns the property ensured by this exsures clause. |
static void |
getExsures(java.lang.String str,
java.util.Vector v)
Stores the exsures clauses corresponding to str into
v . |
Field |
getField()
Returns the field declared into the exsures clause. |
Exsures |
instancie()
Instancie the clause. |
void |
link(IJml2bConfiguration config,
LinkContext c)
|
int |
linkStatements(IJml2bConfiguration config,
LinkContext c)
|
void |
processIdent()
Collects all the indentifier of the clause to give them an index in the identifer array. |
Exsures |
renameParam(Parameters signature,
Parameters newSignature)
|
void |
setParsedItem(ParsedItem pi)
|
java.lang.String |
toJava(int indent)
|
Type |
typeCheck(IJml2bConfiguration config,
LinkContext c)
|
Methods inherited from class jml2b.util.Profiler |
runGC |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Exsures(Type t, java.lang.String name, Expression s)
t
- The type of the exceptionname
- The name of the thrown exception in the property. It can be
null
, meaning that the exception is not nameds
- The ensured propertyMethod Detail |
public static void getExsures(java.lang.String str, java.util.Vector v) throws Jml2bException
str
into
v
.
str
- the string that should be parsed.v
- the vector where the resulting exsures are stored.
Jml2bException
public java.lang.Object clone()
public void link(IJml2bConfiguration config, LinkContext c) throws Jml2bException
link
in interface Linkable
Jml2bException
public int linkStatements(IJml2bConfiguration config, LinkContext c) throws Jml2bException
linkStatements
in interface Linkable
Jml2bException
public Type typeCheck(IJml2bConfiguration config, LinkContext c) throws Jml2bException
typeCheck
in interface TypeCheckable
Jml2bException
public void processIdent()
jml2b.pog.IdentifierResolver#bIdents
public Exsures instancie()
public Exsures renameParam(Parameters signature, Parameters newSignature)
public void setParsedItem(ParsedItem pi)
public Field getField()
exceptionField
public Type getExceptionType()
exceptionType
public Expression getExpression()
expression
public java.lang.String toJava(int indent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |