ponderToolkit.compiler.codeGen.interfaces.expressions
Interface ExpressionI

All Known Subinterfaces:
ActionCallExprI, AddExpressionI, CompositeExpressionI, FeatureCallExprI, LibraryActionCallExprI, LiteralExprI, LogicalExpressionI, MathExprI, MultExpressionI, ObjAttributeExprI, PrimitiveExpressionI, RelationalExpressionI, UnaryExpressionI
All Known Implementing Classes:
Expression

public interface ExpressionI

Function: Models an Expression. This is the super-class of all Expression classes.


Field Summary
static int ACTION_BASED_EXPRESSION
           
static int ACTION_CALL_EXPRESSION
           
static int ADDITIVE_EXPRESSION
           
static int EVENT_BASED_EXPRESSION
           
static int FEATURE_CALL_EXPRESSION
           
static int GENERIC_EXPRESSION
           
static int LITERAL_EXPRESSION
           
static int LOGICAL_EXPRESSION
           
static int MATH_EXPRESSION
           
static int MULTIPLICATIVE_EXPRESSION
           
static int OBJECT_ATTRIBUTE_EXPRESSION
           
static int RELATIONAL_EXPRESSION
           
static int SUBJECT_BASED_EXPRESSION
           
static int TARGET_BASED_EXPRESSION
           
static int UNARY_EXPRESSION
           
 
Method Summary
 java.lang.String getAnalysisCode()
          return the Prolog code required by the analysis system
 int getBasedOn()
          Returns the part of the policy (the policy attribute) on which this expression value is based.
 java.lang.String getNameBasedOn()
          Returns the name of the context (action or event) of the policy (the policy attribute) on which this expression value is based.
 int getPosBasedOn()
          Returns the position within the parameter list of the ontext (action or event) of the policy on which this expression value is based.
 java.lang.String getString()
          Return a String representation of the Expression
 int getType()
          Return the type of the Expression
 void setBasedOn(int newBasedOn)
          Sets the part of the policy (the policy attribute) on which this expression value is based
 void setBasedOn(int newBasedOn, java.lang.String newContextName, int newPos)
          Sets the part of the policy (the policy attribute) on which this expression value is based, including the name of the context (action or event) and the position within the parameter list of that context on which this expression is based
 

Field Detail

UNARY_EXPRESSION

public static final int UNARY_EXPRESSION

LOGICAL_EXPRESSION

public static final int LOGICAL_EXPRESSION

RELATIONAL_EXPRESSION

public static final int RELATIONAL_EXPRESSION

ADDITIVE_EXPRESSION

public static final int ADDITIVE_EXPRESSION

MULTIPLICATIVE_EXPRESSION

public static final int MULTIPLICATIVE_EXPRESSION

LITERAL_EXPRESSION

public static final int LITERAL_EXPRESSION

ACTION_CALL_EXPRESSION

public static final int ACTION_CALL_EXPRESSION

OBJECT_ATTRIBUTE_EXPRESSION

public static final int OBJECT_ATTRIBUTE_EXPRESSION

FEATURE_CALL_EXPRESSION

public static final int FEATURE_CALL_EXPRESSION

MATH_EXPRESSION

public static final int MATH_EXPRESSION

GENERIC_EXPRESSION

public static final int GENERIC_EXPRESSION

SUBJECT_BASED_EXPRESSION

public static final int SUBJECT_BASED_EXPRESSION

TARGET_BASED_EXPRESSION

public static final int TARGET_BASED_EXPRESSION

ACTION_BASED_EXPRESSION

public static final int ACTION_BASED_EXPRESSION

EVENT_BASED_EXPRESSION

public static final int EVENT_BASED_EXPRESSION
Method Detail

getType

public int getType()
Return the type of the Expression

getBasedOn

public int getBasedOn()
Returns the part of the policy (the policy attribute) on which this expression value is based.

getNameBasedOn

public java.lang.String getNameBasedOn()
Returns the name of the context (action or event) of the policy (the policy attribute) on which this expression value is based. An empty string is returned if this does not apply to this expression

getPosBasedOn

public int getPosBasedOn()
Returns the position within the parameter list of the ontext (action or event) of the policy on which this expression value is based. -1 is returned if this does not apply to this expression

setBasedOn

public void setBasedOn(int newBasedOn)
Sets the part of the policy (the policy attribute) on which this expression value is based

setBasedOn

public void setBasedOn(int newBasedOn,
                       java.lang.String newContextName,
                       int newPos)
Sets the part of the policy (the policy attribute) on which this expression value is based, including the name of the context (action or event) and the position within the parameter list of that context on which this expression is based

getString

public java.lang.String getString()
Return a String representation of the Expression

getAnalysisCode

public java.lang.String getAnalysisCode()
return the Prolog code required by the analysis system