PropertyDeclarationContext

data class PropertyDeclarationContext(val declaration: PropertyDeclaration, val packageName: String, val className: String?, val modulePath: String, val filePath: String)

Context wrapper for verifying property declarations.

Provides both the target declaration and architectural metadata to easily query scope.

Constructors

Link copied to clipboard
constructor(declaration: PropertyDeclaration, packageName: String, className: String?, modulePath: String, filePath: String)

Properties

Link copied to clipboard

Delegates annotations property to the underlying PropertyDeclaration.

Link copied to clipboard

The name of the surrounding class if this property is a member/nested property, or null if it's top-level.

Link copied to clipboard

The underlying PropertyDeclaration AST model representing the property.

Link copied to clipboard

The project relative path to the source file defining this property.

Link copied to clipboard

Delegates isExtension property to the underlying PropertyDeclaration.

Link copied to clipboard

Delegates isVal property to the underlying PropertyDeclaration.

Link copied to clipboard

Delegates isVar property to the underlying PropertyDeclaration.

Link copied to clipboard

Delegates kdocText property to the underlying PropertyDeclaration.

Link copied to clipboard

Delegates modifiers property to the underlying PropertyDeclaration.

Link copied to clipboard

The module subdirectory/path containing this property.

Link copied to clipboard

Delegates name property to the underlying PropertyDeclaration.

Link copied to clipboard

The fully-qualified name of the package containing this property.

Link copied to clipboard

Delegates type property to the underlying PropertyDeclaration.

Link copied to clipboard

Delegates visibility property to the underlying PropertyDeclaration.

Functions

Link copied to clipboard

Helper extension to check if a property has all of the specified annotations.

Link copied to clipboard

Helper extension to check if a property has the specified annotation.

Link copied to clipboard

Helper extension to check if a property has any of the specified annotations.