Package com.ibm.wala.cast.tree.impl
Class CAstOperator
- java.lang.Object
-
- com.ibm.wala.cast.tree.impl.CAstOperator
-
- All Implemented Interfaces:
CAstNode
public class CAstOperator extends Object implements CAstNode
Various operators that are built in to many languages, and hence perhaps deserve special notice in WALA CAst interface. There is no strong notion of what should be in here, so feel free to add other common operators.
-
-
Field Summary
Fields Modifier and Type Field Description static CAstOperatorOP_ADDstatic CAstOperatorOP_BIT_ANDstatic CAstOperatorOP_BIT_ORstatic CAstOperatorOP_BIT_XORstatic CAstOperatorOP_BITNOTstatic CAstOperatorOP_CONCATstatic CAstOperatorOP_DIVstatic CAstOperatorOP_EQstatic CAstOperatorOP_GEstatic CAstOperatorOP_GTstatic CAstOperatorOP_LEstatic CAstOperatorOP_LSHstatic CAstOperatorOP_LTstatic CAstOperatorOP_MODstatic CAstOperatorOP_MULstatic CAstOperatorOP_NEstatic CAstOperatorOP_NOTstatic CAstOperatorOP_REL_ANDstatic CAstOperatorOP_REL_ORstatic CAstOperatorOP_REL_XORstatic CAstOperatorOP_RSHstatic CAstOperatorOP_STRICT_EQstatic CAstOperatorOP_STRICT_NEstatic CAstOperatorOP_SUBstatic CAstOperatorOP_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, FORIN_LOOP, FUNCTION_EXPR, FUNCTION_STMT, GET_CAUGHT_EXCEPTION, GOTO, IF_EXPR, IF_STMT, IFGOTO, INCLUDE, INSTANCEOF, IS_DEFINED_EXPR, LABEL_STMT, LIST_EXPR, LOCAL_SCOPE, LOOP, MACRO_VAR, MONITOR_ENTER, MONITOR_EXIT, NAMED_ENTITY_REF, NEW, NEW_ENCLOSING, OBJECT_LITERAL, OBJECT_REF, OPERATOR, PRIMITIVE, RETURN, RETURN_WITHOUT_BRANCH, SPECIAL_PARENT_SCOPE, SUB_LANGUAGE_BASE, SUPER, SWITCH, THIS, THROW, TRY, TYPE_LITERAL_EXPR, TYPE_OF, UNARY_EXPR, UNWIND, VAR, VOID, YIELD_STMT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCAstOperator(String op)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CAstNodegetChild(int n)Return the nth child of this node.intgetChildCount()How many children does this node have?intgetKind()What kind of node is this? Should return some constant from this file.ObjectgetValue()Returns the constant value represented by this node, if appropriate, and null otherwise.StringtoString()
-
-
-
Field Detail
-
OP_EQ
public static final CAstOperator OP_EQ
-
OP_STRICT_EQ
public static final CAstOperator OP_STRICT_EQ
-
OP_NE
public static final CAstOperator OP_NE
-
OP_STRICT_NE
public static final CAstOperator OP_STRICT_NE
-
OP_ADD
public static final CAstOperator OP_ADD
-
OP_CONCAT
public static final CAstOperator OP_CONCAT
-
OP_DIV
public static final CAstOperator OP_DIV
-
OP_LSH
public static final CAstOperator OP_LSH
-
OP_MOD
public static final CAstOperator OP_MOD
-
OP_MUL
public static final CAstOperator OP_MUL
-
OP_RSH
public static final CAstOperator OP_RSH
-
OP_URSH
public static final CAstOperator OP_URSH
-
OP_SUB
public static final CAstOperator OP_SUB
-
OP_GE
public static final CAstOperator OP_GE
-
OP_GT
public static final CAstOperator OP_GT
-
OP_LE
public static final CAstOperator OP_LE
-
OP_LT
public static final CAstOperator OP_LT
-
OP_NOT
public static final CAstOperator OP_NOT
-
OP_BITNOT
public static final CAstOperator OP_BITNOT
-
OP_BIT_AND
public static final CAstOperator OP_BIT_AND
-
OP_REL_AND
public static final CAstOperator OP_REL_AND
-
OP_BIT_OR
public static final CAstOperator OP_BIT_OR
-
OP_REL_OR
public static final CAstOperator OP_REL_OR
-
OP_BIT_XOR
public static final CAstOperator OP_BIT_XOR
-
OP_REL_XOR
public static final CAstOperator OP_REL_XOR
-
-
Constructor Detail
-
CAstOperator
protected CAstOperator(String op)
-
-
Method Detail
-
getKind
public int getKind()
Description copied from interface:CAstNodeWhat kind of node is this? Should return some constant from this file.
-
getValue
public Object getValue()
Description copied from interface:CAstNodeReturns the constant value represented by this node, if appropriate, and null otherwise.
-
getChild
public CAstNode getChild(int n)
Description copied from interface:CAstNodeReturn the nth child of this node. If there is no such child, this method should throw a NoSuchElementException.
-
getChildCount
public int getChildCount()
Description copied from interface:CAstNodeHow many children does this node have?- Specified by:
getChildCountin interfaceCAstNode
-
-