Package-level declarations

Types

Link copied to clipboard
class Arguments(val op: Op)

A helper class that makes it possible to construct an ArgumentItem with an indexed access (e.g. op.argument1)

Link copied to clipboard
class Condition

This class exists to restrict where the functions can be called

Link copied to clipboard
data class ConditionalOp(val resultOp: Op, val conditionOp: Op, val ownerClassFqn: String = "") : Op

An Op that describes that the function calls found with resultOp depend on the function calls found with the conditionOp

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
data class GroupingOp(val ops: Set<Op>, val ownerClassFqn: String = "") : Op

An Op that contains other Ops

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

Import other coko script(s)

Link copied to clipboard
sealed 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
sealed interface TransformationResult<E, T>

This class works similar to the Result class in the Kotlin standard library. The difference is that the TransformationFailure can store information other than Throwables to be able to describe the reasons for failure in more detail.

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
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 opGroup(vararg ops: Op): GroupingOp

Create a GroupingOp containing the given ops.

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 Op.with(conditionOp: Op): ConditionalOp
Link copied to clipboard
infix fun Any.withType(fqn: String): ParamWithType