ponderToolkit.compiler.codeGen.policyObjects.expressions
Class UnaryExpression

java.lang.Object
  |
  +--ponderToolkit.compiler.codeGen.policyObjects.expressions.Expression
        |
        +--ponderToolkit.compiler.codeGen.policyObjects.expressions.UnaryExpression
All Implemented Interfaces:
ExpressionI, java.io.Serializable, UnaryExpressionI

public class UnaryExpression
extends Expression
implements UnaryExpressionI, java.io.Serializable

Function: Models a Unary Expression.

See Also:
Serialized Form

Fields inherited from interface ponderToolkit.compiler.codeGen.interfaces.expressions.ExpressionI
ACTION_BASED_EXPRESSION, ACTION_CALL_EXPRESSION, ADDITIVE_EXPRESSION, EVENT_BASED_EXPRESSION, FEATURE_CALL_EXPRESSION, GENERIC_EXPRESSION, LITERAL_EXPRESSION, LOGICAL_EXPRESSION, MATH_EXPRESSION, MULTIPLICATIVE_EXPRESSION, OBJECT_ATTRIBUTE_EXPRESSION, RELATIONAL_EXPRESSION, SUBJECT_BASED_EXPRESSION, TARGET_BASED_EXPRESSION, UNARY_EXPRESSION
 
Constructor Summary
UnaryExpression(ExpressionI newExpression, UnaryOpI newOp)
          Constructor
 
Method Summary
 java.lang.String getAnalysisCode()
          return the Prolog code required by the analysis system
 ExpressionI getExpression()
          Get the Expression
 java.lang.String getString()
          Return a String representation of the Expression
 int getType()
          Return the type of the Expression
 UnaryOpI getUnaryOp()
          Get the unary operator
 
Methods inherited from class ponderToolkit.compiler.codeGen.policyObjects.expressions.Expression
getBasedOn, getNameBasedOn, getPosBasedOn, setBasedOn, setBasedOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ponderToolkit.compiler.codeGen.interfaces.expressions.ExpressionI
getBasedOn, getNameBasedOn, getPosBasedOn, setBasedOn, setBasedOn
 

Constructor Detail

UnaryExpression

public UnaryExpression(ExpressionI newExpression,
                       UnaryOpI newOp)
Constructor
Method Detail

getExpression

public ExpressionI getExpression()
Get the Expression
Specified by:
getExpression in interface UnaryExpressionI

getUnaryOp

public UnaryOpI getUnaryOp()
Get the unary operator
Specified by:
getUnaryOp in interface UnaryExpressionI

getType

public int getType()
Return the type of the Expression
Specified by:
getType in interface ExpressionI

getString

public java.lang.String getString()
Return a String representation of the Expression
Specified by:
getString in interface ExpressionI

getAnalysisCode

public java.lang.String getAnalysisCode()
return the Prolog code required by the analysis system
Specified by:
getAnalysisCode in interface ExpressionI