| java.lang.Object de.uka.ilkd.key.pp.AbbrevMap
AbbrevMap | public class AbbrevMap (Code) | | |
Constructor Summary | |
public | AbbrevMap() Creates a AbbrevMap. |
Method Summary | |
public void | changeAbbrev(Term t, String abbreviation) Changes the abbreviation of t to abbreviation. | public boolean | containsAbbreviation(String s) Returns true if the map contains the abbreviation s. | public boolean | containsTerm(Term t) Returns true if the map contains the term t. | public String | getAbbrev(Term t) Returns the abbreviation mapped to the term t. | public Term | getTerm(String s) Returns the term which is mapped to the abbreviation s, null if no term
is mapped to the abbreviation. | public boolean | isEnabled(Term t) Returns true if the mapping is enabled, which means that the abbreviation may
be used. | public void | put(Term t, String abbreviation, boolean enabled) Associates a Term and its abbreviation in this map.
Parameters: t - a term Parameters: abbreviation - the abbreviation for of this term Parameters: enabled - true if the abbreviation should be used (e.g. | public void | setEnabled(Term t, boolean enabled) |
termstringstringtermtermenabled | protected HashMap termstringstringtermtermenabled(Code) | | HashMaps used to store the mappings from Term to String, String to Term
and Term to Enabled. Enabled is set true if a abbreviation should be used when
printing the term.
|
AbbrevMap | public AbbrevMap()(Code) | | Creates a AbbrevMap.
|
changeAbbrev | public void changeAbbrev(Term t, String abbreviation) throws AbbrevException(Code) | | Changes the abbreviation of t to abbreviation. If the AbbrevMap doesn't
contain t nothing happens.
|
containsAbbreviation | public boolean containsAbbreviation(String s)(Code) | | Returns true if the map contains the abbreviation s.
|
containsTerm | public boolean containsTerm(Term t)(Code) | | Returns true if the map contains the term t.
|
getAbbrev | public String getAbbrev(Term t)(Code) | | Returns the abbreviation mapped to the term t. Returns null if no abbreviation
is mapped to t.
|
getTerm | public Term getTerm(String s)(Code) | | Returns the term which is mapped to the abbreviation s, null if no term
is mapped to the abbreviation.
|
isEnabled | public boolean isEnabled(Term t)(Code) | | Returns true if the mapping is enabled, which means that the abbreviation may
be used.
|
put | public void put(Term t, String abbreviation, boolean enabled) throws AbbrevException(Code) | | Associates a Term and its abbreviation in this map.
Parameters: t - a term Parameters: abbreviation - the abbreviation for of this term Parameters: enabled - true if the abbreviation should be used (e.g. when printing the term), false otherwise. |
setEnabled | public void setEnabled(Term t, boolean enabled)(Code) | | Sets the mapping of the term t to its abbreviation enabled or disabled
Parameters: t - a Term Parameters: enabled - true if the abbreviation of t may be used. |
|
|