Local environment variables

Additionally, Jalopy provides some local variables that are automatically set depending on the execution context. The current list of valid local variables reads as follows:

Table 2.4. Local environment variables

NameDescriptionScopeSince
fileThe absolute path of the currently processed source file (e.g. /usr/projects/test/MyFile.java)global1.0
file.nameThe name of the currently processed source file (e.g. MyFile.java)global1.0
file.formatA string representation of the line ending character(s) used to write a file (UNIX, DOS or MAC)global1.0
conventionThe name of the currently active code convention (as specified in the settings)global1.0
convention.descThe description of the currently active code convention (as specified in the settings)global1.0
projectThe name of the currently active project/profile. For IDE Plug-ins this resolves to the current IDE project, otherwise the active Jalopy profile name is usedglobal1.0.1
project.descThe description of the currently active Jalopy profileglobal1.0.1
tab.sizeThe current indentation setting (as specified in the settings)global1.0
dateThe current date, formatted in the style specified in the Date/Time settings (see the section called “Date/Time” below) global1.0
date.yearThe current yearglobal1.0
date.longThe current date, formatted as java.text.DateFormat LONG styleglobal1.0
date.fullThe current date, formatted as java.text.DateFormat FULL styleglobal1.0
timeThe current time, formatted in the style specified in the Date/Time settings (see the section called “Date/Time” below)global1.0
time.longThe current time, formatted as java.text.DateFormat LONG styleglobal1.0
time.fullThe current time, formatted as java.text.DateFormat FULL styleglobal1.0
package.nameThe package name of the currently processed source file (e.g. com.foo.mypackage)global1.0
class.nameHolds the name of the currently processed class, interface or enumJavadoc class, interface, field, constructor, method, getter, setter 1.0
field.nameHolds the name of the currently processed fieldJavadoc field1.0
field.typeHolds the type name of the currently processed fieldJavadoc field1.0
method.nameHolds the name of the currently processed methodJavadoc method1.0
param.nameHolds the name of the currently processed Javadoc parameter tagJavadoc constructor, method1.0
param.typeHolds the type of the currently processed Javadoc parameter tagJavadoc constructor, method1.0
exception.typeHolds the type of the currently processed throws clause memberJavadoc constructor, method1.0
return.typeHolds the return type of the currently processed methodJavadoc method1.0
property.nameHolds the property name of the currently processed getter/setter method. You can control the behavior during variable interpolation with the “Format bean property” option Javadoc getter/setter1.1
Property.Name Holds the capitalized property name of the currently processed getter/setter method Javadoc getter/setter1.9.3