listing8-09_usingnumberpropertyfunction.txt
来自「着几乎所有智能机厂商都将有自己配套的App Store,甚至并非智能手机制造商的」· 文本 代码 · 共 15 行
TXT
15 行
// 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 + =
减小字号Ctrl + -
显示快捷键?