|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.cast.tree.impl.CAstOperator
public class CAstOperator
Various operators that are built in to many languages, and hence perhaps deserve special notice in capa ast interface. There is no strong notion of what should be in here, so feel free to add other common operators.
| Field Summary | |
|---|---|
static CAstOperator |
OP_ADD
|
static CAstOperator |
OP_BIT_AND
|
static CAstOperator |
OP_BIT_OR
|
static CAstOperator |
OP_BIT_XOR
|
static CAstOperator |
OP_BITNOT
|
static CAstOperator |
OP_CONCAT
|
static CAstOperator |
OP_DIV
|
static CAstOperator |
OP_EQ
|
static CAstOperator |
OP_GE
|
static CAstOperator |
OP_GT
|
static CAstOperator |
OP_LE
|
static CAstOperator |
OP_LSH
|
static CAstOperator |
OP_LT
|
static CAstOperator |
OP_MOD
|
static CAstOperator |
OP_MUL
|
static CAstOperator |
OP_NE
|
static CAstOperator |
OP_NOT
|
static CAstOperator |
OP_REL_AND
|
static CAstOperator |
OP_REL_OR
|
static CAstOperator |
OP_REL_XOR
|
static CAstOperator |
OP_RSH
|
static CAstOperator |
OP_SUB
|
static CAstOperator |
OP_URSH
|
| Fields inherited from interface com.ibm.wala.cast.tree.CAstNode |
|---|
ANDOR_EXPR, ARRAY_LENGTH, ARRAY_LITERAL, ARRAY_REF, ASSERT, ASSIGN, ASSIGN_POST_OP, ASSIGN_PRE_OP, BINARY_EXPR, BLOCK_EXPR, BLOCK_STMT, BREAK, CALL, CAST, CATCH, CHOICE_CASE, CHOICE_EXPR, CONSTANT, CONTINUE, DECL_STMT, EACH_ELEMENT_GET, EACH_ELEMENT_HAS_NEXT, ECHO, EMPTY, EMPTY_LIST_EXPR, ERROR, EXPR_LIST, EXPR_STMT, FUNCTION_EXPR, FUNCTION_STMT, GET_CAUGHT_EXCEPTION, GOTO, IF_EXPR, IF_STMT, IFGOTO, INSTANCEOF, IS_DEFINED_EXPR, LABEL_STMT, LIST_EXPR, LOCAL_SCOPE, LOOP, MONITOR_ENTER, MONITOR_EXIT, NEW, OBJECT_LITERAL, OBJECT_REF, OPERATOR, PRIMITIVE, RETURN, RETURN_WITHOUT_BRANCH, SUB_LANGUAGE_BASE, SUPER, SWITCH, THIS, THROW, TRY, TYPE_LITERAL_EXPR, TYPE_OF, UNARY_EXPR, UNWIND, VAR, VOID |
| Method Summary | |
|---|---|
CAstNode |
getChild(int n)
Return the nth child of this node. |
int |
getChildCount()
How many children does this node have? |
int |
getKind()
What kind of node is this? Should return some constant from this file. |
java.lang.Object |
getValue()
Returns the constant value represented by this node, if appropriate, and null otherwise. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final CAstOperator OP_ADD
public static final CAstOperator OP_CONCAT
public static final CAstOperator OP_DIV
public static final CAstOperator OP_LSH
public static final CAstOperator OP_MOD
public static final CAstOperator OP_MUL
public static final CAstOperator OP_RSH
public static final CAstOperator OP_URSH
public static final CAstOperator OP_SUB
public static final CAstOperator OP_EQ
public static final CAstOperator OP_GE
public static final CAstOperator OP_GT
public static final CAstOperator OP_LE
public static final CAstOperator OP_LT
public static final CAstOperator OP_NE
public static final CAstOperator OP_NOT
public static final CAstOperator OP_BITNOT
public static final CAstOperator OP_BIT_AND
public static final CAstOperator OP_REL_AND
public static final CAstOperator OP_BIT_OR
public static final CAstOperator OP_REL_OR
public static final CAstOperator OP_BIT_XOR
public static final CAstOperator OP_REL_XOR
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic int getKind()
CAstNode
getKind in interface CAstNodepublic java.lang.Object getValue()
CAstNode
getValue in interface CAstNodepublic CAstNode getChild(int n)
CAstNode
getChild in interface CAstNodepublic int getChildCount()
CAstNode
getChildCount in interface CAstNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||