Class ImportReferencesCollector
- Since:
- 1.10
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
collect
(ASTNode node, IJavaProject project, org.eclipse.jface.text.Region rangeLimit, boolean skipMethodBodies, Collection<SimpleName> resultingTypeImports, Collection<SimpleName> resultingStaticImports) Collect import statements from an AST node.static void
collect
(ASTNode node, IJavaProject project, org.eclipse.jface.text.Region rangeLimit, Collection<SimpleName> resultingTypeImports, Collection<SimpleName> resultingStaticImports) Collect import statements from an AST node.boolean
visit
(ClassInstanceCreation node) Visits the given type-specific AST node.boolean
visit
(ContinueStatement node) Visits the given type-specific AST node.boolean
visit
(CreationReference node) Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit
(FieldAccess node) Visits the given type-specific AST node.boolean
visit
(ImportDeclaration node) Visits the given type-specific AST node.boolean
visit
(LabeledStatement node) Visits the given type-specific AST node.boolean
visit
(MarkerAnnotation node) Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit
(MethodDeclaration node) Visits the given type-specific AST node.boolean
visit
(MethodInvocation node) Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit
(MethodRefParameter node) Visits the given type-specific AST node.boolean
visit
(ModuleQualifiedName node) Visits the given type-specific AST node.boolean
visit
(NameQualifiedType node) Visits the given type-specific AST node.boolean
visit
(NormalAnnotation node) Visits the given type-specific AST node.boolean
visit
(PackageDeclaration node) Visits the given type-specific AST node.boolean
visit
(ProvidesDirective node) Visits the given type-specific AST node.boolean
visit
(QualifiedName node) Visits the given type-specific AST node.boolean
visit
(QualifiedType node) Visits the given type-specific AST node.boolean
visit
(SimpleName node) Visits the given type-specific AST node.boolean
visit
(SimpleType node) Visits the given type-specific AST node.boolean
visit
(SingleMemberAnnotation node) Visits the given type-specific AST node.boolean
Visits the given type-specific AST node.boolean
visit
(SuperFieldAccess node) Visits the given type-specific AST node.boolean
visit
(SuperMethodReference node) Visits the given type-specific AST node.boolean
visit
(TagElement node) Visits the given type-specific AST node.boolean
visit
(ThisExpression node) Visits the given type-specific AST node.boolean
visit
(TypeDeclaration node) Visits the given type-specific AST node.boolean
visit
(TypeMethodReference node) Visits the given type-specific AST node.boolean
visit
(UsesDirective node) Visits the given type-specific AST node.boolean
visit
(YieldStatement node) Visits the given type-specific AST node.protected boolean
Methods inherited from class org.eclipse.jdt.internal.corext.dom.GenericVisitor
endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisitNode, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Method Details
-
collect
public static void collect(ASTNode node, IJavaProject project, org.eclipse.jface.text.Region rangeLimit, Collection<SimpleName> resultingTypeImports, Collection<SimpleName> resultingStaticImports) Collect import statements from an AST node.- Parameters:
node
- The AST nodeproject
- The Java projectrangeLimit
- The range within the source fileresultingTypeImports
- The collected import referencesresultingStaticImports
- The collected static imports
-
collect
public static void collect(ASTNode node, IJavaProject project, org.eclipse.jface.text.Region rangeLimit, boolean skipMethodBodies, Collection<SimpleName> resultingTypeImports, Collection<SimpleName> resultingStaticImports) Collect import statements from an AST node.- Parameters:
node
- The AST nodeproject
- The Java projectrangeLimit
- The range within the source fileskipMethodBodies
- If set, do not visit method bodiesresultingTypeImports
- The collected import referencesresultingStaticImports
- The collected static imports
-
visitNode
- Overrides:
visitNode
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classASTVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and returns true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-
visit
Description copied from class:ASTVisitor
Visits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visit
in classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
- Parameters:
node
- the node to visit- Returns:
true
if the children of this node should be visited, andfalse
if the children of this node should be skipped
-