|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.symbols.AssertionExpression
gov.llnl.babel.symbols.Literal
gov.llnl.babel.symbols.DComplexLiteral
public class DComplexLiteral
Field Summary |
---|
Fields inherited from class gov.llnl.babel.symbols.AssertionExpression |
---|
d_context, ERROR_SEMANTIC_VALIDATION |
Constructor Summary | |
---|---|
DComplexLiteral(DoubleLiteral r,
DoubleLiteral i,
Context context)
Create a new object. |
|
DComplexLiteral(DoubleLiteral r,
LongLiteral i,
Context context)
Create a new object. |
|
DComplexLiteral(LongLiteral r,
DoubleLiteral i,
Context context)
Create a new object. |
Method Summary | |
---|---|
java.lang.Object |
accept(ExprVisitor ev,
java.lang.Object data)
Implement the "visitor pattern". |
java.lang.String |
cExpression(java.lang.String epvVar,
int[] startInd)
Return the C version of the expression. |
java.util.ArrayList |
getArrayIterMacros(java.lang.String epvVar,
int[] startInd)
Return the list of array iteration macro messages, if any. |
java.lang.String |
getImaginaryImage()
Return the string image of the imaginary part of this object. |
DoubleLiteral |
getImaginaryLiteral()
Return the literal of the imaginary part of this object. |
java.lang.Double |
getImaginaryValue()
Return the value of the imaginary part of this object. |
int |
getNumArrayIterMacrosByType(char type)
Returns the number of macros supported by this assertion of the specified type. |
java.lang.String |
getRealImage()
Return the string image of the real part of this object. |
DoubleLiteral |
getRealLiteral()
Return the literal of the real part of this object. |
java.lang.Double |
getRealValue()
Return the value of the real part of this object. |
boolean |
hasMethodCall()
Return TRUE if the expression is, or has, at least one method call; otherwise, return FALSE. |
boolean |
hasPure()
Return TRUE if the expression is, or has, a PURE clause; otherwise, return FALSE. |
boolean |
hasReservedMethod(int type)
Return TRUE if the expression is, or has, the specified reserved method call; otherwise, return FALSE. |
boolean |
hasResult()
Return TRUE if the expression contains RESULT; otherwise, return FALSE. |
boolean |
hasUnreservedMethod(boolean any)
Return TRUE if the method is any unreserved method (when any is TRUE) or it is an unreserved method with a throws clause (if any is FALSE); otherwise, return FALSE. |
boolean |
requiresExtendableContext()
Return TRUE if extendable context is required to validate the expression; otherwise, return FALSE. |
boolean |
requiresMethodContext()
Return TRUE if method context is required to validate the expression; otherwise, return FALSE. |
java.lang.String |
toString()
Return the stringified version of the expression (in SIDL form). |
protected void |
validateSemantics(Extendable ext,
Method m)
Validate the expression semantics, if necessary, within the context of the extendable and optional method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DComplexLiteral(DoubleLiteral r, DoubleLiteral i, Context context) throws AssertionException
r
- The real part of the number.i
- The imaginary part of the number.
AssertionException
- The exception raised if errors in any validation.public DComplexLiteral(DoubleLiteral r, LongLiteral i, Context context) throws AssertionException
r
- The double literal real part of the number.i
- The long literal imaginary part of the number.
AssertionException
- The exception raised if errors in any validation.public DComplexLiteral(LongLiteral r, DoubleLiteral i, Context context) throws AssertionException
r
- The long literal real part of the number.i
- The double literal imaginary part of the number.
AssertionException
- The exception raised if errors in any validation.Method Detail |
---|
public DoubleLiteral getRealLiteral()
public java.lang.Double getRealValue()
public java.lang.String getRealImage()
public DoubleLiteral getImaginaryLiteral()
public java.lang.Double getImaginaryValue()
public java.lang.String getImaginaryImage()
public boolean hasPure()
hasPure
in class AssertionExpression
public boolean hasResult()
hasResult
in class AssertionExpression
public boolean hasMethodCall()
hasMethodCall
in class AssertionExpression
public boolean hasReservedMethod(int type)
hasReservedMethod
in class AssertionExpression
public boolean hasUnreservedMethod(boolean any)
hasUnreservedMethod
in class AssertionExpression
public boolean requiresExtendableContext()
requiresExtendableContext
in class AssertionExpression
public boolean requiresMethodContext()
requiresMethodContext
in class AssertionExpression
protected void validateSemantics(Extendable ext, Method m) throws AssertionException
validateSemantics
in class AssertionExpression
ext
- The interface or class that owns this expression.m
- The method that owns this expression.
AssertionException
- The exception that can be raised during any validation.public java.util.ArrayList getArrayIterMacros(java.lang.String epvVar, int[] startInd)
getArrayIterMacros
in class AssertionExpression
public int getNumArrayIterMacrosByType(char type)
getNumArrayIterMacrosByType
in class AssertionExpression
public java.lang.String cExpression(java.lang.String epvVar, int[] startInd)
cExpression
in class AssertionExpression
public java.lang.String toString()
toString
in class AssertionExpression
public java.lang.Object accept(ExprVisitor ev, java.lang.Object data)
accept
in class AssertionExpression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |