Class ClassExtensions
Denotes extension methods for Class instances
public static class ClassExtensions- Inheritance
- 
      
      ClassExtensions
- Inherited Members
Methods
IsAssignableFrom(IClass, IClass)
Determines whether an instance of the provided class can be assigned to this class
public static bool IsAssignableFrom(this IClass @class, IClass specificType)Parameters
Returns
- bool
- True, if the provided class is a derived class, otherwise False 
IsContainerReference(IReference)
Determines whethe the given reference is a reference to the container
public static bool IsContainerReference(this IReference reference)Parameters
- referenceIReference
- the reference 
Returns
- bool
- True, if the reference has an opposite containment reference, otherwise False 
IsRefined(IClass, IAttribute)
Determines whether the given attribute is refined in the scope of this class
public static bool IsRefined(this IClass @class, IAttribute attribute)Parameters
- classIClass
- the context class 
- attributeIAttribute
- the attribute 
Returns
- bool
- True, if the attribute is refined, otherwise False 
IsRefined(IClass, IReference)
Determines whether the given reference is refined in the scope of this class
public static bool IsRefined(this IClass @class, IReference reference)Parameters
- classIClass
- the context class 
- referenceIReference
- the reference 
Returns
- bool
- True, if the reference is refined otherwise False 
LookupAttribute(IClass, string)
Looks up the attribute with the given name
public static IAttribute LookupAttribute(this IClass @class, string name)Parameters
Returns
- IAttribute
- The attribute or null, if no such attribute could be found 
LookupOperation(IClass, string)
Looks up the operation with the given name
public static IOperation LookupOperation(this IClass @class, string name)Parameters
Returns
- IOperation
- The operation or null, if no such operation was found 
LookupReference(IClass, string)
Looks up the reference with the given name
public static IReference LookupReference(this IClass @class, string name)Parameters
Returns
- IReference
- The reference or null, if no such reference could be found 
RetrieveIdentifier(IClass)
Retrieves the identifier of the class
public static ScopedIdentifier RetrieveIdentifier(this IClass @class)Parameters
- classIClass
- the class 
Returns
- ScopedIdentifier
- A scoped identifier