Package-level declarations

Types

Link copied to clipboard

Represents the constructor of a class.

Link copied to clipboard
class FunctionOp : Op

Represents a group of functions that serve the same purpose in the API.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FILE])
annotation class Import(val paths: String)

Import other coko script(s)

Link copied to clipboard
interface Op : OrderFragment
Link copied to clipboard

OrderBuilder subclass to hide some implementation details of OrderBuilder to coko users.

Link copied to clipboard
data class ParamWithType(val param: Any, val type: Type)
Link copied to clipboard
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Rule(val description: String = "", val shortDescription: String = "", val severity: Severity = Severity.WARNING, val passMessage: String = "", val failMessage: String = "", val help: String = "", val tags: Array<String> = [], val precision: Precision = Precision.UNKNOWN)

Marks a function that should be evaluated as a rule by Codyze

Link copied to clipboard
Link copied to clipboard
data class Type(val fqn: String)

Stores the fully qualified name of a class

Link copied to clipboard
object Wildcard

Matches any value.

Link copied to clipboard
typealias wildcard = Wildcard

Properties

Link copied to clipboard

Use this to create a set with the OrderSetGetOperator.get operator.

Functions

Link copied to clipboard
fun atLeast(min: Int, vararg tokens: OrderToken): OrderNode

Minimalist way to create a group with the atLeast qualifier. See group.

inline fun atLeast(count: Int, block: OrderGroup.() -> Unit): OrderNode

Adds a group with the atLeast qualifier. See group

Link copied to clipboard
fun between(range: IntRange, vararg tokens: OrderToken): OrderNode

Minimalist way to create a group with the between qualifier. See group.

inline fun between(range: IntRange, block: OrderGroup.() -> Unit): OrderNode

Adds a group with the between qualifier. See group

Link copied to clipboard
fun constructor(classFqn: String, block: ConstructorOp.() -> Unit): ConstructorOp

Create a ConstructorOp.

Link copied to clipboard
fun count(count: Int, vararg tokens: OrderToken): OrderNode

Minimalist way to create a group with the count qualifier. See group.

inline fun count(count: Int, block: OrderGroup.() -> Unit): OrderNode

Adds a group with the count qualifier. See group

Link copied to clipboard
inline fun FunctionOp.definition(fqn: String, block: Definition.() -> Unit): Definition

Create a Definition which can be added to the FunctionOp.

Link copied to clipboard
inline fun group(block: OrderGroup.() -> Unit): <Error class: unknown class>

Add a group containing any valid OrderDsl provided as a lambda

Link copied to clipboard
fun Signature.group(vararg parameters: Parameter): ParameterGroup

Create a ParameterGroup which can be added to the Signature.

fun OrderBuilder.group(vararg tokens: OrderToken): OrderNode

Minimalist way to create a group with a function call. However, this minimalist group constructor only works with OrderTokens

Link copied to clipboard
fun maybe(vararg tokens: OrderToken): OrderNode

Minimalist way to create a group with the maybe ('*') qualifier. See group.

inline fun maybe(block: OrderGroup.() -> Unit): OrderNode

Adds a group with the maybe ('*') qualifier. See group

Link copied to clipboard
fun op(block: FunctionOp.() -> Unit): FunctionOp

Create a FunctionOp.

Link copied to clipboard
fun option(vararg tokens: OrderToken): OrderNode

Minimalist way to create a group with the option ('?') qualifier. See group.

inline fun option(block: OrderGroup.() -> Unit): OrderNode

Adds a group with the option ('?') qualifier. See group

Link copied to clipboard

Adds an alternation token (|) between the current OrderFragment and other. All OrderToken are converted into OrderFragments.

Adds an alternation token (|) between the current OrderToken and other. All OrderToken are converted into OrderFragments.

Link copied to clipboard
inline fun set(block: OrderSet.() -> Unit): OrderSet

Add a set to the Order containing any valid OrderDsl provided by a lambda (see group).

Link copied to clipboard
fun ConstructorOp.signature(vararg parameters: Parameter): Signature

Create a Signature which can be added to the ConstructorOp. The Parameters are passed through the vararg.

inline fun ConstructorOp.signature(block: Signature.() -> Unit): Signature

Create a Signature which can be added to the ConstructorOp. The Parameters are defined in the block.

fun Definition.signature(vararg parameters: Parameter): Signature

Create a Signature which can be added to the Definition. The Parameters are passed through the vararg.

inline fun Definition.signature(unordered: Array<out Parameter> = emptyArray(), block: Signature.() -> Unit): Signature

Create a Signature which can be added to the Definition. The Parameters are defined in the block.

Link copied to clipboard
fun some(vararg tokens: OrderToken): OrderNode

Minimalist way to create a group with the some ('+') qualifier. See group.

inline fun some(block: OrderGroup.() -> Unit): OrderNode

Adds a group with the some ('+') qualifier. See group

Link copied to clipboard
fun unordered(vararg unordered: Parameter): <Error class: unknown class>

Add unordered Parameters to the Signature.

Link copied to clipboard
infix fun Any.withType(fqn: String): ParamWithType