TypeMeta ClassCognex VisionPro 9.25 SR1

Provides the runtime type Reflection/Introspection API for the Vision type system.

Inheritance Hierarchy

System Object
  Cognex.Vision ShareableBase
    Cognex.Vision.Meta TypeMeta

Namespace: Cognex.Vision.Meta
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.25.1.0
Syntax

public sealed class TypeMeta : ShareableBase, 
	IMemberMeta, IObject

The TypeMeta type exposes the following members.

Constructors

  NameDescription
Public methodTypeMeta

Constructs a new instance of this class.

Top
Methods

  NameDescription
Public methodStatic memberCanConvertPrimitive

Return true if it's "safe" to attempt a conversion between two primitive types.

Public methodStatic memberCanConvertType

Returns true if it's "safe" to attempt conversion between two types, one of which is not primitive.

Public methodStatic memberConvertMemberMetaCollectionToPath(MemberMetaCollection)

Converts an ordered list of MethodMeta to a dotted string "property path".

Public methodStatic memberConvertMemberMetaCollectionToPath(MemberMetaCollection, Object)

Converts an ordered list of MethodMeta to a dotted string "property path".

Public methodStatic memberConvertPathToMemberMetaCollection

Converts a dotted string "property path" to an equivalent ordered list of MemberMeta instances.

Public methodStatic memberConvertPrimitive

Attempt to convert value from sourceType to destinationType.

Public methodStatic memberConvertValue

Attempt to convert value from sourceType to destinationType when the sourceType or destinationType is not primitive.

Public methodEquals
Compares the equality of this object with another.
(Overrides ShareableBase Equals(Object).)
Public methodFormatNameForPath

Returns the name of this member formatted as a string for use within a Vision property path.

Public methodGetBaseClass

Returns the concrete base class of this Type.

Public methodGetDeclaringType

Returns nullptr as the Vision type system does not support nesting types.

Public methodGetDerivedClasses

Returns a collection of the classes which have this class as a base class.

Public methodGetEnumName

Returns the name of the constant that has the supplied value, for the current enumeration type.

Public methodGetEnumNames

Returns the names of the members of the current enumeration type.

Public methodGetEnumUnderlyingType

Returns the underlying type of the current enumeration type.

Public methodGetEnumValues

Returns a collection of the values of the constants in the current enumeration type.

Public methodGetFakeProperties

Return a collection of FakePropertyMeta instances that stand in for methods that behave much like observable properties.

Public methodGetFakePropertyByName

Creates a FakePropertyMeta for a method given a properly formatted method name.

Public methodGetHashCode

Serves as the default hash function.

(Overrides ShareableBase GetHashCode .)
Public methodGetInterfaces

Gets a list of the Interfaces supported by this Type.

Public methodStatic memberGetMemberMetas(Object, TypeMeta)

Return all bindable property members given an object instance and its type.

Public methodStatic memberGetMemberMetas(Object, TypeMeta, Boolean)

Return all bindable property members given an object instance and its type.

Public methodGetMethods

Gets a list of Methods available on this Type.

Public methodGetProperties

Gets a list of Properties available on this Type.

Public methodGetPropertyByName

Gets a PropertyMeta for the given property name.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeImpl_

COGNEX INTERNAL USE ONLY!

Public methodGetTypeMeta

Get the TypeMeta that describes the type of this object.

(Overrides ShareableBase GetTypeMeta .)
Public methodStatic memberGetTypeMetaByName

Return a TypeMeta instance for the (fully namespace qualified) typeName.

Public methodStatic memberGetTypeMetaFromObject

Return the TypeMeta of the given object instance.

Public methodStatic memberGetTypeMetaFromPath

Convenience method to determine the type of the last node in a property path.

Public methodStatic memberGetTypeMetas

Return a list of all known Vision types.

Public methodStatic memberGetValue

Evaluates a property path and returns the value.

Public methodIsAssignableFrom

Checks if this type can be assigned from sourceType based on the inheritance pattern.

Public methodStatic memberIsFormattedAsCast

Returns true if a string is formatted as a "cast" node in a property path.

Public methodStatic memberIsFormattedAsMethod

Returns true if a string is formatted as a Method or "FakeProperty" node in a property path.

Public methodIsPrimitive

Return true if this TypeMeta describes a primitive type.

Public methodIsValueType

Return true if this TypeMeta describes a value type.

Public methodStatic memberSetValue

Evaluates a property path and sets the value at the end of the expression.

Public methodToString

Returns a human readable string that represents the object.

(Overrides Object ToString .)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Public operatorStatic memberInequality
Top
Properties

  NameDescription
Public propertyHandle (Overrides ShareableBase Handle.)
Public propertyId

Unique identifier for a TypeMeta instance.

Public propertyIsClass

Returns true if this is a TypeMeta representing a Class.

Public propertyIsConstructor

Returns true if this is a MethodMeta representing a Constructor.

Public propertyIsEnum

Returns true if this is a TypeMeta representing an Enum.

Public propertyIsFake

Returns true if this is a FakePropertyMeta representing a Method of a class that behaves like a property.

Public propertyIsInterface

Returns true if this is a TypeMeta representing an Interface.

Public propertyIsMethod

Returns true if this is a MethodMeta representing a Method.

Public propertyIsParameter

Returns true if this is a ParameterMeta representing a Parameter to a Method.

Public propertyIsProperty

Returns true if this is a PropertyMeta representing a Property.

Public propertyIsStatic

Returns true if this is a static Member.

Public propertyIsType

Returns true if this is a TypeMeta.

Public propertyName

Returns the name of this member.

Top
See Also