1.5 Support find next when not comment | 支持没有注释时查找下一个对象

This commit is contained in:
林万程
2022-02-26 03:10:43 +08:00
parent 35e2548967
commit 89a0c1cd60
32 changed files with 495 additions and 252 deletions

View File

@@ -0,0 +1,30 @@
package io.github.linwancen.plugin.show.demo;
/**
* InDoc
* {@link InDoc}
* {@link InDoc#field}
* {@link InDoc#method1}
* {@link InDoc#method1()}
* {@link InDoc#method2(InDoc)}
*
* @see InDoc
*/
public class InDoc {
/**
* field
*/
public String field;
/**
* method()
*/
public void method1() {
}
/**
* method(InDoc)
*/
public void method2(InDoc inDoc) {
}
}

View File

@@ -0,0 +1,20 @@
package io.github.linwancen.plugin.show.demo;
import io.github.linwancen.plugin.show.demo.method.Child;
import io.github.linwancen.plugin.show.demo.method.Parent;
@SuppressWarnings("all")
public class Loop {
public static void method() {
Child child = new Child();
while (child.bool) {
if (child.isBool()) {
return;
}
}
Parent[] fors = new Child[]{};
for (Parent f : fors) {
}
}
}

View File

@@ -0,0 +1,25 @@
package io.github.linwancen.plugin.show.demo;
import io.github.linwancen.plugin.show.demo.method.Child;
import io.github.linwancen.plugin.show.demo.method.Face;
import io.github.linwancen.plugin.show.demo.method.Parent;
public class Method {
public static void method() {
Parent noneNewMethod = new Parent();
Face noneNewDoc = new Child();
Child child = new Child(true);
Parent parentMethod = child.parentMethod();
Face faceMethod = child.faceMethod(child);
boolean is = child.isBool();
Child field = child.field;
Child get = child.getField();
child.setField(new Child(true)); // field
Face fun = Child::fun;
child
.faceMethod(face1 -> Child::fun);
}
}

View File

@@ -0,0 +1,60 @@
package io.github.linwancen.plugin.show.demo.method;
/**
* Child
*/
public class Child extends Parent implements Face {
public Child() {
}
/**
* Child(boolean bool)
*/
public Child(boolean bool) {
this.bool = bool;
}
@Override
public Parent parentMethod() {
return null;
}
@Override
public Face faceMethod(Face face) {
return null;
}
/**
* fun
*/
public static Face fun(Face face) {
return null;
}
/**
* bool
*/
public boolean bool;
public boolean isBool() {
return bool;
}
/**
* field
*/
public Child field;
public Child getField() {
return field;
}
public void setField(Child field) {
this.field = field;
}
}

View File

@@ -0,0 +1,12 @@
package io.github.linwancen.plugin.show.demo.method;
/**
* Face
*/
//@FunctionalInterface
public interface Face {
/**
* faceMethod
*/
Face faceMethod(Face face);
}

View File

@@ -0,0 +1,13 @@
package io.github.linwancen.plugin.show.demo.method;
/**
* Parent
*/
public class Parent {
/**
* parentMethod
*/
public Parent parentMethod() {
return null;
}
}

View File

@@ -0,0 +1,4 @@
/**
* package doc
*/
package io.github.linwancen.plugin.show.demo;

View File

@@ -1,4 +1,4 @@
package io.github.linwancen.plugin.comment.utils;
package io.github.linwancen.plugin.show.line;
import groovy.json.JsonOutput;
@@ -11,7 +11,7 @@ import java.util.function.BiPredicate;
* @see SkipUtils
*/
public class SkipUtilsTest {
public static final boolean o = true;
public static final boolean x = false;