public final class ClassAxiomImpl extends ClassAxiom
Modifier and Type | Field and Description |
---|---|
private boolean |
isStatic
JML axioms may not be declared static, but they may be used like static specifications.
|
private KeYJavaType |
kjt |
private java.lang.String |
name |
private Term |
originalRep |
private ProgramVariable |
originalSelfVar |
private VisibilityModifier |
visibility |
displayName
Constructor and Description |
---|
ClassAxiomImpl(java.lang.String name,
KeYJavaType kjt,
VisibilityModifier visibility,
Term rep,
ProgramVariable selfVar) |
ClassAxiomImpl(java.lang.String name,
java.lang.String displayName,
KeYJavaType kjt,
VisibilityModifier visibility,
Term rep,
ProgramVariable selfVar) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
KeYJavaType |
getKJT()
Returns the KeYJavaType representing the class/interface to which the
specification element belongs.
|
java.lang.String |
getName()
Returns the unique internal name of the specification element.
|
ImmutableSet<Taclet> |
getTaclets(ImmutableSet<Pair<Sort,IObserverFunction>> toLimit,
Services services)
The axiom as one or many taclets, where the non-defining occurrences of
the passed observers are replaced by their "limited" counterparts.
|
IObserverFunction |
getTarget()
Class axioms do not have targets (in opposition to represents clauses)
|
ImmutableSet<Pair<Sort,IObserverFunction>> |
getUsedObservers(Services services)
Returns the pairs (kjt, obs) for which there is an occurrence of
o.obs in the axiom, where kjt is the type of o (excluding the
defining occurrence of the axiom target).
|
VisibilityModifier |
getVisibility()
Returns the visibility of the invariant (null for default visibility)
|
int |
hashCode() |
java.lang.String |
toString() |
getDisplayName
private final java.lang.String name
private final KeYJavaType kjt
private final VisibilityModifier visibility
private final Term originalRep
private final ProgramVariable originalSelfVar
private final boolean isStatic
public ClassAxiomImpl(java.lang.String name, KeYJavaType kjt, VisibilityModifier visibility, Term rep, ProgramVariable selfVar)
public ClassAxiomImpl(java.lang.String name, java.lang.String displayName, KeYJavaType kjt, VisibilityModifier visibility, Term rep, ProgramVariable selfVar)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getName()
SpecificationElement
public KeYJavaType getKJT()
SpecificationElement
public VisibilityModifier getVisibility()
SpecificationElement
public ImmutableSet<Taclet> getTaclets(ImmutableSet<Pair<Sort,IObserverFunction>> toLimit, Services services)
ClassAxiom
getTaclets
in class ClassAxiom
public ImmutableSet<Pair<Sort,IObserverFunction>> getUsedObservers(Services services)
ClassAxiom
getUsedObservers
in class ClassAxiom
public java.lang.String toString()
toString
in class java.lang.Object
public IObserverFunction getTarget()
getTarget
in class ClassAxiom