Class AssetMemberVisitorBase
public abstract class AssetMemberVisitorBase : AssetVisitorBase, IDataVisitor
- Inheritance
-
DataVisitorBaseAssetMemberVisitorBase
- Implements
-
IDataVisitor
- Inherited Members
-
DataVisitorBase.TypeDescriptorFactoryDataVisitorBase.CustomVisitorsDataVisitorBase.CurrentPathDataVisitorBase.AttributeRegistryDataVisitorBase.Reset()DataVisitorBase.VisitNull()
Properties
MemberPath
Gets the Stride.Core.Reflection.MemberPath that will be checked against when visiting.
protected MemberPath MemberPath { get; set; }
Property Value
- MemberPath
- See Also
-
CurrentPath
Methods
VisitArrayItem(Array, ArrayDescriptor, int, object, ITypeDescriptor)
Visits an array item.
public override void VisitArrayItem(Array array, ArrayDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor)
Parameters
array
ArrayThe array.
descriptor
ArrayDescriptorThe descriptor.
index
intThe index.
item
objectThe item.
itemDescriptor
ITypeDescriptorThe item descriptor.
VisitAssetMember(object, ITypeDescriptor)
Called when Stride.Core.Reflection.DataVisitorBase.CurrentPath matches the MemberPath given when creating this instance.
protected abstract void VisitAssetMember(object value, ITypeDescriptor descriptor)
Parameters
value
objectdescriptor
ITypeDescriptor
VisitCollectionItem(IEnumerable, CollectionDescriptor, int, object, ITypeDescriptor)
Visits a collection item.
public override void VisitCollectionItem(IEnumerable collection, CollectionDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor)
Parameters
collection
IEnumerableThe collection.
descriptor
CollectionDescriptorThe descriptor.
index
intThe index.
item
objectThe item.
itemDescriptor
ITypeDescriptorThe item descriptor.
VisitDictionaryKeyValue(object, DictionaryDescriptor, object, ITypeDescriptor, object, ITypeDescriptor)
Visits a dictionary key-value.
public override void VisitDictionaryKeyValue(object dictionary, DictionaryDescriptor descriptor, object key, ITypeDescriptor keyDescriptor, object value, ITypeDescriptor valueDescriptor)
Parameters
dictionary
objectThe dictionary.
descriptor
DictionaryDescriptorThe descriptor.
key
objectThe key.
keyDescriptor
ITypeDescriptorThe key descriptor.
value
objectThe value.
valueDescriptor
ITypeDescriptorThe value descriptor.
VisitObject(object, ObjectDescriptor, bool)
Visits an object (either a class or a struct)
public override void VisitObject(object obj, ObjectDescriptor descriptor, bool visitMembers)
Parameters
VisitObjectMember(object, ObjectDescriptor, IMemberDescriptor, object)
Visits an object member.
public override void VisitObjectMember(object container, ObjectDescriptor containerDescriptor, IMemberDescriptor member, object value)
Parameters
container
objectThe container.
containerDescriptor
ObjectDescriptorThe container descriptor.
member
IMemberDescriptorThe member.
value
objectThe value.
VisitPrimitive(object, PrimitiveDescriptor)
Visits a primitive (int, float, string...etc.)
public override void VisitPrimitive(object primitive, PrimitiveDescriptor descriptor)
Parameters
primitive
objectThe primitive.
descriptor
PrimitiveDescriptorThe descriptor.
VisitSetItem(IEnumerable, SetDescriptor, object, ITypeDescriptor)
Visits a set item.
public override void VisitSetItem(IEnumerable set, SetDescriptor descriptor, object item, ITypeDescriptor itemDescriptor)
Parameters
set
IEnumerableThe set.
descriptor
SetDescriptorThe descriptor.
item
objectThe item.
itemDescriptor
ITypeDescriptorThe item descriptor.