The Java context additionally defines the following variables. Note: In the table below, id is a user-chosen name of a new variable.
${id:field(type[,type]*)}
Evaluates to a field in the current scope that is a subtype of any of the given types. If no type is specified, any non-primitive field matches.
Example:
${count:field(int)}
比如这个example的template到底有什么用?
${id:field(type[,type]*)}
Evaluates to a field in the current scope that is a subtype of any of the given types. If no type is specified, any non-primitive field matches.
Example:
${count:field(int)}
比如这个example的template到底有什么用?