Arbor 3: FSM & BT Graph Editor  3.7.8
ClassEnumFieldConstraint Class Reference

Attribute to restrict to enum types only for fields. More...

Inheritance diagram for ClassEnumFieldConstraint:
ClassTypeConstraintAttribute

Public Member Functions

override string GetTypeName (FieldInfo fieldInfo)
 Returns the type name of the constraint. More...
 
override bool IsConstraintSatisfied (Type type, FieldInfo fieldInfo)
 Whether the constraint is satisfied is judged. More...
 
- Public Member Functions inherited from ClassTypeConstraintAttribute
virtual Type GetBaseType (FieldInfo fieldInfo)
 It returns the base type of constraints. More...
 

Detailed Description

Attribute to restrict to enum types only for fields.

Member Function Documentation

◆ GetTypeName()

override string GetTypeName ( FieldInfo  fieldInfo)
virtual

Returns the type name of the constraint.

Parameters
fieldInfoFieldInfo with this attribute specified
Returns
Type name of constraint

Reimplemented from ClassTypeConstraintAttribute.

◆ IsConstraintSatisfied()

override bool IsConstraintSatisfied ( Type  type,
FieldInfo  fieldInfo 
)
virtual

Whether the constraint is satisfied is judged.

Parameters
typeDetermining type
fieldInfoFieldInfo with this attribute specified
Returns
Returns true if the constraint is satisfied.

Implements ClassTypeConstraintAttribute.