是否可以通過StringTemplate的動態生成函數調用Java類的函數? 例如,以下是三個功能 public class RegionManager {
public static List<String> getCenter(){
return somelist;
}
public static List<String> getFloor(){
當使用StringTemplate的4.0.2以下對象結構: ST st = new ST("@[email protected]", '@', '@');
產生異常: 1:8: '@' came as a complete surprise to me
Exception in thread "main" org.stringtemplate.v4.compiler.STException
我寫了一個位於/ src文件夾中的示例java文件。 public class Main {
public static void main(String[] args){
STGroupFile StgFile=new STGroupFile("template.stg");
StgFile.delimiterStartChar = '$';
StgFil