AnnotationDescr traitableAnn = typeDescr.getAnnotation( Traitable.class.getSimpleName() ); boolean traitable = traitableAnn != null; def.addMetaData( annotationName, typeDescr.getAnnotation( annotationName ).getSingleValue() );
AnnotationDescr annotationDescr = typeDescr.getAnnotation( TypeDeclaration.Role.ID ); String role = ( annotationDescr != null ) ? annotationDescr.getSingleValue() : null; if (role != null) { annotationDescr = typeDescr.getAnnotation( TypeDeclaration.ATTR_TYPESAFE ); String typesafe = ( annotationDescr != null ) ? annotationDescr.getSingleValue() : null; if (typesafe != null) { annotationDescr = typeDescr.getAnnotation( TypeDeclaration.Format.ID ); String format = ( annotationDescr != null ) ? annotationDescr.getSingleValue() : null; if (format != null) { annotationDescr = typeDescr.getAnnotation( TypeDeclaration.Kind.ID ); String kind = (annotationDescr != null) ? annotationDescr.getSingleValue() : null; if ( kind != null ) { annotationDescr = typeDescr.getAnnotation( TypeDeclaration.ATTR_CLASS ); String className = ( annotationDescr != null ) ? annotationDescr.getSingleValue() : null; if (StringUtils.isEmpty( className )) {
AnnotationDescr annotationDescr = typeDescr.getAnnotation( TypeDeclaration.ATTR_TIMESTAMP ); String timestamp = ( annotationDescr != null ) ? annotationDescr.getSingleValue() : null; if (timestamp != null) { annotationDescr = typeDescr.getAnnotation( TypeDeclaration.ATTR_DURATION ); String duration = ( annotationDescr != null ) ? annotationDescr.getSingleValue() : null; if (duration != null) { annotationDescr = typeDescr.getAnnotation( TypeDeclaration.ATTR_EXPIRE ); String expiration = ( annotationDescr != null ) ? annotationDescr.getSingleValue() : null; if (expiration != null) {
ClassDefinition def ) { if ( typeDescr.getAnnotation( Traitable.class.getSimpleName() ) != null || ( ! type.getKind().equals( TypeDeclaration.Kind.TRAIT ) && pkgRegistryMap.containsKey( def.getSuperClass() ) && || typeDescr.getAnnotation( Trait.class.getSimpleName() ) != null ) {