Skip to content

Annotations

Philipp Ploder edited this page Jul 16, 2017 · 1 revision

General

@RegularMapTarget

This annotation marks the constructor of a class that should be used when a class has multiple constructors.

Injection

@NamedGroup(val groupName: String)

This annotation will get the value of the group named groupName. The parameter/property must have the type kotlin.String or any super-type. If the type does not match a com.pploder.regularmap.err.IllegalParameterException will be thrown.

@Group(val groupId: Int)

This annotation will get the value of the captured group with the number groupId. The parameter/property must have the type kotlin.String or any super-type. If the type does not match a com.pploder.regularmap.err.IllegalParameterException will be thrown.

@GroupList

This annotation will get a list of all (captured) group values. The parameter/property must have the type kotlin.List or any super-type. If the type does not match a com.pploder.regularmap.err.IllegalParameterException will be thrown.

@GroupCount

This annotation will get the amount of groups. The parameter/property must have the type kotlin.Number or any sub-type. If the type does not match a com.pploder.regularmap.err.IllegalParameterException will be thrown.

@NamedGroupOffset(val groupName: String)

This annotation will get the offset of the group with the name groupName. The parameter/property must have the type kotlin.Pair or any super-type. If the type does not match a com.pploder.regularmap.err.IllegalParameterException will be thrown.

@GroupOffset(val groupId: Int)

This annotation will get the offset of the captured group with the number groupId. The parameter/property must have the type kotlin.Pair or any super-type. If the type does not match a com.pploder.regularmap.err.IllegalParameterException will be thrown.