Imports, uses, requires, …
lang [java] myTemplate() {
use java.util.Date
}
Variables
lang [java] myTemplate() {
var myVar:String = "The value"
var[public static final] MY_CONST = "The constant value"
}
Classes, traits, interfaces, …
lang [java] myTemplate() {
impl[public interface] myInterface {
}
impl[public class] myClass for myInterface {
}
}
Functions and methods
lang [java] myTemplate() {
impl[public interface] myInterface {
func myFunc(param1: String, param2: Int)
}
impl[public class] myClass {
func myFunc(param1: String[], param2: String):Int {
return 42
}
}
}
Conditions
Loops