Java Doc for CompilerUtils.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » compiler » 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 » Library » Apache beehive 1.0.2 src » org.apache.beehive.netui.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.beehive.netui.compiler.CompilerUtils

CompilerUtils
public class CompilerUtils implements JpfLanguageConstants(Code)

Inner Class :public static class ExtendedCoreAnnotationProcessorEnv implements CoreAnnotationProcessorEnv
Inner Class :public static class BeanPropertyDescriptor
Inner Class :public static class BeanPropertyDeclaration extends BeanPropertyDescriptor
Inner Class :final public static class Mutable



Method Summary
public static  booleanannotationsAreEqual(AnnotationInstance a1, AnnotationInstance a2, boolean allowExactDuplicates, CoreAnnotationProcessorEnv env)
    
public static  FieldDeclarationfindField(TypeDeclaration jclass, String fieldName)
    
public static  ClassDeclarationfindInnerClass(TypeDeclaration jclass, String innerClassName)
    
public static  AnnotationInstancegetAnnotation(ClassDeclaration decl, String unqualifiedName, boolean inherited)
    
public static  AnnotationInstancegetAnnotation(Declaration element, String unqualifiedName)
    
public static  AnnotationInstancegetAnnotation(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  ListgetAnnotationArray(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  ListgetAnnotationArray(AnnotationValue value)
    
public static  ListgetAnnotationArrayValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull)
    
public static  AnnotationInstancegetAnnotationFullyQualified(Declaration element, String fullyQualifiedName)
    
public static  AnnotationValuegetAnnotationValue(Declaration element, String annotationName, String valueName)
    
public static  AnnotationValuegetAnnotationValue(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  TypeInstancegetArrayBaseType(ArrayType arrayType)
    
public static  CollectiongetBeanProperties(ClassDeclaration type, boolean getInheritedProperties)
    
public static  BeanPropertyDeclarationgetBeanProperty(MethodDeclaration method)
    
public static  BooleangetBoolean(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  BooleangetBooleanValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull)
    
public static  FieldDeclarationgetClassField(TypeDeclaration jclass, String fieldName, String desiredAnnotation)
    
public static  CollectiongetClassFields(TypeDeclaration jclass)
    
public static  MethodDeclarationgetClassMethod(TypeDeclaration jclass, String methodName, String desiredAnnotation)
    
public static  MethodDeclaration[]getClassMethods(TypeDeclaration jclass, String desiredAnnotation)
    
public static  CollectiongetClassNestedTypes(TypeDeclaration jclass)
    
public static  TypeDeclarationgetDeclaration(DeclaredType type)
    
public static  DeclaredTypegetDeclaredType(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  DoublegetDouble(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  StringgetEnumFieldName(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  StringgetEnumFieldName(AnnotationValue enumMember)
    
public static  FilegetFileRelativeToSourceFile(TypeDeclaration outerClass, String relativePath, CoreAnnotationProcessorEnv env)
    
public static  FloatgetFloat(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  StringgetFormClassName(TypeDeclaration jclass, CoreAnnotationProcessorEnv env)
     Get a Class.forName-able string for the given type signature.
public static  StringgetFormClassName(DeclaredType jclass, CoreAnnotationProcessorEnv env)
    
public static  TypeInstancegetGenericBoundsType(TypeInstance type)
    
public static  IntegergetInteger(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  StringgetLoadableName(TypeDeclaration jclass)
     Get the qualified name of the given class, with '$' used to separate inner classes; the returned string can be used with Class.forName().
public static  StringgetLoadableName(DeclaredType jclass)
    
public static  LonggetLong(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  TypeDeclarationgetOuterClass(MemberDeclaration classMember)
    
public static  TypeDeclarationgetOutermostClass(MemberDeclaration classMember)
    
public static  StringgetPathRelativeToPackage(String relativePath, PackageDeclaration packageDecl)
    
public static  StringgetQualifiedName(AnnotationInstance annotation)
    
public static  ReferenceTypegetReferenceType(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  StringgetSimpleName(AnnotationInstance annotation)
    
public static  FilegetSourceFile(TypeDeclaration decl, boolean mustBeNonNull)
    
public static  StringgetString(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  ListgetStringArray(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  ListgetStringArrayValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull)
    
public static  StringgetStringValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull)
    
public static  TypeInstancegetTypeInstance(AnnotationInstance annotation, String memberName, boolean defaultIsNull)
    
public static  ObjectgetValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull)
    
public static  String[]getWebContentRoots(CoreAnnotationProcessorEnv env)
    
public static  String[]getWebSourceRoots(CoreAnnotationProcessorEnv env)
    
public static  FilegetWebappRelativeFile(String webappRelativePath, boolean lookInSourceRoots, CoreAnnotationProcessorEnv env)
    
public static  booleanhasDefaultConstructor(TypeDeclaration jclass)
    
public static  StringinferModulePathFromType(TypeDeclaration type)
     Infers the Struts module path from the given controller class.
public static  TypeDeclarationinferTypeFromPath(String webappRelativePath, CoreAnnotationProcessorEnv env)
    
public static  booleanisAbsoluteURI(String uri)
     This is the same logic that we have in the runtime, in PageFlowRequestProcessor.
public static  booleanisAbsoluteURL(String path)
    
public static  booleanisAssignableFrom(String className, TypeInstance type, CoreAnnotationProcessorEnv env)
    
public static  booleanisAssignableFrom(TypeDeclaration base, TypeDeclaration typeDecl)
    
public static  booleanisAssignableFrom(TypeInstance base, TypeDeclaration cl)
    
public static  booleanisAssignableFrom(TypeDeclaration base, TypeInstance cl)
    
public static  booleanisAssignableFrom(String className, TypeDeclaration cl, CoreAnnotationProcessorEnv env)
    
public static  booleanisErrorString(Object str)
    
public static  booleanisJpfAnnotation(AnnotationInstance annotation, String unqualifiedName)
    
public static  booleanisOfClass(TypeInstance type, String className, CoreAnnotationProcessorEnv env)
    
public static  booleanisPageFlowClass(ClassDeclaration jclass, CoreAnnotationProcessorEnv env)
    
public static  StringisReconcilePhase(CoreAnnotationProcessorEnv env)
     Utility method to get the value of the "phase" option from the annotation processing environment.
public static  StringremoveFileExtension(String uri)
    
public static  booleantypesAreEqual(TypeDeclaration t1, TypeDeclaration t2)
    



Method Detail
annotationsAreEqual
public static boolean annotationsAreEqual(AnnotationInstance a1, AnnotationInstance a2, boolean allowExactDuplicates, CoreAnnotationProcessorEnv env)(Code)



findField
public static FieldDeclaration findField(TypeDeclaration jclass, String fieldName)(Code)



findInnerClass
public static ClassDeclaration findInnerClass(TypeDeclaration jclass, String innerClassName)(Code)



getAnnotation
public static AnnotationInstance getAnnotation(ClassDeclaration decl, String unqualifiedName, boolean inherited)(Code)



getAnnotation
public static AnnotationInstance getAnnotation(Declaration element, String unqualifiedName)(Code)



getAnnotation
public static AnnotationInstance getAnnotation(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getAnnotationArray
public static List getAnnotationArray(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getAnnotationArray
public static List getAnnotationArray(AnnotationValue value)(Code)



getAnnotationArrayValue
public static List getAnnotationArrayValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull)(Code)



getAnnotationFullyQualified
public static AnnotationInstance getAnnotationFullyQualified(Declaration element, String fullyQualifiedName)(Code)



getAnnotationValue
public static AnnotationValue getAnnotationValue(Declaration element, String annotationName, String valueName)(Code)



getAnnotationValue
public static AnnotationValue getAnnotationValue(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getArrayBaseType
public static TypeInstance getArrayBaseType(ArrayType arrayType)(Code)



getBeanProperties
public static Collection getBeanProperties(ClassDeclaration type, boolean getInheritedProperties)(Code)



getBeanProperty
public static BeanPropertyDeclaration getBeanProperty(MethodDeclaration method)(Code)



getBoolean
public static Boolean getBoolean(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getBooleanValue
public static Boolean getBooleanValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull)(Code)



getClassField
public static FieldDeclaration getClassField(TypeDeclaration jclass, String fieldName, String desiredAnnotation)(Code)



getClassFields
public static Collection getClassFields(TypeDeclaration jclass)(Code)



getClassMethod
public static MethodDeclaration getClassMethod(TypeDeclaration jclass, String methodName, String desiredAnnotation)(Code)



getClassMethods
public static MethodDeclaration[] getClassMethods(TypeDeclaration jclass, String desiredAnnotation)(Code)



getClassNestedTypes
public static Collection getClassNestedTypes(TypeDeclaration jclass)(Code)



getDeclaration
public static TypeDeclaration getDeclaration(DeclaredType type)(Code)



getDeclaredType
public static DeclaredType getDeclaredType(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getDouble
public static Double getDouble(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getEnumFieldName
public static String getEnumFieldName(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getEnumFieldName
public static String getEnumFieldName(AnnotationValue enumMember)(Code)



getFileRelativeToSourceFile
public static File getFileRelativeToSourceFile(TypeDeclaration outerClass, String relativePath, CoreAnnotationProcessorEnv env) throws FatalCompileTimeException(Code)



getFloat
public static Float getFloat(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getFormClassName
public static String getFormClassName(TypeDeclaration jclass, CoreAnnotationProcessorEnv env)(Code)
Get a Class.forName-able string for the given type signature.



getFormClassName
public static String getFormClassName(DeclaredType jclass, CoreAnnotationProcessorEnv env)(Code)



getGenericBoundsType
public static TypeInstance getGenericBoundsType(TypeInstance type)(Code)



getInteger
public static Integer getInteger(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getLoadableName
public static String getLoadableName(TypeDeclaration jclass)(Code)
Get the qualified name of the given class, with '$' used to separate inner classes; the returned string can be used with Class.forName().



getLoadableName
public static String getLoadableName(DeclaredType jclass)(Code)



getLong
public static Long getLong(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getOuterClass
public static TypeDeclaration getOuterClass(MemberDeclaration classMember)(Code)



getOutermostClass
public static TypeDeclaration getOutermostClass(MemberDeclaration classMember)(Code)



getPathRelativeToPackage
public static String getPathRelativeToPackage(String relativePath, PackageDeclaration packageDecl)(Code)



getQualifiedName
public static String getQualifiedName(AnnotationInstance annotation)(Code)



getReferenceType
public static ReferenceType getReferenceType(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getSimpleName
public static String getSimpleName(AnnotationInstance annotation)(Code)



getSourceFile
public static File getSourceFile(TypeDeclaration decl, boolean mustBeNonNull)(Code)



getString
public static String getString(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getStringArray
public static List getStringArray(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getStringArrayValue
public static List getStringArrayValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull)(Code)



getStringValue
public static String getStringValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull)(Code)



getTypeInstance
public static TypeInstance getTypeInstance(AnnotationInstance annotation, String memberName, boolean defaultIsNull)(Code)



getValue
public static Object getValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull)(Code)



getWebContentRoots
public static String[] getWebContentRoots(CoreAnnotationProcessorEnv env) throws FatalCompileTimeException(Code)



getWebSourceRoots
public static String[] getWebSourceRoots(CoreAnnotationProcessorEnv env) throws FatalCompileTimeException(Code)



getWebappRelativeFile
public static File getWebappRelativeFile(String webappRelativePath, boolean lookInSourceRoots, CoreAnnotationProcessorEnv env) throws FatalCompileTimeException(Code)



hasDefaultConstructor
public static boolean hasDefaultConstructor(TypeDeclaration jclass)(Code)



inferModulePathFromType
public static String inferModulePathFromType(TypeDeclaration type)(Code)
Infers the Struts module path from the given controller class.



inferTypeFromPath
public static TypeDeclaration inferTypeFromPath(String webappRelativePath, CoreAnnotationProcessorEnv env)(Code)



isAbsoluteURI
public static boolean isAbsoluteURI(String uri)(Code)
This is the same logic that we have in the runtime, in PageFlowRequestProcessor. Can't share the code, though.



isAbsoluteURL
public static boolean isAbsoluteURL(String path)(Code)



isAssignableFrom
public static boolean isAssignableFrom(String className, TypeInstance type, CoreAnnotationProcessorEnv env)(Code)



isAssignableFrom
public static boolean isAssignableFrom(TypeDeclaration base, TypeDeclaration typeDecl)(Code)



isAssignableFrom
public static boolean isAssignableFrom(TypeInstance base, TypeDeclaration cl)(Code)



isAssignableFrom
public static boolean isAssignableFrom(TypeDeclaration base, TypeInstance cl)(Code)



isAssignableFrom
public static boolean isAssignableFrom(String className, TypeDeclaration cl, CoreAnnotationProcessorEnv env)(Code)



isErrorString
public static boolean isErrorString(Object str)(Code)



isJpfAnnotation
public static boolean isJpfAnnotation(AnnotationInstance annotation, String unqualifiedName)(Code)



isOfClass
public static boolean isOfClass(TypeInstance type, String className, CoreAnnotationProcessorEnv env)(Code)



isPageFlowClass
public static boolean isPageFlowClass(ClassDeclaration jclass, CoreAnnotationProcessorEnv env)(Code)



isReconcilePhase
public static String isReconcilePhase(CoreAnnotationProcessorEnv env) throws FatalCompileTimeException(Code)
Utility method to get the value of the "phase" option from the annotation processing environment.
Parameters:
  env - the annotation processing environment the value of the "phase" option, or null if the option is unspecified
throws:
  FatalCompileTimeException - if an error occurs getting the value of the option



removeFileExtension
public static String removeFileExtension(String uri)(Code)



typesAreEqual
public static boolean typesAreEqual(TypeDeclaration t1, TypeDeclaration t2)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.