ecl-logo Documentation

ObjectReferenceP

ObjectReferenceP[]pattern

returns a pattern which matches an Object/Model of any defined type.

ObjectReferenceP[type]pattern

returns a pattern which matches an Object/Model that is a sub-type of type.

ObjectReferenceP[Object]pattern

returns a pattern which matches an Object of any defined Object types.

ObjectReferenceP[Model]pattern

returns a pattern which matches a Model of any defined Model types.

ObjectReferenceP[object]pattern

returns a pattern which matches any form of the given object.

Details

    Input
    Output

Examples

Basic Examples  (5)

Returns a pattern which matches an Object/Model of any defined type:

Returns a pattern that matches an Object of any sub-types of the defined Model type:

Returns a pattern that matches any Object of any sub-types of the list of defined types:

Returns a pattern that does not match a type that is not defined:

Does not evaluate if not given an expression in the form of an Object/Model type:

Additional Examples  (8)

Returns a pattern that matches a Model of any Model sub-types:

Returns a pattern that does not match an Object of any Object sub-types:

Returns a pattern that matches an Object of any Object sub-types:

Returns a pattern that does not match a Model of any Model sub-types:

Returns a pattern that matches an Object with no type information:

Returns a pattern that matches a Model with no type information:

Does not match a link:

Does not match a packet:

Applications  (1)

Returns a pattern that matches all forms of specific Object: