@groovy.transform.CompileStatic class RxAstUtils extends AstUtils
Utility methods for AST handling in RxGORM
Modifiers | Name | Description |
---|---|---|
private static org.codehaus.groovy.ast.ClassNode |
RX_DETACHED_CRITERIA |
|
private static org.codehaus.groovy.ast.ClassNode |
RX_ENTITY |
The rx entity class node |
Fields inherited from class | Fields |
---|---|
class AstUtils |
ASSIGNMENT_OPERATOR, COMPILE_STATIC_TYPE, DOMAIN_PATH_PATTERN, DOMAIN_TYPE, EMPTY_CLASS_ARRAY, EMPTY_JAVA_CLASS_ARRAY, ENTITY_ANNOTATIONS, GRAILS_APP_DIR, OBJECT_CLASS_ARG, OBJECT_CLASS_NODE, REGEX_FILE_SEPARATOR, SPEC_CLASS, TRANSFORMED_CLASSES, TRANSFORM_APPLIED_MARKER, TYPE_CHECKED_TYPE, ZERO_ARGUMENTS, ZERO_PARAMETERS, emptyGenericsPlaceHoldersMap |
Type | Name and description |
---|---|
static org.codehaus.groovy.ast.ClassNode |
RX_DETACHED_CRITERIA |
static org.codehaus.groovy.ast.ClassNode |
RX_ENTITY The rx entity class node |
Constructor and description |
---|
RxAstUtils
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static boolean |
isObservable(org.codehaus.groovy.ast.ClassNode cls) Is the given class an rx.Observable |
|
static boolean |
isObservableOf(org.codehaus.groovy.ast.ClassNode cls, org.codehaus.groovy.ast.ClassNode parent) Return if the given class is an Observable of domain class |
|
static boolean |
isObservableOf(org.codehaus.groovy.ast.ClassNode cls, java.lang.Class parent) Return if the given class is an Observable of domain class |
|
static boolean |
isObservableOfDomainClass(org.codehaus.groovy.ast.ClassNode cls) Return if the given class is an Observable of domain class |
|
static boolean |
isRxEntity(org.codehaus.groovy.ast.ClassNode classNode) Whether the class node is an rx entity |
|
static boolean |
isSingle(org.codehaus.groovy.ast.ClassNode cls) Is the given class a rx.Single |
|
static boolean |
isSingleOf(org.codehaus.groovy.ast.ClassNode cls, java.lang.Class parent) Return if the given class is an Observable of domain class |
|
static boolean |
isSingleOfDomainClass(org.codehaus.groovy.ast.ClassNode cls) Return if the given class is an Observable of domain class |
The rx entity class node
The rx entity class node
Is the given class an rx.Observable
cls
- The classReturn if the given class is an Observable of domain class
cls
- The class nodeReturn if the given class is an Observable of domain class
cls
- The class nodeReturn if the given class is an Observable of domain class
cls
- The class nodeWhether the class node is an rx entity
classNode
- The class nodeIs the given class a rx.Single
cls
- The classReturn if the given class is an Observable of domain class
cls
- The class nodeReturn if the given class is an Observable of domain class
cls
- The class nodeGroovy Documentation