Arbor 3: FSM & BT Graph Editor  3.2.0
ClassTypeConstraintAttribute Class Referenceabstract

フィールドに対して型の制約を行う基本Attributeクラス。 More...

Inheritance diagram for ClassTypeConstraintAttribute:
ClassComponentAttribute ClassExtendsAttribute ClassGenericArgumentAttribute ClassScriptableObjectAttribute ClassUnityObjectAttribute

Public Member Functions

virtual Type GetBaseType (System.Reflection.FieldInfo fieldInfo)
 制約の基本型を返す。 More...
 
abstract bool IsConstraintSatisfied (Type type, System.Reflection.FieldInfo fieldInfo)
 制約が満たされるかどうかを判定する。 More...
 

Detailed Description

フィールドに対して型の制約を行う基本Attributeクラス。

利用可能なクラス :

Member Function Documentation

virtual Type GetBaseType ( System.Reflection.FieldInfo  fieldInfo)
virtual

制約の基本型を返す。

Parameters
fieldInfoこの属性が指定されているFieldInfo
Returns
制約の基本型

Reimplemented in ClassGenericArgumentAttribute, ClassScriptableObjectAttribute, ClassComponentAttribute, ClassUnityObjectAttribute, and ClassExtendsAttribute.

abstract bool IsConstraintSatisfied ( Type  type,
System.Reflection.FieldInfo  fieldInfo 
)
pure virtual

制約が満たされるかどうかを判定する。

Parameters
type判定する型
fieldInfoこの属性が指定されているFieldInfo
Returns
制約が満たされる場合にtrueを返す。

Implemented in ClassGenericArgumentAttribute, ClassScriptableObjectAttribute, ClassComponentAttribute, ClassUnityObjectAttribute, and ClassExtendsAttribute.