Paul Evans > Tangence > Tangence::Compiler::Property

Download:
Tangence-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.08   Source  

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.

class => Tangence::Compiler::Class

Reference to the containing class

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 ^

$class = $property->class

Returns the class the property is a member of

$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>

syntax highlighting: