The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Tangence::Compiler::Property - structure representing one Tangence property

DESCRIPTION

This data structure object stores information about one Tangence class property, as parsed by Tangence::Compiler::Parser. Once constructed, such objects are immutable.

CONSTRUCTOR

$property = Tangence::Compiler::Property->new( %args )

Returns a new instance initialised by the given arguments.

name => STRING

Name of the property

dimension => INT

Dimension of the property, as one of the DIM_* constants from Tangence::Constants.

type => STRING

String giving the type as a string.

smashed => BOOL

Optional. If true, marks that the property is smashed.

ACCESSORS

$name = $property->name

Returns the name of the class

$dimension = $property->dimension

Returns the dimension as one of the DIM_* constants.

$type = $property->type

Returns the type as a string.

$smashed = $property->smashed

Returns true if the property is smashed.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>