| java.lang.Object org.apache.beehive.netui.compiler.CompilerUtils
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 boolean | annotationsAreEqual(AnnotationInstance a1, AnnotationInstance a2, boolean allowExactDuplicates, CoreAnnotationProcessorEnv env) | public static FieldDeclaration | findField(TypeDeclaration jclass, String fieldName) | public static ClassDeclaration | findInnerClass(TypeDeclaration jclass, String innerClassName) | public static AnnotationInstance | getAnnotation(ClassDeclaration decl, String unqualifiedName, boolean inherited) | public static AnnotationInstance | getAnnotation(Declaration element, String unqualifiedName) | public static AnnotationInstance | getAnnotation(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static List | getAnnotationArray(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static List | getAnnotationArray(AnnotationValue value) | public static List | getAnnotationArrayValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull) | public static AnnotationInstance | getAnnotationFullyQualified(Declaration element, String fullyQualifiedName) | public static AnnotationValue | getAnnotationValue(Declaration element, String annotationName, String valueName) | public static AnnotationValue | getAnnotationValue(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static TypeInstance | getArrayBaseType(ArrayType arrayType) | public static Collection | getBeanProperties(ClassDeclaration type, boolean getInheritedProperties) | public static BeanPropertyDeclaration | getBeanProperty(MethodDeclaration method) | public static Boolean | getBoolean(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static Boolean | getBooleanValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull) | public static FieldDeclaration | getClassField(TypeDeclaration jclass, String fieldName, String desiredAnnotation) | public static Collection | getClassFields(TypeDeclaration jclass) | public static MethodDeclaration | getClassMethod(TypeDeclaration jclass, String methodName, String desiredAnnotation) | public static MethodDeclaration[] | getClassMethods(TypeDeclaration jclass, String desiredAnnotation) | public static Collection | getClassNestedTypes(TypeDeclaration jclass) | public static TypeDeclaration | getDeclaration(DeclaredType type) | public static DeclaredType | getDeclaredType(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static Double | getDouble(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static String | getEnumFieldName(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static String | getEnumFieldName(AnnotationValue enumMember) | public static File | getFileRelativeToSourceFile(TypeDeclaration outerClass, String relativePath, CoreAnnotationProcessorEnv env) | public static Float | getFloat(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static String | getFormClassName(TypeDeclaration jclass, CoreAnnotationProcessorEnv env) Get a Class.forName-able string for the given type signature. | public static String | getFormClassName(DeclaredType jclass, CoreAnnotationProcessorEnv env) | public static TypeInstance | getGenericBoundsType(TypeInstance type) | public static Integer | getInteger(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static String | getLoadableName(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 String | getLoadableName(DeclaredType jclass) | public static Long | getLong(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static TypeDeclaration | getOuterClass(MemberDeclaration classMember) | public static TypeDeclaration | getOutermostClass(MemberDeclaration classMember) | public static String | getPathRelativeToPackage(String relativePath, PackageDeclaration packageDecl) | public static String | getQualifiedName(AnnotationInstance annotation) | public static ReferenceType | getReferenceType(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static String | getSimpleName(AnnotationInstance annotation) | public static File | getSourceFile(TypeDeclaration decl, boolean mustBeNonNull) | public static String | getString(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static List | getStringArray(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static List | getStringArrayValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull) | public static String | getStringValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull) | public static TypeInstance | getTypeInstance(AnnotationInstance annotation, String memberName, boolean defaultIsNull) | public static Object | getValue(Declaration element, String annotationName, String memberName, boolean defaultIsNull) | public static String[] | getWebContentRoots(CoreAnnotationProcessorEnv env) | public static String[] | getWebSourceRoots(CoreAnnotationProcessorEnv env) | public static File | getWebappRelativeFile(String webappRelativePath, boolean lookInSourceRoots, CoreAnnotationProcessorEnv env) | public static boolean | hasDefaultConstructor(TypeDeclaration jclass) | public static String | inferModulePathFromType(TypeDeclaration type) Infers the Struts module path from the given controller class. | public static TypeDeclaration | inferTypeFromPath(String webappRelativePath, CoreAnnotationProcessorEnv env) | public static boolean | isAbsoluteURI(String uri) This is the same logic that we have in the runtime, in PageFlowRequestProcessor. | public static boolean | isAbsoluteURL(String path) | public static boolean | isAssignableFrom(String className, TypeInstance type, CoreAnnotationProcessorEnv env) | public static boolean | isAssignableFrom(TypeDeclaration base, TypeDeclaration typeDecl) | public static boolean | isAssignableFrom(TypeInstance base, TypeDeclaration cl) | public static boolean | isAssignableFrom(TypeDeclaration base, TypeInstance cl) | public static boolean | isAssignableFrom(String className, TypeDeclaration cl, CoreAnnotationProcessorEnv env) | public static boolean | isErrorString(Object str) | public static boolean | isJpfAnnotation(AnnotationInstance annotation, String unqualifiedName) | public static boolean | isOfClass(TypeInstance type, String className, CoreAnnotationProcessorEnv env) | public static boolean | isPageFlowClass(ClassDeclaration jclass, CoreAnnotationProcessorEnv env) | public static String | isReconcilePhase(CoreAnnotationProcessorEnv env) Utility method to get the value of the "phase" option from the annotation processing environment. | public static String | removeFileExtension(String uri) | public static boolean | typesAreEqual(TypeDeclaration t1, TypeDeclaration t2) |
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().
|
inferModulePathFromType | public static String inferModulePathFromType(TypeDeclaration type)(Code) | | Infers the Struts module path from the given controller class.
|
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) | | |
isErrorString | public static boolean isErrorString(Object str)(Code) | | |
|
|