Class ImportReferencesCollector
- Since:
- 1.10
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcollect(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 voidcollect(ASTNode node, IJavaProject project, org.eclipse.jface.text.Region rangeLimit, Collection<SimpleName> resultingTypeImports, Collection<SimpleName> resultingStaticImports) Collect import statements from an AST node.booleanvisit(ClassInstanceCreation node) Visits the given type-specific AST node.booleanvisit(ContinueStatement node) Visits the given type-specific AST node.booleanvisit(CreationReference node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(FieldAccess node) Visits the given type-specific AST node.booleanvisit(ImportDeclaration node) Visits the given type-specific AST node.booleanvisit(LabeledStatement node) Visits the given type-specific AST node.booleanvisit(MarkerAnnotation node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(MethodDeclaration node) Visits the given type-specific AST node.booleanvisit(MethodInvocation node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(MethodRefParameter node) Visits the given type-specific AST node.booleanvisit(ModuleQualifiedName node) Visits the given type-specific AST node.booleanvisit(NameQualifiedType node) Visits the given type-specific AST node.booleanvisit(NormalAnnotation node) Visits the given type-specific AST node.booleanvisit(PackageDeclaration node) Visits the given type-specific AST node.booleanvisit(ProvidesDirective node) Visits the given type-specific AST node.booleanvisit(QualifiedName node) Visits the given type-specific AST node.booleanvisit(QualifiedType node) Visits the given type-specific AST node.booleanvisit(SimpleName node) Visits the given type-specific AST node.booleanvisit(SimpleType node) Visits the given type-specific AST node.booleanvisit(SingleMemberAnnotation node) Visits the given type-specific AST node.booleanVisits the given type-specific AST node.booleanvisit(SuperFieldAccess node) Visits the given type-specific AST node.booleanvisit(SuperMethodReference node) Visits the given type-specific AST node.booleanvisit(TagElement node) Visits the given type-specific AST node.booleanvisit(ThisExpression node) Visits the given type-specific AST node.booleanvisit(TypeDeclaration node) Visits the given type-specific AST node.booleanvisit(TypeMethodReference node) Visits the given type-specific AST node.booleanvisit(UsesDirective node) Visits the given type-specific AST node.booleanvisit(YieldStatement node) Visits the given type-specific AST node.protected booleanMethods 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:
visitNodein classorg.eclipse.jdt.internal.corext.dom.GenericVisitor
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classASTVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and returns true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may re-implement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-
visit
Description copied from class:ASTVisitorVisits the given type-specific AST node.The default implementation does nothing and return true. Subclasses may reimplement.
- Overrides:
visitin classorg.eclipse.jdt.internal.corext.dom.GenericVisitor- Parameters:
node- the node to visit- Returns:
trueif the children of this node should be visited, andfalseif the children of this node should be skipped
-