public final class InitiallyClauseImpl extends Object implements InitiallyClause
| Modifier and Type | Field and Description |
|---|---|
private String |
displayName |
private KeYJavaType |
kjt |
private String |
name |
private Term |
originalInv |
private ParsableVariable |
originalSelfVar |
private PositionedString |
originalSpec |
private VisibilityModifier |
visibility |
| Constructor and Description |
|---|
InitiallyClauseImpl(String name,
String displayName,
KeYJavaType kjt,
VisibilityModifier visibility,
Term inv,
ParsableVariable selfVar,
PositionedString originalSpec)
Creates a class invariant.
|
| Modifier and Type | Method and Description |
|---|---|
Term |
getClause(ParsableVariable selfVar,
TermServices services)
Returns the formula without implicit all-quantification over
the receiver object.
|
String |
getDisplayName()
Returns the displayed name.
|
KeYJavaType |
getKJT()
Returns the KeYJavaType representing the class/interface to which the
specification element belongs.
|
String |
getName()
Returns the unique internal name of the specification element.
|
PositionedString |
getOriginalSpec() |
private Map<Operator,Operator> |
getReplaceMap(ParsableVariable selfVar,
TermServices services) |
VisibilityModifier |
getVisibility()
Returns the visibility of the invariant (null for default visibility)
|
InitiallyClause |
setKJT(KeYJavaType newKjt) |
String |
toString() |
private final String name
private final String displayName
private final KeYJavaType kjt
private final VisibilityModifier visibility
private final Term originalInv
private final ParsableVariable originalSelfVar
private final PositionedString originalSpec
public InitiallyClauseImpl(String name, String displayName, KeYJavaType kjt, VisibilityModifier visibility, Term inv, ParsableVariable selfVar, PositionedString originalSpec)
name - the unique internal name of the invariantdisplayName - the displayed name of the invariantkjt - the KeYJavaType to which the invariant belongsvisibility - the visibility of the invariant
(null for default visibility)inv - the invariant formula itselfselfVar - the variable used for the receiver objectprivate Map<Operator,Operator> getReplaceMap(ParsableVariable selfVar, TermServices services)
public String getName()
SpecificationElementgetName in interface SpecificationElementpublic String getDisplayName()
SpecificationElementgetDisplayName in interface SpecificationElementpublic KeYJavaType getKJT()
SpecificationElementgetKJT in interface SpecificationElementpublic Term getClause(ParsableVariable selfVar, TermServices services)
InitiallyClausegetClause in interface InitiallyClausepublic PositionedString getOriginalSpec()
getOriginalSpec in interface InitiallyClausepublic VisibilityModifier getVisibility()
SpecificationElementgetVisibility in interface SpecificationElementpublic InitiallyClause setKJT(KeYJavaType newKjt)
setKJT in interface InitiallyClause