com.togethersoft.sca.ast
Interface AstUnaryExpression

All Superinterfaces:
AstExpression, AstObject

public interface AstUnaryExpression
extends AstExpression

Represents a one operand expression. For example:

     done = !done;
     mask = ~0x8000;
 


Field Summary
static int BNOT
          Constant representing a bitwise complement ~ expression.
static int LNOT
          Constant representing a logical complement ! expression.
static int MINUS
          Constant representing a unary - expression.
static int PLUS
          Constant representing a unary + expression.
static int POST_DEC
          Constant representing a postfix decrement ++ expression.
static int POST_INC
          Constant representing a postfix increment ++ expression.
static int PRE_DEC
          Constant representing a prefix decrement -- expression.
static int PRE_INC
          Constant representing a prefix increment ++ expression.
 
Fields inherited from interface com.togethersoft.sca.ast.AstObject
ARRAY_CREATION, ARRAY_INITIALIZER, ARRAY_REFERENCE, ASSERT_STATEMENT, ASSIGNMENT_EXPRESSION, BINARY_EXPRESSION, BREAK_STATEMENT, CASE_LABEL, CAST_EXPRESSION, CATCH_CLAUSE, CLASS_FILE, COMMENT, COMPILATION_UNIT, COMPOUND_STATEMENT, CONDITIONAL_EXPRESSION, CONSTRUCTOR_INVOCATION, CONTINUE_STATEMENT, DBC_RESULT, DECLARATION_STATEMENT, DO_STATEMENT, EMPTY_STATEMENT, EXPRESSION_STATEMENT, FIELD_REFERENCE, FINALLY_CLAUSE, FOR_STATEMENT, IF_STATEMENT, IMPORT, INITIALIZER, JAVADOC_TAG, LITERAL, METHOD, METHOD_CALL_EXPRESSION, N_A, OBJECT_CREATION_EXPRESSION, PACKAGE, PARENTHESIZED_EXPRESSION, RETURN_STATEMENT, SIMPLE_REFERENCE, SUPER_EXPRESSION, SWITCH_GROUP, SWITCH_STATEMENT, SYNCHRONIZED_STATEMENT, THIS_EXPRESSION, THROW_SPECIFIER, THROW_STATEMENT, TRY_STATEMENT, TYPE, TYPE_EXPRESSION, UNARY_EXPRESSION, VARIABLE, VARIABLE_DECLARATION, WHILE_STATEMENT
 
Method Summary
 int getExpressionKind()
          Returns this expression's kind encoded as an integer.
 AstExpression getOperand()
          Returns the operand of this expression.
 
Methods inherited from interface com.togethersoft.sca.ast.AstExpression
getOperands, getRuntimeType, getType, isConstant
 
Methods inherited from interface com.togethersoft.sca.ast.AstObject
addComment, getChildren, getComments, getCompilationUnit, getDeclaringMethod, getDeclaringType, getObjectKind, getPackage, getParent, getPosition, isDeleted, remove, replaceWith, replaceWith, setPosition, setPositionAfter, visitExpressions, visitStatements
 

Field Detail

BNOT

public static final int BNOT
Constant representing a bitwise complement ~ expression.

LNOT

public static final int LNOT
Constant representing a logical complement ! expression.

MINUS

public static final int MINUS
Constant representing a unary - expression.

PLUS

public static final int PLUS
Constant representing a unary + expression.

POST_DEC

public static final int POST_DEC
Constant representing a postfix decrement ++ expression.

POST_INC

public static final int POST_INC
Constant representing a postfix increment ++ expression.

PRE_DEC

public static final int PRE_DEC
Constant representing a prefix decrement -- expression.

PRE_INC

public static final int PRE_INC
Constant representing a prefix increment ++ expression.
Method Detail

getExpressionKind

public int getExpressionKind()
Returns this expression's kind encoded as an integer.
Returns:
the kind of this expression.

getOperand

public AstExpression getOperand()
Returns the operand of this expression.
Returns:
the operand of this expression.