value-processor / me.tatarka.valueprocessor / Property

Property

sealed class Property<out E : Element>

A value object's property. This can either be a public field, getter, or a constructor param.

Types

BuilderParam

class BuilderParam : Param

ConstructorParam

class ConstructorParam : Param

Field

class Field : Property<VariableElement>

Getter

class Getter : Property<ExecutableElement>

Param

abstract class Param : Property<VariableElement>

Properties

annotations

var annotations: List<AnnotationMirror>

Annotations relevant to the property. These may be copied from another source. For example, if this is a getter it may contain the annotations on the backing private field.

callableName

open val callableName: String

The actual name of the property. This will not have any 'get' or 'is' prefix stripped.

element

val element: E

name

open val name: String

The name of the property. For fields and params this is the name in code. For getters, it may have the 'get' or 'is' prefix stripped.

type

open val type: TypeMirror

The property's type.

Functions

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Inheritors

Field

class Field : Property<VariableElement>

Getter

class Getter : Property<ExecutableElement>

Param

abstract class Param : Property<VariableElement>