-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
LinuxPara
authored and
LinuxPara
committed
Nov 30, 2019
1 parent
5cdfa6e
commit 33cf08d
Showing
20 changed files
with
356 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<idea-plugin> | ||
<id>com.mvp.plugin</id> | ||
<name>MVP_Plugin</name> | ||
<version>1.2.6</version> | ||
<version>1.2.8</version> | ||
<vendor email="[email protected]" url="">陈占洋</vendor> | ||
|
||
<description>一款MVP框架代码生成插件。帮助使用者管理V、P层的关系,取消V层继承框架内的类。</description> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package com.mvp.plugin.bean; | ||
|
||
import com.intellij.psi.PsiImportStatement; | ||
import com.intellij.psi.PsiMethod; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class MvpClazz { | ||
|
||
private String mPackageName; | ||
private String mClazzName; | ||
private List<PsiMethod> mMethods; | ||
private List<PsiImportStatement> mImports; | ||
|
||
public MvpClazz(String packageName, String clazzName, List<PsiMethod> methods) { | ||
this.mPackageName = packageName; | ||
this.mClazzName = clazzName; | ||
this.mMethods = methods; | ||
this.mImports = new ArrayList<>(); | ||
} | ||
|
||
public MvpClazz(String packageName, String clazzName) { | ||
this.mPackageName = packageName; | ||
this.mClazzName = clazzName; | ||
this.mMethods = new ArrayList<>(); | ||
this.mImports = new ArrayList<>(); | ||
} | ||
|
||
public void addPsiMethod(PsiMethod method) { | ||
mMethods.add(method); | ||
} | ||
|
||
public void addPsiImort(PsiImportStatement psiImport) { | ||
mImports.add(psiImport); | ||
} | ||
|
||
public String getQName() { | ||
return mPackageName + "." + mClazzName; | ||
} | ||
|
||
public String getPackageName() { | ||
return mPackageName; | ||
} | ||
|
||
public String getName() { | ||
return mClazzName; | ||
} | ||
|
||
public List<PsiMethod> getMethods(){ | ||
return mMethods; | ||
} | ||
|
||
public List<PsiImportStatement> getImports(){ | ||
return mImports; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.