| |
|
| java.lang.Object org.netbeans.editor.ext.java.JCExpression
JCExpression | public class JCExpression (Code) | | Expression generated by parsing text by java completion
author: Miloslav Metelka version: 1.00 |
ARRAY | final public static int ARRAY(Code) | | Array 'a[0]' or 'a.b.c[d.e]'
|
ARRAY_OPEN | final public static int ARRAY_OPEN(Code) | | Opened array 'a[0' or 'a.b.c[d.e'
|
CONSTANT | final public static int CONSTANT(Code) | | Constant - int/long/String/char etc.
|
CONSTRUCTOR | final public static int CONSTRUCTOR(Code) | | Constructor closed by right parentheses 'new String()' or 'new
String("hello")'
|
CONVERSION | final public static int CONVERSION(Code) | | Conversion '(int)a.b()'
|
DOT | final public static int DOT(Code) | | Dot between method calls 'a().b()' or 'a().b.c.d(e, f)'
|
DOT_OPEN | final public static int DOT_OPEN(Code) | | Dot between method calls and dot at the end 'a().b().' or 'a().b.c.d(e,
f).'
|
INSTANCEOF | final public static int INSTANCEOF(Code) | | 'instanceof' operator
|
METHOD | final public static int METHOD(Code) | | Method closed by right parentheses 'a()' or 'a.b.c(d, e, f)'
|
METHOD_OPEN | final public static int METHOD_OPEN(Code) | | Opened method 'a(' or 'a.b.c(d, e'
|
NEW | final public static int NEW(Code) | | 'new' keyword
|
OPERATOR | final public static int OPERATOR(Code) | | Operator '+' or '--'
|
PARENTHESIS | final public static int PARENTHESIS(Code) | | Closed parenthesis holding the subexpression or conversion
|
PARENTHESIS_OPEN | final public static int PARENTHESIS_OPEN(Code) | | Left opened parentheses
|
TYPE | final public static int TYPE(Code) | | Data type
|
UNARY_OPERATOR | final public static int UNARY_OPERATOR(Code) | | Special value for unary operators
|
VARIABLE | final public static int VARIABLE(Code) | | Variable 'a' or 'a.b.c'
|
JCExpression | JCExpression(int expID)(Code) | | |
createEmptyVariable | static JCExpression createEmptyVariable(int pos)(Code) | | Create empty variable.
|
getExpID | public int getExpID()(Code) | | Get expression ID
|
getOperatorID | static int getOperatorID(TokenID tokenID)(Code) | | Return id of the operator or 'new' or 'instance' keywords or -1 for the
rest.
|
getOperatorPrecedence | static int getOperatorPrecedence(int opID)(Code) | | |
getParameterCount | public int getParameterCount()(Code) | | |
getTokenCount | public int getTokenCount()(Code) | | |
getTokenLength | public int getTokenLength(int tokenInd)(Code) | | |
getTokenOffset | public int getTokenOffset(int tokenInd)(Code) | | |
isOperatorRightAssociative | static boolean isOperatorRightAssociative(int opID)(Code) | | |
isValidType | static boolean isValidType(JCExpression exp)(Code) | | Is the expression a valid type. It can be either datatype or array.
|
setExpID | void setExpID(int expID)(Code) | | Set expression ID
|
swapOperatorParms | void swapOperatorParms()(Code) | | |
|
|
|