Package mepk.kernel
Class Abbreviation
java.lang.Object
mepk.kernel.Abbreviation
An abbreviation.
-
Constructor Summary
ConstructorsConstructorDescriptionAbbreviation(Expression abbreviation, Expression expansion, Expression... conditions) Create a new abbreviation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of this abbreviation.Returns the expansion of the abbreviation.Returns the 'normal' variable names used in this abbreviation, so excluding the 'floating' variable names that are only used in the expansion (TODO: What terminology does Ghilbert use here?).
-
Constructor Details
-
Abbreviation
Create a new abbreviation.- Parameters:
abbreviation- the abbreviating expression, must be anAppofVarsexpansion- the expression after expansion, may use more or lessVars than the abbreviationconditions- a (possibly empty) list of conditions under which the abbreviation applies, may only containVars that are in either the abbreviation or the expansion
-
-
Method Details
-
getConstName
Returns the name of this abbreviation.- Returns:
- the name
-
getNormalVarNames
Returns the 'normal' variable names used in this abbreviation, so excluding the 'floating' variable names that are only used in the expansion (TODO: What terminology does Ghilbert use here?).- Returns:
- the names, in order
-
getExpansion
Returns the expansion of the abbreviation.- Returns:
- the expansion
-