Apache REEF
0.15.0
Retainable Evaluator Execution Framework
|
Static Public Member Functions | |
static string | GetAssemblyQualifiedName (Type name) |
Gets the AssemblyQualifiedName from the Type. More... | |
static string | GetName (Type name) |
It returns Type.FullName. More... | |
static Type | GetInterfaceTarget (Type iface, Type type) |
Gets the interface target. More... | |
static Type | GetInterfaceTargetForType (Type iface, Type type) |
static bool | IsGenericTypeof (Type iface, Type type) |
Determines whether [is generic typeof] [the specified iface]. More... | |
static IEnumerable< Type > | ClassAndAncestors (Type c) |
Classes the and ancestors. More... | |
static IEnumerable< Type > | ClassAndAncestorsExcludeSelf (Type c) |
static Type | BoxClass (Type c) |
Boxes the class. More... | |
static bool | IsCoercable (Type to, Type from) |
Determines whether the specified to is coercable. More... | |
static bool | IsAssignableFromIgnoreGeneric (Type to, Type from) |
Determines whether [is assignable from ignore generic] [the specified to]. More... | |
static Type | EnsureInterfaceType (Type interf) |
Ensures the type of the interface. More... | |
static string | GetAssemblyQualifiedNameForGeneric (Type t) |
Gets the assembly qualified name for generic. More... | |
static bool | IsInstanceOfGeneric (object p, Type t) |
Determines whether [is instance of generic] [the specified p]. More... | |
static Type | GetTypeByName (string name) |
Gets the name of the type by. More... | |
static Type[] | GetEnclosingClasses (Type t) |
Gets the enclosing classes. More... | |
static string[] | GetEnclosingClassNames (Type t) |
Gets the enclosing class names. More... | |
static string[] | GetEnclosingClassNames (string fullName) |
Gets the enclosing class names. More... | |
static Type | GetNamedParameterTargetOrNull (Type type) |
Gets the named parameter target or null. More... | |
static IEnumerable< Type > | GetInterfaces (Type type, bool includeInherited) |
static bool | IsAnonymousType (Type type) |
Static Public Attributes | |
static readonly string | Regexp = "[\\.\\+]" |
|
inlinestatic |
Boxes the class.
c | The c. |
System.NotSupportedException | Encountered unknown primitive type! |
|
inlinestatic |
Classes the and ancestors.
c | The c. |
|
inlinestatic |
|
inlinestatic |
Ensures the type of the interface.
For generic types, full name could be null. In this case, we need to get GetGenericTypeDefinition for the type so that to retain all teh type information
interf | The interf. |
|
inlinestatic |
Gets the AssemblyQualifiedName from the Type.
This name is used in ClassHierarchy as a key when add a node as a child to parent. THe name is used as FullName in a Node
name | The name. |
System.ArgumentException | null is passed in FullName() in ReflectionUtilities |
|
inlinestatic |
Gets the assembly qualified name for generic.
t | The t. |
|
inlinestatic |
Gets the enclosing classes.
t | The t. |
|
inlinestatic |
Gets the enclosing class names.
t | The t. |
System.ApplicationException | The Type passed to GetEnclosingClassShortNames is null |
|
inlinestatic |
Gets the enclosing class names.
fullName | The full name. |
System.ApplicationException | The name passed to GetEnclosingClassShortNames is null |
|
inlinestatic |
|
inlinestatic |
Gets the interface target.
Foo<T> , given Foo<T> and Foo return T example class Foo : Bar<U>, Bas<T> iface: Bar, type: Foo, return U iface: Bas, type: Foo, return T class ACons implements IExternalConstructor iface: IExternalConstructor<>, type: ACons return A
iface | The iface. |
type | The type. |
|
inlinestatic |
|
inlinestatic |
It returns Type.FullName.
This name is used as Name in a Node. It is not unique for a generic type with different type of arguments. It is used for toString or debug info as AssemblyQualifiedName is really long
name | The name. |
|
inlinestatic |
Gets the named parameter target or null.
type | The type. |
ClassHierarchyException | Named parameter + GetName(type) + implements
|
|
inlinestatic |
Gets the name of the type by.
name | The name. |
System.ApplicationException | Not able to get Type from the name provided: + name |
|
inlinestatic |
|
inlinestatic |
Determines whether [is assignable from ignore generic] [the specified to].
to | To. |
from | From. |
true
if [is assignable from ignore generic] [the specified to]; otherwise, false
.
|
inlinestatic |
Determines whether the specified to is coercable.
to | To. |
from | From. |
true
if the specified to is coercable; otherwise, false
.
|
inlinestatic |
Determines whether [is generic typeof] [the specified iface].
iface | The iface. |
type | The type. |
true
if [is generic typeof] [the specified iface]; otherwise, false
. System.ApplicationException |
|
inlinestatic |
Determines whether [is instance of generic] [the specified p].
p | The p. |
t | The t. |
true
if [is instance of generic] [the specified p]; otherwise, false
.
|
static |