| Modifier and Type | Field and Description |
|---|---|
static Name |
NAME |
private Function |
permissionsFor |
| Constructor and Description |
|---|
PermissionLDT(Services services) |
| Modifier and Type | Method and Description |
|---|---|
Function |
getFunctionFor(Operator op,
Services services,
ExecutionContext ec)
returns the function symbol for the given operation
|
Function |
getPermissionsFor() |
Type |
getType(Term t) |
boolean |
hasLiteralFunction(Function f) |
boolean |
isResponsible(Operator op,
Term[] subs,
Services services,
ExecutionContext ec)
returns true if the LDT offers an operation for the given java
operator and the logic subterms
|
boolean |
isResponsible(Operator op,
Term sub,
TermServices services,
ExecutionContext ec)
returns true if the LDT offers an operation for the given
unary java operator and the logic subterms
|
boolean |
isResponsible(Operator op,
Term left,
Term right,
Services services,
ExecutionContext ec)
returns true if the LDT offers an operation for the given
binary java operator and the logic subterms
|
Term |
translateLiteral(Literal lit,
Services services)
translates a given literal to its logic counterpart
|
Expression |
translateTerm(Term t,
ExtList children,
Services services)
Is called whenever
hasLiteralFunction() returns true. |
addFunction, addFunction, addSortDependingFunction, containsFunction, functions, getNewLDTInstances, name, targetSort, toStringpublic static final Name NAME
private final Function permissionsFor
public PermissionLDT(Services services)
public Function getPermissionsFor()
public boolean isResponsible(Operator op, Term[] subs, Services services, ExecutionContext ec)
LDTisResponsible in class LDTop - the de.uka.ilkd.key.java.expression.Operator to
translatesubs - the logic subterms of the java operatorservices - the Servicesec - the ExecutionContext in which the expression is evaluatedpublic boolean isResponsible(Operator op, Term left, Term right, Services services, ExecutionContext ec)
LDTisResponsible in class LDTop - the de.uka.ilkd.key.java.expression.Operator to
translateleft - the left subterm of the java operatorright - the right subterm of the java operatorservices - the Servicesec - the ExecutionContext in which the expression is evaluatedpublic boolean isResponsible(Operator op, Term sub, TermServices services, ExecutionContext ec)
LDTisResponsible in class LDTop - the de.uka.ilkd.key.java.expression.Operator to
translatesub - the logic subterms of the java operatorservices - the Servicesec - the ExecutionContext in which the expression is evaluatedpublic Term translateLiteral(Literal lit, Services services)
LDTtranslateLiteral in class LDTlit - the Literal to be translatedpublic Function getFunctionFor(Operator op, Services services, ExecutionContext ec)
LDTgetFunctionFor in class LDTpublic boolean hasLiteralFunction(Function f)
hasLiteralFunction in class LDTpublic Expression translateTerm(Term t, ExtList children, Services services)
LDThasLiteralFunction() returns true.translateTerm in class LDT