📄 listing8-09_usingnumberpropertyfunction.txt
字号:
// The number() property function is quite useful in combination with //#foreach directives,
// since it determines the number of subvalues of a preprocessing variable:
//#if polish.log.handlers:defined
private static LogHandler[] handlers;
static {
//#= handlers = new LogHandler[ ${ number( polish.log.handlers )} ];
int i = 0;
//#foreach handler in polish.log.handlers
//#= handlers[i] = new ${ classname( handler )}();
i++;
//#next handler
}
//#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -