Je vais le laisser car c'est intéressant
test.pde
import java.lang.reflect.*;
void setup(){
  Test test=new Test();
}
class Test{
  Test(){
    try{
      this.getClass().getMethod("test").invoke(this);
    }catch(NoSuchMethodException | e){
      println(e);
    }catch(IllegalAccessException e){
      println(e);
    }catch(InvocationTargetException e){
      println(e);
    }
  }
  void test(){
    println("test");
  }
}
De même pour java
Recommended Posts