Java Doc for NodeFinder.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » internal » corext » dom » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » jdt » org.eclipse.jdt.internal.corext.dom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.jdt.internal.corext.dom.GenericVisitor
   org.eclipse.jdt.internal.corext.dom.NodeFinder

NodeFinder
public class NodeFinder extends GenericVisitor (Code)
For a give range finds the node covered and the node covering.
since:
   2.1



Constructor Summary
public  NodeFinder(int offset, int length)
    

Method Summary
public  ASTNodegetCoveredNode()
     Returns the covered node.
public  ASTNodegetCoveringNode()
     Returns the covering node.
public static  ASTNodeperform(ASTNode root, int start, int length)
     A visitor that maps a selection to a given ASTNode.
public static  ASTNodeperform(ASTNode root, ISourceRange range)
    
public static  ASTNodeperform(ASTNode root, int start, int length, ITypeRoot source)
     A visitor that maps a selection to a given ASTNode.
protected  booleanvisitNode(ASTNode node)
    


Constructor Detail
NodeFinder
public NodeFinder(int offset, int length)(Code)




Method Detail
getCoveredNode
public ASTNode getCoveredNode()(Code)
Returns the covered node. If more than one nodes are covered by the selection, the returned node is first covered node found in a top-down traversal of the AST ASTNode



getCoveringNode
public ASTNode getCoveringNode()(Code)
Returns the covering node. If more than one nodes are covering the selection, the returned node is last covering node found in a top-down traversal of the AST ASTNode



perform
public static ASTNode perform(ASTNode root, int start, int length)(Code)
A visitor that maps a selection to a given ASTNode. The result node is determined as follows:
  • first the visitor tries to find a node with the exact start and length
  • if no such node exists than the node that encloses the range defined by start and end is returned.
  • if the length is zero than also nodes are considered where the node's start or end position matches start.
  • otherwise null is returned.

Parameters:
  root - the root node from which the search starts
Parameters:
  start - the start offset
Parameters:
  length - the length the result node
since:
   2.1



perform
public static ASTNode perform(ASTNode root, ISourceRange range)(Code)



perform
public static ASTNode perform(ASTNode root, int start, int length, ITypeRoot source) throws JavaModelException(Code)
A visitor that maps a selection to a given ASTNode. The result node is determined as follows:
  • first the visitor tries to find a node that is covered by start and length where either start and length exactly matches the node or where the text covered before and after the node only consists of white spaces or comments.
  • if no such node exists than the node that encloses the range defined by start and end is returned.
  • if the length is zero than also nodes are considered where the node's start or end position matches start.
  • otherwise null is returned.

Parameters:
  root - the root node from which the search starts
Parameters:
  start - the start offset
Parameters:
  length - the length
Parameters:
  source - the source of the compilation unit the result node
throws:
  JavaModelException - if an error occurs in the Java model
since:
   3.0



visitNode
protected boolean visitNode(ASTNode node)(Code)



Methods inherited from org.eclipse.jdt.internal.corext.dom.GenericVisitor
public void endVisit(AnonymousClassDeclaration node)(Code)(Java Doc)
public void endVisit(ArrayAccess node)(Code)(Java Doc)
public void endVisit(ArrayCreation node)(Code)(Java Doc)
public void endVisit(ArrayInitializer node)(Code)(Java Doc)
public void endVisit(ArrayType node)(Code)(Java Doc)
public void endVisit(AssertStatement node)(Code)(Java Doc)
public void endVisit(Assignment node)(Code)(Java Doc)
public void endVisit(Block node)(Code)(Java Doc)
public void endVisit(BooleanLiteral node)(Code)(Java Doc)
public void endVisit(BreakStatement node)(Code)(Java Doc)
public void endVisit(CastExpression node)(Code)(Java Doc)
public void endVisit(CatchClause node)(Code)(Java Doc)
public void endVisit(CharacterLiteral node)(Code)(Java Doc)
public void endVisit(ClassInstanceCreation node)(Code)(Java Doc)
public void endVisit(CompilationUnit node)(Code)(Java Doc)
public void endVisit(ConditionalExpression node)(Code)(Java Doc)
public void endVisit(ConstructorInvocation node)(Code)(Java Doc)
public void endVisit(ContinueStatement node)(Code)(Java Doc)
public void endVisit(DoStatement node)(Code)(Java Doc)
public void endVisit(EmptyStatement node)(Code)(Java Doc)
public void endVisit(ExpressionStatement node)(Code)(Java Doc)
public void endVisit(FieldAccess node)(Code)(Java Doc)
public void endVisit(FieldDeclaration node)(Code)(Java Doc)
public void endVisit(ForStatement node)(Code)(Java Doc)
public void endVisit(IfStatement node)(Code)(Java Doc)
public void endVisit(ImportDeclaration node)(Code)(Java Doc)
public void endVisit(InfixExpression node)(Code)(Java Doc)
public void endVisit(InstanceofExpression node)(Code)(Java Doc)
public void endVisit(Initializer node)(Code)(Java Doc)
public void endVisit(Javadoc node)(Code)(Java Doc)
public void endVisit(LabeledStatement node)(Code)(Java Doc)
public void endVisit(MethodDeclaration node)(Code)(Java Doc)
public void endVisit(MethodInvocation node)(Code)(Java Doc)
public void endVisit(NullLiteral node)(Code)(Java Doc)
public void endVisit(NumberLiteral node)(Code)(Java Doc)
public void endVisit(PackageDeclaration node)(Code)(Java Doc)
public void endVisit(ParenthesizedExpression node)(Code)(Java Doc)
public void endVisit(PostfixExpression node)(Code)(Java Doc)
public void endVisit(PrefixExpression node)(Code)(Java Doc)
public void endVisit(PrimitiveType node)(Code)(Java Doc)
public void endVisit(QualifiedName node)(Code)(Java Doc)
public void endVisit(ReturnStatement node)(Code)(Java Doc)
public void endVisit(SimpleName node)(Code)(Java Doc)
public void endVisit(SimpleType node)(Code)(Java Doc)
public void endVisit(StringLiteral node)(Code)(Java Doc)
public void endVisit(SuperConstructorInvocation node)(Code)(Java Doc)
public void endVisit(SuperFieldAccess node)(Code)(Java Doc)
public void endVisit(SuperMethodInvocation node)(Code)(Java Doc)
public void endVisit(SwitchCase node)(Code)(Java Doc)
public void endVisit(SwitchStatement node)(Code)(Java Doc)
public void endVisit(SynchronizedStatement node)(Code)(Java Doc)
public void endVisit(ThisExpression node)(Code)(Java Doc)
public void endVisit(ThrowStatement node)(Code)(Java Doc)
public void endVisit(TryStatement node)(Code)(Java Doc)
public void endVisit(TypeDeclaration node)(Code)(Java Doc)
public void endVisit(TypeDeclarationStatement node)(Code)(Java Doc)
public void endVisit(TypeLiteral node)(Code)(Java Doc)
public void endVisit(SingleVariableDeclaration node)(Code)(Java Doc)
public void endVisit(VariableDeclarationExpression node)(Code)(Java Doc)
public void endVisit(VariableDeclarationStatement node)(Code)(Java Doc)
public void endVisit(VariableDeclarationFragment node)(Code)(Java Doc)
public void endVisit(WhileStatement node)(Code)(Java Doc)
public void endVisit(AnnotationTypeDeclaration node)(Code)(Java Doc)
public void endVisit(AnnotationTypeMemberDeclaration node)(Code)(Java Doc)
public void endVisit(BlockComment node)(Code)(Java Doc)
public void endVisit(EnhancedForStatement node)(Code)(Java Doc)
public void endVisit(EnumConstantDeclaration node)(Code)(Java Doc)
public void endVisit(EnumDeclaration node)(Code)(Java Doc)
public void endVisit(LineComment node)(Code)(Java Doc)
public void endVisit(MarkerAnnotation node)(Code)(Java Doc)
public void endVisit(MemberRef node)(Code)(Java Doc)
public void endVisit(MemberValuePair node)(Code)(Java Doc)
public void endVisit(MethodRef node)(Code)(Java Doc)
public void endVisit(MethodRefParameter node)(Code)(Java Doc)
public void endVisit(Modifier node)(Code)(Java Doc)
public void endVisit(NormalAnnotation node)(Code)(Java Doc)
public void endVisit(ParameterizedType node)(Code)(Java Doc)
public void endVisit(QualifiedType node)(Code)(Java Doc)
public void endVisit(SingleMemberAnnotation node)(Code)(Java Doc)
public void endVisit(TagElement node)(Code)(Java Doc)
public void endVisit(TextElement node)(Code)(Java Doc)
public void endVisit(TypeParameter node)(Code)(Java Doc)
public void endVisit(WildcardType node)(Code)(Java Doc)
protected void endVisitNode(ASTNode node)(Code)(Java Doc)
public boolean visit(AnonymousClassDeclaration node)(Code)(Java Doc)
public boolean visit(ArrayAccess node)(Code)(Java Doc)
public boolean visit(ArrayCreation node)(Code)(Java Doc)
public boolean visit(ArrayInitializer node)(Code)(Java Doc)
public boolean visit(ArrayType node)(Code)(Java Doc)
public boolean visit(AssertStatement node)(Code)(Java Doc)
public boolean visit(Assignment node)(Code)(Java Doc)
public boolean visit(Block node)(Code)(Java Doc)
public boolean visit(BooleanLiteral node)(Code)(Java Doc)
public boolean visit(BreakStatement node)(Code)(Java Doc)
public boolean visit(CastExpression node)(Code)(Java Doc)
public boolean visit(CatchClause node)(Code)(Java Doc)
public boolean visit(CharacterLiteral node)(Code)(Java Doc)
public boolean visit(ClassInstanceCreation node)(Code)(Java Doc)
public boolean visit(CompilationUnit node)(Code)(Java Doc)
public boolean visit(ConditionalExpression node)(Code)(Java Doc)
public boolean visit(ConstructorInvocation node)(Code)(Java Doc)
public boolean visit(ContinueStatement node)(Code)(Java Doc)
public boolean visit(DoStatement node)(Code)(Java Doc)
public boolean visit(EmptyStatement node)(Code)(Java Doc)
public boolean visit(ExpressionStatement node)(Code)(Java Doc)
public boolean visit(FieldAccess node)(Code)(Java Doc)
public boolean visit(FieldDeclaration node)(Code)(Java Doc)
public boolean visit(ForStatement node)(Code)(Java Doc)
public boolean visit(IfStatement node)(Code)(Java Doc)
public boolean visit(ImportDeclaration node)(Code)(Java Doc)
public boolean visit(InfixExpression node)(Code)(Java Doc)
public boolean visit(InstanceofExpression node)(Code)(Java Doc)
public boolean visit(Initializer node)(Code)(Java Doc)
public boolean visit(Javadoc node)(Code)(Java Doc)
public boolean visit(LabeledStatement node)(Code)(Java Doc)
public boolean visit(MethodDeclaration node)(Code)(Java Doc)
public boolean visit(MethodInvocation node)(Code)(Java Doc)
public boolean visit(NullLiteral node)(Code)(Java Doc)
public boolean visit(NumberLiteral node)(Code)(Java Doc)
public boolean visit(PackageDeclaration node)(Code)(Java Doc)
public boolean visit(ParenthesizedExpression node)(Code)(Java Doc)
public boolean visit(PostfixExpression node)(Code)(Java Doc)
public boolean visit(PrefixExpression node)(Code)(Java Doc)
public boolean visit(PrimitiveType node)(Code)(Java Doc)
public boolean visit(QualifiedName node)(Code)(Java Doc)
public boolean visit(ReturnStatement node)(Code)(Java Doc)
public boolean visit(SimpleName node)(Code)(Java Doc)
public boolean visit(SimpleType node)(Code)(Java Doc)
public boolean visit(StringLiteral node)(Code)(Java Doc)
public boolean visit(SuperConstructorInvocation node)(Code)(Java Doc)
public boolean visit(SuperFieldAccess node)(Code)(Java Doc)
public boolean visit(SuperMethodInvocation node)(Code)(Java Doc)
public boolean visit(SwitchCase node)(Code)(Java Doc)
public boolean visit(SwitchStatement node)(Code)(Java Doc)
public boolean visit(SynchronizedStatement node)(Code)(Java Doc)
public boolean visit(ThisExpression node)(Code)(Java Doc)
public boolean visit(ThrowStatement node)(Code)(Java Doc)
public boolean visit(TryStatement node)(Code)(Java Doc)
public boolean visit(TypeDeclaration node)(Code)(Java Doc)
public boolean visit(TypeDeclarationStatement node)(Code)(Java Doc)
public boolean visit(TypeLiteral node)(Code)(Java Doc)
public boolean visit(SingleVariableDeclaration node)(Code)(Java Doc)
public boolean visit(VariableDeclarationExpression node)(Code)(Java Doc)
public boolean visit(VariableDeclarationStatement node)(Code)(Java Doc)
public boolean visit(VariableDeclarationFragment node)(Code)(Java Doc)
public boolean visit(WhileStatement node)(Code)(Java Doc)
public boolean visit(AnnotationTypeDeclaration node)(Code)(Java Doc)
public boolean visit(AnnotationTypeMemberDeclaration node)(Code)(Java Doc)
public boolean visit(BlockComment node)(Code)(Java Doc)
public boolean visit(EnhancedForStatement node)(Code)(Java Doc)
public boolean visit(EnumConstantDeclaration node)(Code)(Java Doc)
public boolean visit(EnumDeclaration node)(Code)(Java Doc)
public boolean visit(LineComment node)(Code)(Java Doc)
public boolean visit(MarkerAnnotation node)(Code)(Java Doc)
public boolean visit(MemberRef node)(Code)(Java Doc)
public boolean visit(MemberValuePair node)(Code)(Java Doc)
public boolean visit(MethodRef node)(Code)(Java Doc)
public boolean visit(MethodRefParameter node)(Code)(Java Doc)
public boolean visit(Modifier node)(Code)(Java Doc)
public boolean visit(NormalAnnotation node)(Code)(Java Doc)
public boolean visit(ParameterizedType node)(Code)(Java Doc)
public boolean visit(QualifiedType node)(Code)(Java Doc)
public boolean visit(SingleMemberAnnotation node)(Code)(Java Doc)
public boolean visit(TagElement node)(Code)(Java Doc)
public boolean visit(TextElement node)(Code)(Java Doc)
public boolean visit(TypeParameter node)(Code)(Java Doc)
public boolean visit(WildcardType node)(Code)(Java Doc)
protected boolean visitNode(ASTNode node)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.