Java Doc for Declaration.java in  » IDE-Eclipse » jdt » com » sun » mirror » declaration » 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 » com.sun.mirror.declaration 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.mirror.declaration.Declaration

All known Subclasses:   org.eclipse.jdt.apt.core.internal.declaration.EclipseDeclarationImpl,
Declaration
public interface Declaration (Code)
Represents the declaration of a program element such as a package, class, or method. Each declaration represents a static, language-level construct (and not, for example, a runtime construct of the virtual machine), and typically corresponds one-to-one with a particular fragment of source code.

Declarations should be compared using the Declaration.equals(Object) method. There is no guarantee that any particular declaration will always be represented by the same object.
author:
   Joseph D. Darcy
author:
   Scott Seligman
version:
   1.6 04/07/16
See Also:   Declarations
See Also:   TypeMirror
since:
   1.5





Method Summary
 voidaccept(DeclarationVisitor v)
     Applies a visitor to this declaration.
 booleanequals(Object obj)
     Tests whether an object represents the same declaration as this.
 AgetAnnotation(Class<A> annotationType)
     Returns the annotation of this declaration having the specified type.
 Collection<AnnotationMirror>getAnnotationMirrors()
     Returns the annotations that are directly present on this declaration.
 StringgetDocComment()
     Returns the text of the documentation ("javadoc") comment of this declaration.
 Collection<Modifier>getModifiers()
     Returns the modifiers of this declaration, excluding annotations.
 SourcePositiongetPosition()
     Returns the source position of the beginning of this declaration.
 StringgetSimpleName()
     Returns the simple (unqualified) name of this declaration.



Method Detail
accept
void accept(DeclarationVisitor v)(Code)
Applies a visitor to this declaration.
Parameters:
  v - the visitor operating on this declaration



equals
boolean equals(Object obj)(Code)
Tests whether an object represents the same declaration as this.
Parameters:
  obj - the object to be compared with this declaration true if the specified object represents the samedeclaration as this



getAnnotation
A getAnnotation(Class<A> annotationType)(Code)
Returns the annotation of this declaration having the specified type. The annotation may be either inherited or directly present on this declaration.

The annotation returned by this method could contain an element whose value is of type Class. This value cannot be returned directly: information necessary to locate and load a class (such as the class loader to use) is not available, and the class might not be loadable at all. Attempting to read a Class object by invoking the relevant method on the returned annotation will result in a MirroredTypeException , from which the corresponding TypeMirror may be extracted. Similarly, attempting to read a Class[]-valued element will result in a MirroredTypesException .

Note: This method is unlike others in this and related interfaces. It operates on run-time reflective information -- representations of annotation types currently loaded into the VM -- rather than on the mirrored representations defined by and used throughout these interfaces. It is intended for callers that are written to operate on a known, fixed set of annotation types.
<
Parameters:
  A - > the annotation type
Parameters:
  annotationType - the Class object corresponding tothe annotation type the annotation of this declaration having the specified type
See Also:   Declaration.getAnnotationMirrors()



getAnnotationMirrors
Collection<AnnotationMirror> getAnnotationMirrors()(Code)
Returns the annotations that are directly present on this declaration. the annotations directly present on this declaration;an empty collection if there are none



getDocComment
String getDocComment()(Code)
Returns the text of the documentation ("javadoc") comment of this declaration. the documentation comment of this declaration, or nullif there is none



getModifiers
Collection<Modifier> getModifiers()(Code)
Returns the modifiers of this declaration, excluding annotations. Implicit modifiers, such as the public and static modifiers of interface members, are included. the modifiers of this declaration in undefined order;an empty collection if there are none



getPosition
SourcePosition getPosition()(Code)
Returns the source position of the beginning of this declaration. Returns null if the position is unknown or not applicable.

This source position is intended for use in providing diagnostics, and indicates only approximately where a declaration begins. the source position of the beginning of this declaration,or null if the position is unknown or not applicable




getSimpleName
String getSimpleName()(Code)
Returns the simple (unqualified) name of this declaration. The name of a generic type does not include any reference to its formal type parameters. For example, the simple name of the interface declaration java.util.Set is "Set". If this declaration represents the empty package, an empty string is returned. If it represents a constructor, the simple name of its declaring class is returned. the simple name of this declaration



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