@CompileStatic class RxAstUtils extends AstUtils
Utility methods for AST handling in RxGORM
| Fields inherited from class | Fields |
|---|---|
class AstUtils |
ASSIGNMENT_OPERATOR, COMPILE_STATIC_TYPE, DOMAIN_PATH_PATTERN, DOMAIN_TYPE, EMPTY_CLASS_ARRAY, GRAILS_APP_DIR, OBJECT_CLASS_NODE, REGEX_FILE_SEPARATOR, TRANSFORM_APPLIED_MARKER, TYPE_CHECKED_TYPE, ZERO_ARGUMENTS, ZERO_PARAMETERS |
| Type | Name and description |
|---|---|
static ClassNode |
RX_DETACHED_CRITERIA |
static ClassNode |
RX_ENTITYThe rx entity class node |
| Constructor and description |
|---|
RxAstUtils() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static boolean |
isObservable(ClassNode cls)Is the given class an rx.Observable |
|
static boolean |
isObservableOf(ClassNode cls, ClassNode parent)Return if the given class is an Observable of domain class |
|
static boolean |
isObservableOf(ClassNode cls, java.lang.Class parent)Return if the given class is an Observable of domain class |
|
static boolean |
isObservableOfDomainClass(ClassNode cls)Return if the given class is an Observable of domain class |
|
static boolean |
isRxEntity(ClassNode classNode)Whether the class node is an rx entity |
|
static boolean |
isSingle(ClassNode cls)Is the given class a rx.Single |
|
static boolean |
isSingleOf(ClassNode cls, java.lang.Class parent)Return if the given class is an Observable of domain class |
|
static boolean |
isSingleOfDomainClass(ClassNode cls)Return if the given class is an Observable of domain class |
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 node