Skip navigation links
oracle.javatools.parser.java.v2.util
Class SourceVisitor
java.lang.Object
oracle.javatools.parser.util.ArrayListHeap
oracle.javatools.parser.java.v2.util.Conversions
oracle.javatools.parser.java.v2.common.CommonUtilities
oracle.javatools.parser.java.v2.internal.InternalUtilities
oracle.javatools.parser.java.v2.internal.symbol.SymUtilities
oracle.javatools.parser.java.v2.internal.symbol.Sym.SymTraversal
oracle.javatools.parser.java.v2.util.SourceVisitor
- All Implemented Interfaces:
- oracle.javatools.parser.java.v2.internal.InternalConstants, JavaConstants, JavadocTokens, JavaErrors, JavaOperators, JavaPreferences, JavaTokens
-
public abstract class SourceVisitor
- extends oracle.javatools.parser.java.v2.internal.symbol.Sym.SymTraversal
Visitor pattern and traversals for SourceElements.
Field Summary |
java.lang.Object |
data
User data. |
Fields inherited from class oracle.javatools.parser.java.v2.internal.InternalUtilities |
ERROR_loaded, resources |
Fields inherited from interface oracle.javatools.parser.java.v2.internal.InternalConstants |
BINDING_base, BINDING_COMPILER, BINDING_CONTEXT, BINDING_FORMAT, BINDING_invalid, BINDING_limit, BINDING_max, BINDING_PARSER, BINDING_SYM, BINDING_TEXT, BINDING_words, DO_FORMAT_ALL, DO_FORMAT_SPECIAL, DO_invalid, DO_LINK_CHILD, DO_REPLACE_CHILD, DO_SET_ACCESS, DO_SET_SYM_FLAGS, DO_SET_TEXT, DO_UNLINK_CHILD, FILTER_ALL, FILTER_base, FILTER_BLOCK_ELEMENT, FILTER_COMPLEX_base, FILTER_COMPLEX_max, FILTER_DOC_SYM, FILTER_DOC_TAG, FILTER_DUMMY_EXPR, FILTER_EXPR, FILTER_FIELD_VARIABLE, FILTER_FORMAL_PARAMETER, FILTER_LEXICAL_SYM, FILTER_LOCAL_VARIABLE, FILTER_max, FILTER_MEMBER_BUT_NOT_INIT, FILTER_MEMBER_D, FILTER_MEMBER_VARIABLE, FILTER_none, FILTER_SCOPE, FILTER_SIMPLE_base, FILTER_SIMPLE_max, FILTER_SKELETON, FILTER_STMT, FORMAT_DIRTY, FORMAT_DONT_SIMPLIFY, FORMAT_NEW, FORMAT_SAVED_TEXT, FORMAT_SET_ACCESS, FORMAT_V2, IMPLICIT_ANNOTATE, IMPLICIT_ENUM, IMPLICIT_ENUM_CONSTANT, IMPLICIT_EXPLICIT, IMPLICIT_INTERFACE, IMPLICIT_INTERFACE_CLASS, IMPLICIT_INTERFACE_FIELD, IMPLICIT_INTERFACE_INTERFACE, IMPLICIT_INTERFACE_METHOD, IMPLICIT_INTERFACE_TYPE, IMPLICIT_MEMBER_ENUM, IMPLICIT_MEMBER_INTERFACE, IMPLICIT_none, kEmptyList, kEmptyMap, kEmptySet, OBJFL_HAS_COMPILED_INFO, OBJFL_IMPORT_INVALID, OBJFL_IMPORT_USED, OBJFL_PROCESSED, OBJFL_VARIABLE_CAPTURED, PARSE_ANNOTATION, PARSE_BLOCK, PARSE_BLOCK_ELEMENT, PARSE_CLASS, PARSE_EXPRESSION, PARSE_JAVADOC, PARSE_MEMBER, PARSE_STATEMENT, PARSE_TY_REFERENCE, REQUIRETY_ARRAY, REQUIRETY_BITWISE, REQUIRETY_BOOLEAN, REQUIRETY_FLOATING, REQUIRETY_INTEGRAL, REQUIRETY_NONARRAY, REQUIRETY_none, REQUIRETY_NUMERIC, REQUIRETY_REFERENCE, SRCX_CONTAINER, SRCX_INDEX, SRCX_INDIRECT, SRCX_max, SRCX_OPERATION, SRCX_ROOT, SRCX_SAVEPOINT, SRCX_TRANSACTION, SRCX_words, SYMFL_CLASS_ANONYMOUS, SYMFL_CLASS_ENUM_CONSTANTS_TRAILING_SEMICOLON, SYMFL_CLASS_TRAILING_SEMICOLON, SYMFL_COMMENT_LINE_END, SYMFL_COMMENT_LINE_START, SYMFL_CONTAINER_EXPR, SYMFL_DOC_NEWLINE_END, SYMFL_EXPR_EXTRA_COMMA, SYMFL_EXPR_LVALUE, SYMFL_EXPR_MAYBE_PACKAGE, SYMFL_FILE_NO_AUTO_SAVEPOINT, SYMFL_FOR_CONDITIONAL, SYMFL_FOR_INITIALIZER, SYMFL_FOR_UPDATE, SYMFL_INITIALIZER_TRAILING_SEMICOLON, SYMFL_INVISIBLE, SYMFL_METHOD_TRAILING_SEMICOLON, SYMFL_SCOPE, SYMFL_SKELETON, SYMFL_TRANSACTION_SAVING, SYMFL_TYPE_DIAMOND_SYNTAX |
Fields inherited from interface oracle.javatools.parser.java.v2.JavaConstants |
ACC_ABSTRACT, ACC_ANNOTATION, ACC_BRIDGE, ACC_ENUM, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_none, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICTFP, ACC_SUPER, ACC_SYNCHRONIZED, ACC_SYNTHETIC, ACC_TRANSIENT, ACC_VARARGS, ACC_VOLATILE, ACCX_DEPRECATED, ACCX_HIDDEN, ARRAY_implements, BOUND_EXTENDS, BOUND_NARROW, BOUND_NONE, BOUND_SUPER, ELEM_ANNOTATION, ELEM_base, ELEM_CLASS, ELEM_COMPONENT, ELEM_EXPRESSION, ELEM_FIELD, ELEM_FILE, ELEM_IMPORT, ELEM_invalid, ELEM_LOCAL_VARIABLE, ELEM_max, ELEM_METHOD, ELEM_NOTHING, ELEM_PACKAGE, ELEM_SELF_VARIABLE, ELEM_STATEMENT_LABEL, ELEM_TMP_VARIABLE, ELEM_TYPE_VARIABLE, ELEM_WILDCARD_TYPE, ELEM_words, EMPTY_OBJECT_ARRAY, EMPTY_STRING_ARRAY, FOR_ENHANCED, FOR_EXPRESSION, FOR_VARIABLE_D, kEmptyCollection, opt2srcTable, PACKAGE_INFO, PRIMITIVE_autoboxes, PRIMITIVE_binary, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_descriptors, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_invalid, PRIMITIVE_LONG, PRIMITIVE_max, PRIMITIVE_NULL, PRIMITIVE_SHORT, PRIMITIVE_tokens, PRIMITIVE_unary, PRIMITIVE_VOID, SRC_ANNOTATION, SRC_base, SRC_BLOCK, SRC_CATCH_PARAMETER, SRC_CLASS, SRC_CLASS_BODY, SRC_CLASS_INITIALIZER, SRC_CONSTRUCTOR_D, SRC_DOC_base, SRC_DOC_BLOCK_TAG, SRC_DOC_COMMENT, SRC_DOC_DESCRIPTION, SRC_DOC_INLINE_TAG, SRC_DOC_max, SRC_DOC_REFERENCE, SRC_DOC_TAG_NAME, SRC_DOC_TEXT, SRC_ENUM_CONSTANT_D, SRC_ERROR, SRC_EXPR_ANNOTATION, SRC_EXPR_ARRAY_ACCESS, SRC_EXPR_ASSIGNMENT, SRC_EXPR_base, SRC_EXPR_DOT, SRC_EXPR_INFIX, SRC_EXPR_LIST, SRC_EXPR_LITERAL, SRC_EXPR_max, SRC_EXPR_METHOD_CALL, SRC_EXPR_NEW_ARRAY, SRC_EXPR_NEW_CLASS, SRC_EXPR_QUESTION, SRC_EXPR_SIMPLE_NAME, SRC_EXPR_TYPE, SRC_EXPR_TYPECAST, SRC_EXPR_UNARY, SRC_EXPR_WRAPPER, SRC_FIELD_D, SRC_FIELD_VARIABLE, SRC_FILE, SRC_FORMAL_PARAMETER, SRC_FORMAL_PARAMETER_LIST, SRC_IMPORT_D, SRC_INTERFACES_CLAUSE, SRC_invalid, SRC_LABEL, SRC_LEX_base, SRC_LEX_BLANKLINE, SRC_LEX_COMMENT, SRC_LEX_max, SRC_LEX_SQLJ, SRC_LOCAL_VARIABLE, SRC_LOCAL_VARIABLE_D, SRC_max, SRC_METHOD_D, SRC_NAME, SRC_PACKAGE_D, SRC_STMT_ASSERT, SRC_STMT_base, SRC_STMT_BLOCK, SRC_STMT_BREAK, SRC_STMT_CATCH, SRC_STMT_CONTINUE, SRC_STMT_DO, SRC_STMT_ELSE, SRC_STMT_EMPTY, SRC_STMT_EXPRESSION, SRC_STMT_FINALLY, SRC_STMT_FOR, SRC_STMT_IF, SRC_STMT_max, SRC_STMT_RETURN, SRC_STMT_SWITCH, SRC_STMT_SYNCH, SRC_STMT_THROW, SRC_STMT_TRY, SRC_STMT_WHILE, SRC_SUPERCLASS_CLAUSE, SRC_SWITCH_LABEL, SRC_THROWS_CLAUSE, SRC_TYPE_ARGUMENT, SRC_TYPE_PARAMETER, SRC_TYPE_REF, SRC_words, TY_ANNOTATE, TY_CLASS, TY_ENUM, TY_INTERFACE, TY_invalid, TY_max, TY_words |
Fields inherited from interface oracle.javatools.parser.java.v2.JavaErrors |
ERROR_ABSTRACT_CLASS, ERROR_AMBIGUOUS_IMPORT, ERROR_AMBIGUOUS_REF, ERROR_ASSERT_IDENTIFIER, ERROR_base, ERROR_BREAK_OUTSIDE_SWITCH_OR_LOOP, ERROR_CANCELLED, ERROR_CANT_ASSIGN, ERROR_CANT_EXTEND_ENUM, ERROR_CANT_EXTEND_FINAL, ERROR_CANT_EXTEND_INTERFACE, ERROR_CANT_IMPLEMENT_CLASS, ERROR_CANT_TYPECAST, ERROR_CATEGORY_ALL, ERROR_CATEGORY_COMPILE, ERROR_CATEGORY_PARSE, ERROR_CATEGORY_SCAN, ERROR_CATEGORY_unclassified, ERROR_CHECK_EXCEPTION, ERROR_CLASS_CIRCULARITY, ERROR_COMPILE_base, ERROR_COMPILE_GENERIC, ERROR_COMPILE_max, ERROR_CONSTRUCTOR_NAME, ERROR_CONTINUE_OUTSIDE_OF_LOOP, ERROR_DUPLICATE, ERROR_EMPTY_CHAR_LITERAL, ERROR_EMPTY_EXPRESSION, ERROR_EXPECTING_ONE, ERROR_EXPECTING_TWO, ERROR_EXPECTING_TYPE, ERROR_EXTENDS_NOT_ALLOWED, ERROR_EXTENDS_TOO_MANY, ERROR_FORWARD_REFERENCE, ERROR_ILLEGAL_ANNOTATION, ERROR_ILLEGAL_DEFAULT, ERROR_ILLEGAL_LABEL, ERROR_ILLEGAL_START_OF_EXPR, ERROR_ILLEGAL_TYPE_PARAMETERS, ERROR_ILLEGAL_VARARGS, ERROR_IMPLEMENTS_NOT_ALLOWED, ERROR_IMPORT_NOT_FOUND, ERROR_INTERNAL, ERROR_INVALID_CHAR_LITERAL, ERROR_INVALID_ESCAPE_SEQUENCE, ERROR_INVALID_EXPR_STMT, ERROR_INVALID_NAME, ERROR_INVALID_OPERATION, ERROR_INVALID_STRING_LITERAL, ERROR_INVALID_SUPERTYPE, ERROR_keys, ERROR_LONE_CATCH, ERROR_LONE_ELSE, ERROR_LONE_FINALLY, ERROR_LONE_TRY, ERROR_max, ERROR_MEMBER_NOT_FOUND, ERROR_METHOD_NOT_FOUND, ERROR_MISSING_CASE_OR_DEFAULT_LABEL, ERROR_MISSING_CONDITION, ERROR_MISSING_METHOD_BODY, ERROR_MODIFIER_REPEATED, ERROR_MULTIPLE_COMPONENTS, ERROR_NAME_NOT_FOUND, ERROR_none, ERROR_NOT_ACCESSIBLE, ERROR_NOT_ANNOTATION_TYPE, ERROR_NOT_ASSIGNABLE, ERROR_NOT_GENERIC_TYPE, ERROR_NOT_IMPLEMENTED_YET, ERROR_NOT_THROWABLE, ERROR_NUMBER_FORMAT, ERROR_NUMERIC_OVERFLOW, ERROR_NUMERIC_UNDERFLOW, ERROR_ONLY_STATIC_ACCESS, ERROR_PARSE_base, ERROR_PARSE_GENERIC, ERROR_PARSE_max, ERROR_REQUIRE_ARRAY, ERROR_REQUIRE_BLOCK, ERROR_REQUIRE_FINAL, ERROR_REQUIRE_OBJECT, ERROR_REQUIRE_OUTER_CLASS, ERROR_SCAN_base, ERROR_SCAN_GENERIC, ERROR_SCAN_max, ERROR_TYPE_ARGUMENT_MISMATCH, ERROR_TYPE_IS_NOT_AUTOCLOSEABLE, ERROR_TYPE_IS_NOT_DISJUNCTIVE, ERROR_TYPE_NOT_ALLOWED, ERROR_TYPE_NOT_FOUND, ERROR_UNEXPECTED, ERROR_UNKNOWN, ERROR_VOID_RETURN, ERROR_warnings, ERROR_words, SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_LINT, SEVERITY_WARNING, SEVERITY_ZERO, WARNING_AMBIGUOUS_DOC_REFERENCE, WARNING_ASSERT_IDENTIFIER, WARNING_DOC_REFERENCE_NOT_FOUND, WARNING_IMPORT_UNUSED, WARNING_INVALID_NAME, WARNING_METHOD_NAME |
Fields inherited from interface oracle.javatools.parser.java.v2.JavaOperators |
OPT_ADD, OPT_ADDASG, OPT_AND, OPT_ANNOTATION, OPT_ARRAYCONST, OPT_ASG, OPT_base, OPT_BITAND, OPT_BITANDASG, OPT_BITNOT, OPT_BITOR, OPT_BITORASG, OPT_BITXOR, OPT_BITXORASG, OPT_CLASS_LITERAL, OPT_COND, OPT_DEREF, OPT_DIV, OPT_DIVASG, OPT_DOT, OPT_EQ, OPT_GE, OPT_GT, OPT_INSTANCEOF, OPT_invalid, OPT_INVOKE, OPT_LE, OPT_LIST, OPT_LITERAL, OPT_LSH, OPT_LSHASG, OPT_LT, OPT_max, OPT_MINUS, OPT_MINUSASG, OPT_MOD, OPT_MODASG, OPT_MUL, OPT_MULASG, OPT_NEGATIVE, OPT_NESTEXP, OPT_NEWARRAY, OPT_NEWOBJECT, OPT_NOT, OPT_NOTEQ, OPT_OR, OPT_POSITIVE, OPT_POSTDEC, OPT_POSTINC, OPT_precedence, OPT_PREDEC, OPT_PREINC, OPT_QUALIFIED_SUPER, OPT_QUALIFIED_THIS, OPT_RSH, OPT_RSHASG, OPT_SIMPLE_NAME, OPT_tokens, OPT_TYPE, OPT_TYPECAST, OPT_URSH, OPT_URSHASG, OPT_words |
Fields inherited from interface oracle.javatools.parser.java.v2.JavaTokens |
DW_values, DW_words, J2SE_13, J2SE_14, J2SE_15, J2SE_16, J2SE_17, J2SE_MAX, J2SE_MIN, KW_ABSTRACT, KW_ASSERT, KW_base, KW_BOOLEAN, KW_BREAK, KW_BYTE, KW_CASE, KW_CATCH, KW_CHAR, KW_CLASS, KW_CONST, KW_CONTINUE, KW_DEFAULT, KW_DO, KW_DOUBLE, KW_ELSE, KW_ENUM, KW_EXTENDS, KW_FINAL, KW_FINALLY, KW_FLOAT, KW_FOR, KW_GOTO, KW_IF, KW_IMPLEMENTS, KW_IMPORT, KW_INSTANCEOF, KW_INT, KW_INTERFACE, KW_j2se13_max, KW_j2se14_max, KW_j2se15_max, KW_j2se16_max, KW_LONG, KW_max, KW_NATIVE, KW_NEW, KW_PACKAGE, KW_PRIVATE, KW_PROTECTED, KW_PUBLIC, KW_RETURN, KW_SHORT, KW_STATIC, KW_STRICTFP, KW_SUPER, KW_SWITCH, KW_SYNCHRONIZED, KW_THIS, KW_THROW, KW_THROWS, KW_TRANSIENT, KW_TRY, KW_VOID, KW_VOLATILE, KW_WHILE, KW_words, OP_AND_ASG, OP_ASG, OP_AT, OP_base, OP_BINAND, OP_binary, OP_BINNOT, OP_BINOR, OP_BINXOR, OP_COLON, OP_COMMA, OP_DEC, OP_DIV, OP_DIV_ASG, OP_DOT, OP_ELLIPSIS, OP_EQ, OP_GE, OP_GT, OP_HASH, OP_INC, OP_LBRACE, OP_LBRACKET, OP_LE, OP_LOGAND, OP_LOGNOT, OP_LOGOR, OP_LPAREN, OP_LSH, OP_LSH_ASG, OP_LT, OP_max, OP_MINUS, OP_MINUS_ASG, OP_MOD, OP_MOD_ASG, OP_MUL, OP_MUL_ASG, OP_NE, OP_OR_ASG, OP_PLUS, OP_PLUS_ASG, OP_prefix, OP_QUES, OP_RBRACE, OP_RBRACKET, OP_RPAREN, OP_RSH, OP_RSH_ASG, OP_SEMI, OP_URSH, OP_URSH_ASG, OP_words, OP_XOR_ASG, TK_BOOLEAN_LITERAL, TK_CHAR_LITERAL, TK_DOC_COMMENT, TK_DOUBLE_LITERAL, TK_EOF, TK_FLOAT_LITERAL, TK_IDENTIFIER, TK_INT_LITERAL, TK_LITERAL_base, TK_LITERAL_max, TK_LONG_LITERAL, TK_max, TK_MULTI_COMMENT, TK_NULL_LITERAL, TK_SINGLE_COMMENT, TK_SQLJ, TK_STRING_LITERAL, TK_WHITESPACE |
Fields inherited from interface oracle.javatools.parser.java.v2.JavaPreferences |
BLANKLINES_AFTER_LAST_MEMBER, BLANKLINES_BEFORE_DOC_COMMENT, BLANKLINES_BEFORE_FIELD, BLANKLINES_BEFORE_FIRST_CLASS, BLANKLINES_BEFORE_FIRST_MEMBER, BLANKLINES_BEFORE_MEMBER_CLASS, BLANKLINES_BEFORE_METHOD, BLANKLINES_EMPTY_ANONYMOUS, BLANKLINES_EMPTY_BLOCK, BLANKLINES_EMPTY_CLASS, BLANKLINES_EMPTY_METHOD, BLANKLINES_IMPORTS_AFTER, BLANKLINES_PACKAGE_AFTER, BLANKLINES_PRESERVE_COUNT, CLONE_QUALIFIES_TYPES, FALSE, IGNORED_I, IGNORED_Z, IMPORT_GROUP_IMPORTS, IMPORT_GROUP_PACKAGE_DEPTH, IMPORT_INNER_CLASS_NAME, IMPORT_NARROW_MEMBERS_THRESHOLD, IMPORT_NARROW_THRESHOLD, INDENT_BLOCK_CHILDREN, INDENT_CLASS_MEMBERS, INDENT_CONTROL_BLOCKS, INDENT_NUM_SPACES, INDENT_REPLACE_WITH_TABS, INDENT_SWITCH_CASES, INDENT_TAB_SIZE, INTEGER_ALWAYS_WRAP, INTEGER_NEVER_WRAP, INTEGER_WRAP_IF_LONG, MEMBER_ORDER, NEWLINE_AFTER_SWITCH_CASE, NEWLINE_ARRAY_BRACES, NEWLINE_BLOCK_BRACES, NEWLINE_CATCH, NEWLINE_CLASS_BRACES, NEWLINE_ELSE, NEWLINE_EXTENDS, NEWLINE_FINALLY, NEWLINE_IMPLEMENTS, NEWLINE_METHOD_BRACES, NEWLINE_THROWS, NEWLINE_WHILE, ONE, PREFERENCES_base, PREFERENCES_defaults, PREFERENCES_keys, PREFERENCES_max, PREFERENCES_sun, SPACE_ARGUMENTS_BEFORE, SPACE_ASSIGN_AROUND, SPACE_BINARYOP_AROUND, SPACE_BRACES_AROUND, SPACE_BRACKETS_WITHIN, SPACE_COLON_AFTER, SPACE_COLON_BEFORE, SPACE_COMMA_AFTER, SPACE_COMMA_BEFORE, SPACE_KEYWORD_AFTER, SPACE_OPENBRACE_BEFORE, SPACE_PARAMETERS_BEFORE, SPACE_PARENS_WITHIN, SPACE_QUESTION_AFTER, SPACE_QUESTION_BEFORE, SPACE_SEMICOLON_AFTER, SPACE_SEMICOLON_BEFORE, SPACE_TYPECAST_AFTER, TRI_ALWAYS_WRAP, TRI_NEVER_WRAP, TRI_WRAP_IF_LONG, TRUE, TWO, UNKNOWN_I, UNKNOWN_Z, WRAP_ALIGN, WRAP_ARRAY_CONSTANT, WRAP_BINARY_OPERATOR, WRAP_DOT_CHAIN, WRAP_EXTENDS, WRAP_FOR_STATEMENT, WRAP_INVOKE_ARGUMENTS, WRAP_LINE_WIDTH, WRAP_MODIFIERS, WRAP_PARAMETER_LIST, WRAP_QUES_OPERATOR, WRAP_THROWS, ZERO |
Fields inherited from interface oracle.javatools.parser.java.v2.JavadocTokens |
TAG_AUTHOR, TAG_base, TAG_CODE, TAG_DEPRECATED, TAG_DOCROOT, TAG_EXCEPTION, TAG_HIDDEN, TAG_INHERITDOC, TAG_inline, TAG_LINK, TAG_LINKPLAIN, TAG_LITERAL, TAG_max, TAG_PARAM, TAG_RETURN, TAG_SEE, TAG_SERIAL, TAG_SERIALDATA, TAG_SERIALFIELD, TAG_SINCE, TAG_THROWS, TAG_unknown, TAG_VALUE, TAG_VERSION, TAG_words, TK_DOC_base, TK_DOC_COLON, TK_DOC_COMMA, TK_DOC_DOT, TK_DOC_HASH, TK_DOC_LBRACE, TK_DOC_LINE_START, TK_DOC_LPAREN, TK_DOC_NEWLINE, TK_DOC_RBRACE, TK_DOC_RPAREN, TK_DOC_TEXT, TK_DOC_WHITESPACE |
Methods inherited from class oracle.javatools.parser.java.v2.internal.symbol.SymUtilities |
errorCannotLink, errorCycle, errorDifferentFile, errorHasParent, errorInvalidParent, errorInvalidRange, errorNoParent, errorNoTextBuffer, errorNoTokenArray, errorNoTransaction, errorOpenTransaction, errorSkeleton, errorSynthetic |
Methods inherited from class oracle.javatools.parser.java.v2.internal.InternalUtilities |
access2ty, error2category, error2message, error2severity, getAnnotationArguments, getOuterClassOfNonstaticInner, getOuterClassOfNonstaticInner, getUnresolvedAnnotationArguments, isCommentToken, kw2text, op2text, srcIsExpr, srcIsLexical, srcIsStmt, tag2name, ty2access |
Methods inherited from class oracle.javatools.parser.java.v2.common.CommonUtilities |
acquireTextBuffer, asg_op, classProcessed, containsClassThisSuper, createArrayType, createDiamondParameterizedType, createParameterizedMethod, createParameterizedType, createTypeErasedClass, createWildcardType, equals, equals, format, format, getAnnotation, getAnnotations, getClass, getClass, getClasses, getDeclaredAnnotation, getDeclaredClass, getDeclaredConstructor, getDeclaredField, getDeclaredFieldFromUniqueId, getDeclaredFieldFromUniqueId, getDeclaredMethod, getDeclaredMethodFromUniqueId, getDeclaredMethodFromUniqueId, getDeclaredMethods, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getField, getFields, getInstantiatedTypeToString, getMethod, getMethods, getMethods, getParameterTypes, getPrimitiveType, getSignature, getSignature, getSignature, getSignature, getSourceElement, getSourceElement, getSourceElement, getSourceElement, getSourceElement, getSourceElement, getTypeErasure, getTypeParameter, getTypeSignature, getTypeSignature, getTypeSignature, getUniqueIdentifier, getUniqueIdentifier, getUniqueIdentifier, getUniqueIdentifier, getUniqueIdentifier, getUniqueIdentifier, hasBoundsCircularity, hashCode, hashCode, immutableCopy, infix_op, isInheritedAnnotation, isInheritedAnnotation, isParameterizedMethod, isSameDeclaration, isSameDeclaration, isSameDeclaration, isValidImportName, isValidQualifiedName, isValidSimpleName, locateByUniqueIdentifier, matchMethod, mutableCopy, notImplementedYet, panic, panic, postfix_op, prefix_op, provider2jdkVersion, rel_op, releaseTextBuffer, shift_op, unsupported, unsupported |
Methods inherited from class oracle.javatools.parser.java.v2.util.Conversions |
applyAssignmentConversion, applyAssignmentConversion, applyAssignmentConversion, applyBinaryPromotion, applyBoxingConversion, applyBoxingConversion, applyCastingConversion, applyCastingConversion, applyMethodConversion, applyMethodConversion, applyNarrowingConversion, applyUnaryPromotion, applyUnboxingConversion, applyUnboxingConversion, applyWideningConversion, hasSubsignatureOf, inheritsFrom, isSubtypeOf, isSubtypeOfImpl, isSubtypeOfImpl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
public java.lang.Object data
- User data.
SourceVisitor
public SourceVisitor()
visit
public void visit(SourceElement subtree)
- Visits the given subtree using this visitor.
cancelSubtree
protected final void cancelSubtree()
- If called from during an enter(), then (upon return from the enter) the element will be exit()ed. The children of the current element will not be visited. If called from during an exit, no action is taken.
cancelAll
protected final void cancelAll()
- To be called during an enter() or an exit() of an element. Implicitly cancels the subtree visit. If called during an enter(), then (upon return from the enter) the element will be exit()ed and the remaining parents will be exit()ed as the visit walks back up to the root and then exits. If called during an exit(), then (upon return from the exit) the remaining parents will be exit()ed as the visit walks back up the root and then exits.
exit
protected final void exit()
- Exits the visit immediately.
whenEnterAnnotation
public void whenEnterAnnotation(SourceAnnotation sourceAnnotation)
whenExitAnnotation
public void whenExitAnnotation(SourceAnnotation sourceAnnotation)
whenEnterBlock
public void whenEnterBlock(SourceBlock sourceBlock)
whenExitBlock
public void whenExitBlock(SourceBlock sourceBlock)
whenEnterClass
public void whenEnterClass(SourceClass sourceClass)
whenExitClass
public void whenExitClass(SourceClass sourceClass)
whenEnterClassBody
public void whenEnterClassBody(SourceClassBody sourceClassBody)
whenExitClassBody
public void whenExitClassBody(SourceClassBody sourceClassBody)
whenEnterConstructorDeclaration
public void whenEnterConstructorDeclaration(SourceMethod sourceMethod)
whenExitConstructorDeclaration
public void whenExitConstructorDeclaration(SourceMethod sourceMethod)
whenEnterEnumConstantDeclaration
public void whenEnterEnumConstantDeclaration(SourceFieldDeclaration sourceFieldDeclaration)
whenExitEnumConstantDeclaration
public void whenExitEnumConstantDeclaration(SourceFieldDeclaration sourceFieldDeclaration)
whenEnterError
public void whenEnterError(SourceError sourceError)
whenExitError
public void whenExitError(SourceError sourceError)
whenEnterFieldDeclaration
public void whenEnterFieldDeclaration(SourceFieldDeclaration sourceFieldDeclaration)
whenExitFieldDeclaration
public void whenExitFieldDeclaration(SourceFieldDeclaration sourceFieldDeclaration)
whenEnterFieldVariable
public void whenEnterFieldVariable(SourceFieldVariable sourceFieldVariable)
whenExitFieldVariable
public void whenExitFieldVariable(SourceFieldVariable sourceFieldVariable)
whenEnterFile
public void whenEnterFile(SourceFile sourceFile)
whenExitFile
public void whenExitFile(SourceFile sourceFile)
whenEnterFormals
public void whenEnterFormals(SourceFormalParameterList sourceFormalParameters)
whenExitFormals
public void whenExitFormals(SourceFormalParameterList sourceFormalParameters)
whenEnterFormalParameter
public void whenEnterFormalParameter(SourceFormalParameter sourceVariable)
whenExitFormalParameter
public void whenExitFormalParameter(SourceFormalParameter sourceVariable)
whenEnterImportDeclaration
public void whenEnterImportDeclaration(SourceImport sourceImport)
whenExitImportDeclaration
public void whenExitImportDeclaration(SourceImport sourceImport)
whenEnterInitializer
public void whenEnterInitializer(SourceClassInitializer sourceClassInitializer)
whenExitInitializer
public void whenExitInitializer(SourceClassInitializer sourceClassInitializer)
whenEnterLocals
public void whenEnterLocals(SourceLocalVariableDeclaration sourceLocalsDeclaration)
whenExitLocals
public void whenExitLocals(SourceLocalVariableDeclaration sourceLocalsDeclaration)
whenEnterLocalVariable
public void whenEnterLocalVariable(SourceLocalVariable sourceLocalVariable)
whenExitLocalVariable
public void whenExitLocalVariable(SourceLocalVariable sourceLocalVariable)
whenEnterMethodDeclaration
public void whenEnterMethodDeclaration(SourceMethod sourceMethod)
whenExitMethodDeclaration
public void whenExitMethodDeclaration(SourceMethod sourceMethod)
whenEnterName
public void whenEnterName(SourceName sourceName)
whenExitName
public void whenExitName(SourceName sourceName)
whenEnterPackageDeclaration
public void whenEnterPackageDeclaration(SourcePackage sourcePackage)
whenExitPackageDeclaration
public void whenExitPackageDeclaration(SourcePackage sourcePackage)
whenEnterSuperclassClause
public void whenEnterSuperclassClause(SourceSuperclassClause sourceSuperclassClause)
whenExitSuperclassClause
public void whenExitSuperclassClause(SourceSuperclassClause sourceSuperclassClause)
whenEnterInterfacesClause
public void whenEnterInterfacesClause(SourceInterfacesClause sourceInterfacesClause)
whenExitInterfacesClause
public void whenExitInterfacesClause(SourceInterfacesClause sourceInterfacesClause)
whenEnterSwitchLabel
public void whenEnterSwitchLabel(SourceSwitchLabel sourceSwitchLabel)
whenExitSwitchLabel
public void whenExitSwitchLabel(SourceSwitchLabel sourceSwitchLabel)
whenEnterThrowsClause
public void whenEnterThrowsClause(SourceThrowsClause sourceThrowsClause)
whenExitThrowsClause
public void whenExitThrowsClause(SourceThrowsClause sourceThrowsClause)
whenEnterTypeArgument
public void whenEnterTypeArgument(SourceTypeArgument sourceTypeArgument)
whenExitTypeArgument
public void whenExitTypeArgument(SourceTypeArgument sourceTypeArgument)
whenEnterTypeParameter
public void whenEnterTypeParameter(SourceTypeParameter sourceTypeParameter)
whenExitTypeParameter
public void whenExitTypeParameter(SourceTypeParameter sourceTypeParameter)
whenEnterTypeRef
public void whenEnterTypeRef(SourceTypeReference sourceType)
whenExitTypeRef
public void whenExitTypeRef(SourceTypeReference sourceType)
whenEnterAssertStatement
public void whenEnterAssertStatement(SourceAssertStatement sourceAssertStatement)
whenExitAssertStatement
public void whenExitAssertStatement(SourceAssertStatement sourceAssertStatement)
whenEnterBlockStatement
public void whenEnterBlockStatement(SourceBlockStatement sourceBlockStatement)
whenExitBlockStatement
public void whenExitBlockStatement(SourceBlockStatement sourceBlockStatement)
whenEnterBreakStatement
public void whenEnterBreakStatement(SourceBreakStatement sourceBreakStatement)
whenExitBreakStatement
public void whenExitBreakStatement(SourceBreakStatement sourceBreakStatement)
whenEnterCatchStatement
public void whenEnterCatchStatement(SourceCatchClause sourceCatchClause)
whenExitCatchStatement
public void whenExitCatchStatement(SourceCatchClause sourceCatchClause)
whenEnterCatchParameter
public void whenEnterCatchParameter(SourceCatchParameter sourceCatchParameter)
whenExitCatchParameter
public void whenExitCatchParameter(SourceCatchParameter sourceCatchParameter)
whenEnterContinueStatement
public void whenEnterContinueStatement(SourceContinueStatement sourceContinueStatement)
whenExitContinueStatement
public void whenExitContinueStatement(SourceContinueStatement sourceContinueStatement)
whenEnterDoStatement
public void whenEnterDoStatement(SourceDoStatement sourceDoStatement)
whenExitDoStatement
public void whenExitDoStatement(SourceDoStatement sourceDoStatement)
whenEnterElseStatement
public void whenEnterElseStatement(SourceElseClause sourceElseClause)
whenExitElseStatement
public void whenExitElseStatement(SourceElseClause sourceElseClause)
whenEnterEmptyStatement
public void whenEnterEmptyStatement(SourceEmptyStatement sourceEmptyStatement)
whenExitEmptyStatement
public void whenExitEmptyStatement(SourceEmptyStatement sourceEmptyStatement)
whenEnterExpressionStatement
public void whenEnterExpressionStatement(SourceExpressionStatement sourceExpressionStatement)
whenExitExpressionStatement
public void whenExitExpressionStatement(SourceExpressionStatement sourceExpressionStatement)
whenEnterFinallyStatement
public void whenEnterFinallyStatement(SourceFinallyClause sourceFinallyClause)
whenExitFinallyStatement
public void whenExitFinallyStatement(SourceFinallyClause sourceFinallyClause)
whenEnterForStatement
public void whenEnterForStatement(SourceForStatement sourceForStatement)
whenExitForStatement
public void whenExitForStatement(SourceForStatement sourceForStatement)
whenEnterIfStatement
public void whenEnterIfStatement(SourceIfStatement sourceIfStatement)
whenExitIfStatement
public void whenExitIfStatement(SourceIfStatement sourceIfStatement)
whenEnterStatementLabel
public void whenEnterStatementLabel(SourceStatementLabel sourceStatementLabel)
whenExitStatementLabel
public void whenExitStatementLabel(SourceStatementLabel sourceStatementLabel)
whenEnterReturnStatement
public void whenEnterReturnStatement(SourceReturnStatement sourceReturnStatement)
whenExitReturnStatement
public void whenExitReturnStatement(SourceReturnStatement sourceReturnStatement)
whenEnterSwitchStatement
public void whenEnterSwitchStatement(SourceSwitchStatement sourceSwitchStatement)
whenExitSwitchStatement
public void whenExitSwitchStatement(SourceSwitchStatement sourceSwitchStatement)
whenEnterSynchStatement
public void whenEnterSynchStatement(SourceSynchStatement sourceSynchStatement)
whenExitSynchStatement
public void whenExitSynchStatement(SourceSynchStatement sourceSynchStatement)
whenEnterThrowStatement
public void whenEnterThrowStatement(SourceThrowStatement sourceThrowStatement)
whenExitThrowStatement
public void whenExitThrowStatement(SourceThrowStatement sourceThrowStatement)
whenEnterTryStatement
public void whenEnterTryStatement(SourceTryStatement sourceTryStatement)
whenExitTryStatement
public void whenExitTryStatement(SourceTryStatement sourceTryStatement)
whenEnterWhileStatement
public void whenEnterWhileStatement(SourceWhileStatement sourceWhileStatement)
whenExitWhileStatement
public void whenExitWhileStatement(SourceWhileStatement sourceWhileStatement)
whenEnterAnnotationExpression
public void whenEnterAnnotationExpression(SourceAnnotationExpression sourceAnnotationExpression)
whenExitAnnotationExpression
public void whenExitAnnotationExpression(SourceAnnotationExpression sourceAnnotationExpression)
whenEnterArrayAccessExpression
public void whenEnterArrayAccessExpression(SourceArrayAccessExpression sourceArrayAccessExpression)
whenExitArrayAccessExpression
public void whenExitArrayAccessExpression(SourceArrayAccessExpression sourceArrayAccessExpression)
whenEnterNewArrayExpression
public void whenEnterNewArrayExpression(SourceNewArrayExpression sourceNewArrayExpression)
whenExitNewArrayExpression
public void whenExitNewArrayExpression(SourceNewArrayExpression sourceNewArrayExpression)
whenEnterNewClassExpression
public void whenEnterNewClassExpression(SourceNewClassExpression sourceNewClassExpression)
whenExitNewClassExpression
public void whenExitNewClassExpression(SourceNewClassExpression sourceNewClassExpression)
whenEnterDotExpression
public void whenEnterDotExpression(SourceDotExpression sourceDotExpression)
whenExitDotExpression
public void whenExitDotExpression(SourceDotExpression sourceDotExpression)
whenEnterInfixExpression
public void whenEnterInfixExpression(SourceInfixExpression sourceInfixExpression)
whenExitInfixExpression
public void whenExitInfixExpression(SourceInfixExpression sourceInfixExpression)
whenEnterAssignmentExpression
public void whenEnterAssignmentExpression(SourceAssignmentExpression sourceAssignmentExpression)
whenExitAssignmentExpression
public void whenExitAssignmentExpression(SourceAssignmentExpression sourceAssignmentExpression)
whenEnterListExpression
public void whenEnterListExpression(SourceListExpression sourceListExpression)
whenExitListExpression
public void whenExitListExpression(SourceListExpression sourceListExpression)
whenEnterLiteralExpression
public void whenEnterLiteralExpression(SourceLiteralExpression sourceLiteralExpression)
whenExitLiteralExpression
public void whenExitLiteralExpression(SourceLiteralExpression sourceLiteralExpression)
whenEnterMethodCallExpression
public void whenEnterMethodCallExpression(SourceMethodCallExpression sourceMethodCallExpression)
whenExitMethodCallExpression
public void whenExitMethodCallExpression(SourceMethodCallExpression sourceMethodCallExpression)
whenEnterSimpleNameExpression
public void whenEnterSimpleNameExpression(SourceSimpleNameExpression sourceSimpleNameExpression)
whenExitSimpleNameExpression
public void whenExitSimpleNameExpression(SourceSimpleNameExpression sourceSimpleNameExpression)
whenEnterQuestionExpression
public void whenEnterQuestionExpression(SourceQuestionExpression sourceQuestionExpression)
whenExitQuestionExpression
public void whenExitQuestionExpression(SourceQuestionExpression sourceQuestionExpression)
whenEnterTypeExpression
public void whenEnterTypeExpression(SourceTypeExpression sourceTypeExpression)
whenExitTypeExpression
public void whenExitTypeExpression(SourceTypeExpression sourceTypeExpression)
whenEnterTypecastExpression
public void whenEnterTypecastExpression(SourceTypecastExpression sourceTypecastExpression)
whenExitTypecastExpression
public void whenExitTypecastExpression(SourceTypecastExpression sourceTypecastExpression)
whenEnterUnaryExpression
public void whenEnterUnaryExpression(SourceUnaryExpression sourceUnaryExpression)
whenExitUnaryExpression
public void whenExitUnaryExpression(SourceUnaryExpression sourceUnaryExpression)
whenEnterWrapperExpression
public void whenEnterWrapperExpression(SourceWrapperExpression sourceWrapperExpression)
whenExitWrapperExpression
public void whenExitWrapperExpression(SourceWrapperExpression sourceWrapperExpression)
whenEnterDocComments
public void whenEnterDocComments(SourceDocComment sourceDocComment)
whenExitDocComments
public void whenExitDocComments(SourceDocComment sourceDocComment)
whenEnterDocTextFragment
public void whenEnterDocTextFragment(SourceDocTextFragment sourceDocTextFragment)
whenExitDocTextFragment
public void whenExitDocTextFragment(SourceDocTextFragment sourceDocTextFragment)
whenEnterDocTagName
public void whenEnterDocTagName(SourceDocTagName sourceDocTagName)
whenExitDocTagName
public void whenExitDocTagName(SourceDocTagName sourceDocTagName)
whenEnterDocReference
public void whenEnterDocReference(SourceDocReference sourceDocReference)
whenExitDocReference
public void whenExitDocReference(SourceDocReference sourceDocReference)
whenEnterDocDescription
public void whenEnterDocDescription(SourceDocDescription sourceDocDescription)
whenExitDocDescription
public void whenExitDocDescription(SourceDocDescription sourceDocDescription)
whenEnterDocComment
public void whenEnterDocComment(SourceDocComment sourceDocComment)
whenExitDocComment
public void whenExitDocComment(SourceDocComment sourceDocComment)
whenEnterDocBlockTag
public void whenEnterDocBlockTag(SourceDocBlockTag sourceDocBlockTag)
whenExitDocBlockTag
public void whenExitDocBlockTag(SourceDocBlockTag sourceDocBlockTag)
whenEnterDocInlineTag
public void whenEnterDocInlineTag(SourceDocInlineTag sourceDocInlineTag)
whenExitDocInlineTag
public void whenExitDocInlineTag(SourceDocInlineTag sourceDocInlineTag)
enter
protected final boolean enter(oracle.javatools.parser.java.v2.internal.symbol.Sym sym)
-
- Overrides:
enter
in class oracle.javatools.parser.java.v2.internal.symbol.Sym.SymTraversal
leave
protected final boolean leave(oracle.javatools.parser.java.v2.internal.symbol.Sym sym)
-
- Overrides:
leave
in class oracle.javatools.parser.java.v2.internal.symbol.Sym.SymTraversal
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.