Java Doc for CtElement.java in  » Code-Analyzer » Spoon » spoon » reflect » 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 » Code Analyzer » Spoon » spoon.reflect.declaration 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


spoon.reflect.declaration.CtElement

All known Subclasses:   spoon.support.reflect.declaration.CtElementImpl,
CtElement
public interface CtElement extends FactoryAccessor,Comparable<CtElement>(Code)
This interface is the root interface for the metamodel elements (any program element).




Method Summary
 voidaccept(CtVisitor visitor)
     Accepts a visitor.
 List<E>getAnnotatedChildren(Class<? extends Annotation> annotationType)
     Gets the child elements annotated with the given annotation type's instances.
 AgetAnnotation(Class<A> annotationType)
     Searches for an annotation (proxy) of the given class that annotates the current element.
 CtAnnotation<A>getAnnotation(CtTypeReference<A> annotationType)
     Gets the annotation element for a given annotation type.
 Set<CtAnnotation<? extends Annotation>>getAnnotations()
     Returns the annotations that are present on this element.
 StringgetDocComment()
     Returns the text of the documentation ("javadoc") comment of this element.
 CtElementgetParent()
     Gets the parent of current element.
 PgetParent(Class<P> parentType)
     Gets the first parent that matches the given type.
 SourcePositiongetPosition()
    
 Set<CtTypeReference<?>>getReferencedTypes()
     Calculates and returns the set of all the types referenced by this element (and sub-elements in the AST).
 StringgetSignature()
     Gets the signature of the element.
 booleanhasParent(CtElement candidate)
     Tells if the given element is a direct or indirect parent.
 booleanisImplicit()
     Returns true if this element is implicit and automatically added by the Java compiler.
 voidreplace(CtElement element)
     Replaces this element by another one.
 voidreplace(Filter<? extends CtElement> replacementPoints, CtElement element)
     Replaces the elements that match the filter by the given element.
 voidsetAnnotations(Set<CtAnnotation<? extends Annotation>> annotation)
     Sets the annotations for this element.
 voidsetDocComment(String docComment)
     Sets the text of the documentation ("javadoc") comment of this declaration.
 voidsetImplicit(boolean b)
     Sets this element to be implicit (will not be printed).
 voidsetParent(CtElement element)
     Sets the parent element of the current element.
 voidsetPosition(SourcePosition position)
     Sets the position in the Java source file.
 voidsetPositions(SourcePosition position)
     Sets the position of this element and all its children element.



Method Detail
accept
void accept(CtVisitor visitor)(Code)
Accepts a visitor.
Parameters:
  visitor - to accept



getAnnotatedChildren
List<E> getAnnotatedChildren(Class<? extends Annotation> annotationType)(Code)
Gets the child elements annotated with the given annotation type's instances. <
Parameters:
  E - >the element's type
Parameters:
  annotationType - the annotation type all the child elements annotated with an instance of the givenannotation type



getAnnotation
A getAnnotation(Class<A> annotationType)(Code)
Searches for an annotation (proxy) of the given class that annotates the current element.

NOTE: before using an annotation proxy, you have to make sure that all the types referenced by the annotation have been compiled and are in the classpath so that accessed values can be converted into the actual types. Otherwise, use CtElement.getAnnotation(CtTypeReference) . <
Parameters:
  A - >the annotation's type
Parameters:
  annotationType - the annotation's class if found, returns a proxy for this annotation




getAnnotation
CtAnnotation<A> getAnnotation(CtTypeReference<A> annotationType)(Code)
Gets the annotation element for a given annotation type.
Parameters:
  annotationType - the annotation type the annotation if this element is annotated by one annotation ofthe given type



getAnnotations
Set<CtAnnotation<? extends Annotation>> getAnnotations()(Code)
Returns the annotations that are present on this element.



getDocComment
String getDocComment()(Code)
Returns the text of the documentation ("javadoc") comment of this element.



getParent
CtElement getParent()(Code)
Gets the parent of current element.



getParent
P getParent(Class<P> parentType)(Code)
Gets the first parent that matches the given type.



getPosition
SourcePosition getPosition()(Code)
Gets the position of this element in input source files Source file and line number of this element or null



getReferencedTypes
Set<CtTypeReference<?>> getReferencedTypes()(Code)
Calculates and returns the set of all the types referenced by this element (and sub-elements in the AST).



getSignature
String getSignature()(Code)
Gets the signature of the element.



hasParent
boolean hasParent(CtElement candidate)(Code)
Tells if the given element is a direct or indirect parent.



isImplicit
boolean isImplicit()(Code)
Returns true if this element is implicit and automatically added by the Java compiler.



replace
void replace(CtElement element)(Code)
Replaces this element by another one.



replace
void replace(Filter<? extends CtElement> replacementPoints, CtElement element)(Code)
Replaces the elements that match the filter by the given element.



setAnnotations
void setAnnotations(Set<CtAnnotation<? extends Annotation>> annotation)(Code)
Sets the annotations for this element.



setDocComment
void setDocComment(String docComment)(Code)
Sets the text of the documentation ("javadoc") comment of this declaration.



setImplicit
void setImplicit(boolean b)(Code)
Sets this element to be implicit (will not be printed).



setParent
void setParent(CtElement element)(Code)
Sets the parent element of the current element.
Parameters:
  element - parent



setPosition
void setPosition(SourcePosition position)(Code)
Sets the position in the Java source file. Note that this information is used to feed the line numbers in the generated bytecode if any (which is useful for debugging).
Parameters:
  position - of this element in the input source files



setPositions
void setPositions(SourcePosition position)(Code)
Sets the position of this element and all its children element. Note that this information is used to feed the line numbers in the generated bytecode if any (which is useful for debugging).
Parameters:
  position - of this element and all children in the input source file



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