Java Doc for Elements.java in  » 6.0-JDK-Modules-sun » javac-compiler » javax » lang » model » util » 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 » 6.0 JDK Modules sun » javac compiler » javax.lang.model.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.lang.model.util.Elements

All known Subclasses:   com.sun.tools.javac.model.JavacElements,
Elements
public interface Elements (Code)
Utility methods for operating on program elements.

Compatibility Note: Methods may be added to this interface in future releases of the platform.
author:
   Joseph D. Darcy
author:
   Scott Seligman
author:
   Peter von der Ahé
version:
   1.17 07/05/05
See Also:   javax.annotation.processing.ProcessingEnvironment.getElementUtils
since:
   1.6





Method Summary
 List<? extends AnnotationMirror>getAllAnnotationMirrors(Element e)
     Returns all annotations of an element, whether inherited or directly present.
 List<? extends Element>getAllMembers(TypeElement type)
     Returns all members of a type element, whether inherited or declared directly.
 NamegetBinaryName(TypeElement type)
     Returns the binary name of a type element.
 StringgetConstantExpression(Object value)
     Returns the text of a constant expression representing a primitive value or a string.
 StringgetDocComment(Element e)
     Returns the text of the documentation ("Javadoc") comment of an element.
 Map<? extends ExecutableElement, ? extends AnnotationValue>getElementValuesWithDefaults(AnnotationMirror a)
     Returns the values of an annotation's elements, including defaults.
 NamegetName(CharSequence cs)
     Return a name with the same sequence of characters as the argument.
 PackageElementgetPackageElement(CharSequence name)
     Returns a package given its fully qualified name.
 PackageElementgetPackageOf(Element type)
     Returns the package of an element.
 TypeElementgetTypeElement(CharSequence name)
     Returns a type element given its canonical name.
 booleanhides(Element hider, Element hidden)
     Tests whether one type, method, or field hides another.
 booleanisDeprecated(Element e)
     Returns true if the element is deprecated, false otherwise.
 booleanoverrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement type)
    
 voidprintElements(java.io.Writer w, Element... elements)
     Prints a representation of the elements to the given writer in the specified order.



Method Detail
getAllAnnotationMirrors
List<? extends AnnotationMirror> getAllAnnotationMirrors(Element e)(Code)
Returns all annotations of an element, whether inherited or directly present.
Parameters:
  e - the element being examined all annotations of the element
See Also:   Element.getAnnotationMirrors



getAllMembers
List<? extends Element> getAllMembers(TypeElement type)(Code)
Returns all members of a type element, whether inherited or declared directly. For a class the result also includes its constructors, but not local or anonymous classes.

Note that elements of certain kinds can be isolated using methods in ElementFilter .
Parameters:
  type - the type being examined all members of the type
See Also:   Element.getEnclosedElements




getBinaryName
Name getBinaryName(TypeElement type)(Code)
Returns the binary name of a type element.
Parameters:
  type - the type element being examined the binary name
See Also:   TypeElement.getQualifiedName



getConstantExpression
String getConstantExpression(Object value)(Code)
Returns the text of a constant expression representing a primitive value or a string. The text returned is in a form suitable for representing the value in source code.
Parameters:
  value - a primitive value or string the text of a constant expression
throws:
  IllegalArgumentException - if the argument is not a primitivevalue or string
See Also:   VariableElement.getConstantValue



getDocComment
String getDocComment(Element e)(Code)
Returns the text of the documentation ("Javadoc") comment of an element.
Parameters:
  e - the element being examined the documentation comment of the element, or null if there is none



getElementValuesWithDefaults
Map<? extends ExecutableElement, ? extends AnnotationValue> getElementValuesWithDefaults(AnnotationMirror a)(Code)
Returns the values of an annotation's elements, including defaults.
See Also:   AnnotationMirror.getElementValues
Parameters:
  a - annotation to examine the values of the annotation's elements, including defaults



getName
Name getName(CharSequence cs)(Code)
Return a name with the same sequence of characters as the argument.
Parameters:
  cs - the character sequence to return as a name



getPackageElement
PackageElement getPackageElement(CharSequence name)(Code)
Returns a package given its fully qualified name.
Parameters:
  name - fully qualified package name, or "" for an unnamed package the named package, or null if it cannot be found



getPackageOf
PackageElement getPackageOf(Element type)(Code)
Returns the package of an element. The package of a package is itself.
Parameters:
  type - the element being examined the package of an element



getTypeElement
TypeElement getTypeElement(CharSequence name)(Code)
Returns a type element given its canonical name.
Parameters:
  name - the canonical name the named type element, or null if it cannot be found



hides
boolean hides(Element hider, Element hidden)(Code)
Tests whether one type, method, or field hides another.
Parameters:
  hider - the first element
Parameters:
  hidden - the second element true if and only if the first element hidesthe second



isDeprecated
boolean isDeprecated(Element e)(Code)
Returns true if the element is deprecated, false otherwise.
Parameters:
  e - the element being examined true if the element is deprecated, false otherwise



overrides
boolean overrides(ExecutableElement overrider, ExecutableElement overridden, TypeElement type)(Code)



printElements
void printElements(java.io.Writer w, Element... elements)(Code)
Prints a representation of the elements to the given writer in the specified order. The main purpose of this method is for diagnostics. The exact format of the output is not specified and is subject to change.
Parameters:
  w - the writer to print the output to
Parameters:
  elements - the elements to print



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