view lib/IMPL/Class/TypeInfo.pm @ 415:3d24b10dd0d5 ref20150831

working on IMPL::Config::Container
author cin
date Tue, 20 Oct 2015 07:32:55 +0300
parents ee36115f6a34
children
line wrap: on
line source

package IMPL::Class::TypeInfo;
use strict;
use mro;

require v5.10;

use IMPL::declare {
	require => {
		PropertyInfo => 'IMPL::Class::PropertyInfo'
	},
	base => [
		'IMPL::Object' => undef
	],
	props => [
		name     => 'r',
		_methods => 'rw',
		_props   => 'rw',
		_type    => 'rw'
	]
};

sub GetProperties {
	my $this = shift;

	my $cache = $this->_props;
	unless ($cache) {
		$cache = $this->_type->GetMeta( PropertyInfo, undef, 1 );
		$this->_props($cache);
	}
	return $cache;
}

1;