Skip to content

Commit

Permalink
修改类头注解样式
Browse files Browse the repository at this point in the history
  • Loading branch information
tli2 committed Nov 20, 2020
1 parent 9933a64 commit 6be1baa
Show file tree
Hide file tree
Showing 65 changed files with 134 additions and 332 deletions.
8 changes: 3 additions & 5 deletions annotation/src/main/java/com/catchpig/annotation/ClickGap.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.catchpig.annotation

/**
* 创建时间:2019/9/26 0026<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/9/26 0026<br/>
* 描述:防止重复点击注解
* 防止重复点击注解
* @author catchpig
* @date 2019/9/26 00:26
*/
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
Expand Down
8 changes: 3 additions & 5 deletions annotation/src/main/java/com/catchpig/annotation/MethodLog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ package com.catchpig.annotation
import com.catchpig.annotation.enums.LEVEL

/**
* 创建时间:2020/11/9 1126<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2020/11/9 1126<br/>
* 描述:防止重复点击注解
* 打印方法(构造方法)和参数值日志
* @author catchpig
* @date 2020/11/9 11:26
*/
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION,AnnotationTarget.CONSTRUCTOR)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ package com.catchpig.annotation
import androidx.annotation.DrawableRes

/**
* 创建时间:2019/10/18 0018<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/18 0018<br/>
* 描述:右边第一个图标按钮的点击事件
* 右边第一个图标按钮的点击事件
*
* 修饰的方法可以没有参数和一个参数,
* 有参数的时候参数类型必须为View
*
* @author catchpig
* @date 2019/10/18 0018
*/
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ package com.catchpig.annotation
import androidx.annotation.StringRes

/**
* 创建时间:2019/10/18 0018<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/18 0018<br/>
* 描述:右边第一个文字按钮的点击事件
*
* 修饰的方法可以没有参数和一个参数,
* 有参数的时候参数类型必须为View
*
* @author catchpig
* @date 2019/10/18 0018
*/
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ package com.catchpig.annotation
import androidx.annotation.DrawableRes

/**
* 创建时间:2019/10/18 0018<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/18 0018<br/>
* 描述:右边第二个图标按钮的点击事件
*
* 修饰的方法可以没有参数和一个参数,
* 有参数的时候参数类型必须为View
* @author catchpig
* @date 2019/10/18 00:18
*/
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ package com.catchpig.annotation
import androidx.annotation.StringRes

/**
* 创建时间:2019/10/18 0018<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/18 0018<br/>
* 描述:右边第二个文字按钮的点击事件
* 右边第二个文字按钮的点击事件
*
* 修饰的方法可以没有参数和一个参数,
* 有参数的时候参数类型必须为View
* @author catchpig
* @date 2019/10/18 00:18
*/
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
Expand Down
8 changes: 3 additions & 5 deletions annotation/src/main/java/com/catchpig/annotation/Prefs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ package com.catchpig.annotation
import com.catchpig.annotation.enums.PrefsMode

/**
* 创建时间:2019/10/29 0029<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/29 0029<br/>
* 描述:SharedPreferences注解,可生成对应的文件
* SharedPreferences注解,可生成对应的文件
* @author catchpig
* @date 2019/10/29 00:29
*/
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.catchpig.annotation

/**
* 创建时间:2019/10/29 0029<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/29 0029<br/>
* 描述:只能修饰在Double,Float,Int,Long,String,Boolean类型上的注解
* Shared的参数注解
* 只能修饰在Double,Float,Int,Long,String,Boolean类型上的注解
* @author catchpig
* @date 2019/10/29 00:29
*/
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FIELD)
Expand Down
8 changes: 3 additions & 5 deletions annotation/src/main/java/com/catchpig/annotation/StatusBar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ package com.catchpig.annotation


/**
* 创建时间:2019/8/19 0019<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/8/19 0019<br/>
* 描述:状态栏
* 状态栏
* @author catchpig
* @date 2019/8/19 00:19
*/
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
Expand Down
8 changes: 3 additions & 5 deletions annotation/src/main/java/com/catchpig/annotation/TimeLog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ package com.catchpig.annotation
import com.catchpig.annotation.enums.LEVEL

/**
* 创建时间:2019/10/20 0020<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/20 0020<br/>
* 描述:方法和构造方法的耗时打印
* 方法和构造方法的耗时打印
* @author catchpig
* @date 2019/10/20 00:20
*/
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION,AnnotationTarget.CONSTRUCTOR)
Expand Down
10 changes: 3 additions & 7 deletions annotation/src/main/java/com/catchpig/annotation/Title.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ package com.catchpig.annotation
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import javax.annotation.Resource
import javax.annotation.Resources

/**
* 创建时间:2019/8/19 0019<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/8/19 0019<br/>
* 描述:标题栏
* 标题栏
* @author catchpig
* @date 2019/8/19 00:19
*/
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.catchpig.annotation.enums

/**
* 创建时间:2019/10/29 0029<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/29 0029<br/>
* 描述:SharedPreferences模式
* SharedPreferences模式
* @author catchpig
* @date 2019/10/29 0029
*/
enum class PrefsMode(val value:Int) {
MODE_PRIVATE(0x0000),
Expand Down
8 changes: 3 additions & 5 deletions aop/src/main/java/com/catchpig/aop/ClickGapAspectJ.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ import org.aspectj.lang.annotation.Aspect
import org.aspectj.lang.annotation.Pointcut

/**
* 创建时间:2019/8/19 0019<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/8/19 0019<br/>
* 描述: 防止重复点击
* 防止重复点击
* @author catchpig
* @date 2019/8/19 00:19
*/
@Aspect
class ClickGapAspectJ {
Expand Down
8 changes: 3 additions & 5 deletions aop/src/main/java/com/catchpig/aop/LifecycleLogAspectJ.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import org.aspectj.lang.JoinPoint
import org.aspectj.lang.annotation.*

/**
* 创建时间:2019/9/26 0026<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/9/26 0026<br/>
* 描述:打印生命周期日志
* 打印生命周期日志
* @author catchpig
* @date 2019/9/26 00:26
*/
@Aspect
class LifecycleLogAspectJ {
Expand Down
8 changes: 3 additions & 5 deletions aop/src/main/java/com/catchpig/aop/MethodLogAspectJ.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import org.aspectj.lang.annotation.Aspect
import org.aspectj.lang.annotation.Pointcut

/**
* 创建时间:2019/10/20 0020<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/20 0020<br/>
* 描述:打印方法和构造函数的方法和参数值
* 打印方法和构造函数的方法和参数值
* @author catchpig
* @date 2019/10/20 0020
*/
@Aspect
class MethodLogAspectJ {
Expand Down
8 changes: 3 additions & 5 deletions aop/src/main/java/com/catchpig/aop/TimeLogAspectJ.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import org.aspectj.lang.annotation.Aspect
import org.aspectj.lang.annotation.Pointcut

/**
* 创建时间:2019/10/20 0020<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/20 0020<br/>
* 描述:方法和构造函数的耗时打印
* 方法和构造函数的耗时打印
* @author catchpig
* @date 2019/10/20 00:20
*/
@Aspect
class TimeLogAspectJ {
Expand Down
7 changes: 2 additions & 5 deletions app/src/main/java/com/catchpig/kotlin_mvp/app/KotlinMvpApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ import org.koin.core.context.startKoin
import org.koin.core.logger.Level

/**
* 创建时间:2019/8/18 0018<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/8/18 0018<br/>
* 描述:
* @author catchpig
* @date 2019/8/18 00:18
*/
class KotlinMvpApp:Application(){

Expand Down
7 changes: 2 additions & 5 deletions app/src/main/java/com/catchpig/kotlin_mvp/di/MainModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ import org.koin.dsl.bind
import org.koin.dsl.module

/**
* 创建时间:2019/8/18 0018<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/8/18 0018<br/>
* 描述:
* @author catchpig
* @date 2019/8/18 00:18
*/
val mainModule = module() {
scope<MainActivity> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ import com.catchpig.mvp.network.listener.DownloadCallback
import io.reactivex.Flowable

/**
* 创建时间:2019/8/18 0018<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/8/18 0018<br/>
* 描述:
* @author catchpig
* @date 2019/8/18 00:18
*/
interface MainContract {
interface View:BaseContract.View{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ import com.catchpig.mvp.bean.DownloadInfo
import com.catchpig.mvp.network.listener.DownloadCallback

/**
* 创建时间:2019/8/18 0018<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/8/18 0018<br/>
* 描述:
* @author catchpig
* @date 2019/8/18 00:18
*/
class MainPresenter @TimeLog constructor(private val view:MainContract.View,private val model:MainContract.Model): BasePresenter(),MainContract.Presenter {
override fun onCreate() {
Expand Down
7 changes: 2 additions & 5 deletions compiler/src/main/java/com/catchpig/compiler/BaseProcessor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ import javax.lang.model.util.Elements
import javax.tools.Diagnostic

/**
* 创建时间:2019/10/29 0029<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/29 0029<br/>
* 描述:
* @author catchpig
* @date 2019/10/29 00:29
*/
abstract class BaseProcessor:AbstractProcessor() {
protected lateinit var elementUtils: Elements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ import javax.lang.model.element.TypeElement
import javax.lang.model.type.TypeKind

/**
* 创建时间:2019/10/29 0029<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/29 0029<br/>
* 描述:Prefs注解生成器
* Prefs注解生成器
* @author catchpig
* @date 2019/10/29 00:29
*/
@AutoService(Processor::class)
class PrefsProcessor : BaseProcessor() {
Expand Down
7 changes: 2 additions & 5 deletions mvp/src/main/java/com/catchpig/mvp/apt/KotlinMvpCompiler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ import com.catchpig.mvp.base.activity.BaseActivity
import com.catchpig.utils.ext.logd

/**
* 创建时间:2019/10/17 0017<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/17 0017<br/>
* 描述:
* @author catchpig
* @date 2019/10/17 00:17
*/
object KotlinMvpCompiler {
private const val TAG = "KotlinMvpCompiler"
Expand Down
7 changes: 2 additions & 5 deletions mvp/src/main/java/com/catchpig/mvp/apt/MvpCompiler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ package com.catchpig.mvp.apt
import com.catchpig.mvp.base.activity.BaseActivity

/**
* 创建时间:2019/10/17 0017<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2019/10/17 0017<br/>
* 描述:
* @author catchpig
* @date 2019/10/17 00:17
*/
interface MvpCompiler {
/**
Expand Down
7 changes: 2 additions & 5 deletions mvp/src/main/java/com/catchpig/mvp/base/BaseContract.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ import io.reactivex.disposables.Disposable
import io.reactivex.subscribers.ResourceSubscriber

/**
* 创建时间:2019/4/6 10:33<br></br>
* 创建人: 李涛<br></br>
* 修改人: 李涛<br></br>
* 修改时间: 2019/4/6 10:33<br></br>
* 描述:
* @author catchpig
* @date 2019/4/6 10:33
*/
interface BaseContract {
interface View {
Expand Down
7 changes: 2 additions & 5 deletions mvp/src/main/java/com/catchpig/mvp/base/BasePresenter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ import io.reactivex.subscribers.ResourceSubscriber


/**
* 创建时间:2019/4/6 10:35<br></br>
* 创建人: 李涛<br></br>
* 修改人: 李涛<br></br>
* 修改时间: 2019/4/6 10:35<br></br>
* 描述:
* @author catchpig
* @date 2019/4/6 10:35
*/
open class BasePresenter: BaseContract.Presenter {
private var mCompositeDisposable: CompositeDisposable = CompositeDisposable()
Expand Down
Loading

0 comments on commit 6be1baa

Please sign in to comment.