public final class NType extends NObject
| Modifier and Type | Class and Description |
|---|---|
static class |
NType.DeclaredConstantCollection |
static class |
NType.DeclaredConstructorCollection |
static class |
NType.DeclaredEnumConstantCollection |
static class |
NType.DeclaredEventCollection |
static class |
NType.DeclaredFieldCollection |
static class |
NType.DeclaredMethodCollection |
static class |
NType.DeclaredPartCollection |
static class |
NType.DeclaredPropertyCollection |
NObject.FromHandle, NObject.NObjectCallback, NObject.NObjectPropertyChangedCallbackchangedCallback, changingCallback, FLAG_REF_RET, propertyChangedCallback, stateChangedCallback| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(NObject object,
String name,
EventListener listener) |
void |
capturePropertyValues(NObject object,
NPropertyBag properties) |
void |
copyPropertyValues(NObject dstObject,
NObject srcObject)
Copies properties from one object to another object.
|
Object |
createInstance() |
Object |
createInstance(EnumSet<NAttribute> attributes) |
static Object |
createInstance(String name) |
static Object |
createInstance(String name,
EnumSet<NAttribute> attributes) |
boolean |
equals(Object obj)
Checks whether the current object equals the specified object.
|
EnumSet<NAttribute> |
getAttributes() |
NType |
getBaseType()
Gets the base type of the current type.
|
NConstantInfo |
getDeclaredConstant(String name) |
NType.DeclaredConstantCollection |
getDeclaredConstants() |
NType.DeclaredConstructorCollection |
getDeclaredConstructors() |
NEnumConstantInfo |
getDeclaredEnumConstant(String name) |
NType.DeclaredEnumConstantCollection |
getDeclaredEnumConstants() |
NEventInfo |
getDeclaredEvent(String name) |
NType.DeclaredEventCollection |
getDeclaredEvents() |
NPropertyInfo |
getDeclaredField(String name) |
NType.DeclaredFieldCollection |
getDeclaredFields() |
NMethodInfo |
getDeclaredMethod(String name) |
NType.DeclaredMethodCollection |
getDeclaredMethods() |
NMethodInfo[] |
getDeclaredMethods(String name) |
NObjectPartInfo |
getDeclaredPart(String name) |
NType.DeclaredPartCollection |
getDeclaredParts() |
NType.DeclaredPropertyCollection |
getDeclaredProperties() |
NPropertyInfo |
getDeclaredProperty(String name) |
NType |
getEnumAlternative() |
NModule |
getModule()
Gets the module of the current type.
|
String |
getName()
Gets the name of the current type.
|
NType |
getOwnerType()
Gets the owner type of the current type.
|
Object |
getPropertyValue(NObject obj,
String name)
Retrieves the specified property of the specified object.
|
<E> E |
getPropertyValue(NObject obj,
String name,
Class<E> cls)
Retrieves the specified property of the specified object.
|
NType |
getRootType()
Gets the root type of the current type.
|
NTypeCode |
getRootTypeCode()
Returns NTypeCode for the root type of the current type.
|
static NType |
getType(String name) |
static NType |
getType(String name,
boolean mustExist) |
NTypeCode |
getTypeCode()
Returns NTypeCode for the current type.
|
NType |
getUseInsteadType()
Gets the type that should be used indead of current type.
|
int |
getValueSize()
Gets the size of the current value.
|
int |
hashCode()
Retrieves the hash code of the current object.
|
static String |
identifierToString(String value,
String format)
Converts the specified identifier into a string.
|
Object |
invokeMethod(NObject object,
String name,
NPropertyBag parameters) |
Object |
invokeMethod(NObject object,
String name,
Object[] parameters) |
Object |
invokeMethod(NObject object,
String name,
String parameters) |
boolean |
isAbstract()
Checks whether the current type is abstract.
|
boolean |
isAssignableFrom(NType type)
Checks whether the current type is assignable from the specified type.
|
boolean |
isBasic()
Checks whether the current type is a basic type.
|
boolean |
isCallback()
Checks whether the current type is a callback type.
|
boolean |
isCloneable()
Checks whether the current type is cloneable.
|
boolean |
isComparable()
Checks whether the current type is comparable.
|
boolean |
isDeprecared()
Checks whether the current type is deprecated.
|
boolean |
isDisposable()
Checks whether the current type is disposable.
|
boolean |
isEnum()
Checks whether the current type is an enum type.
|
boolean |
isEquatable()
Checks whether the current type is equatable.
|
boolean |
isFlagsEnum()
Checks whether the current type is a flags enum.
|
boolean |
isHandle()
Checks whether the current type is a handle type.
|
boolean |
isInstanceOfType(HNObject hObject)
Checks whether the current type is an instance of the specified object.
|
boolean |
isInstanceOfType(NObject obj)
Checks whether the current type is an instance of the specified object.
|
boolean |
isMemorySerializable()
Checks whether the current type is memory serializable.
|
boolean |
isObject()
Checks whether the current type is an object type.
|
boolean |
isOwnerType()
Checks whether the current type is the owner type.
|
boolean |
isParsable()
Checks whether the current type is parsable.
|
boolean |
isPrimitive()
Checks whether the current type is a primitive type.
|
boolean |
isPublic()
Checks whether the current type is public.
|
boolean |
isSealed()
Checks whether the current type is sealed.
|
boolean |
isSerializable()
Checks whether the current type is serializable; else false.
|
boolean |
isSignNeutral()
Checks whether the current type is sign-neutral.
|
boolean |
isStatic()
Checks whether the current type is static.
|
boolean |
isStruct()
Checks whether the current type is a struct type.
|
boolean |
isSubclassOf(NType type)
Checks whether the current type is a subclass of the specified type.
|
static NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
void |
removeEventListener(NObject object,
String name,
EventListener listener) |
void |
reset(NObject obj)
Resets the properties and parameters specified object.
|
void |
resetPropertyValue(NObject obj,
String name)
Resets the specified property.
|
<E> void |
setPropertyValue(NObject obj,
String name,
Class<E> cls,
E value)
Sets the value of the specified property.
|
void |
setPropertyValue(NObject obj,
String name,
Object value)
Sets the value of the specified property.
|
Class<?> |
toClass()
Converts the current value into a type.
|
Class<?> |
toClass(boolean deepMap)
Converts the current value into a type.
|
static Class<?> |
toClass(NType value,
EnumSet<NAttribute> attributes,
boolean deepMap)
Converts the native type to a regular type.
|
static NType |
toNativeType(Class<?> value,
EnumSet<NAttribute> attributes,
boolean deepMap)
Converts the specified type to a native type.
|
addListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementscheck, dispose, finalizepublic static Object createInstance(String name, EnumSet<NAttribute> attributes)
public static NType nativeTypeOf()
public static NType toNativeType(Class<?> value, EnumSet<NAttribute> attributes, boolean deepMap)
value - The type to be converted.attributes - Type attributes.deepMap - true if deep map is to be used; else falsepublic static Class<?> toClass(NType value, EnumSet<NAttribute> attributes, boolean deepMap)
value - The native type to be convereted.attributes - Type attributes.deepMap - true if deep map is to be used; else falsepublic static String identifierToString(String value, String format)
value - The indentifier.format - Format string.public boolean equals(Object obj)
public int hashCode()
public Object createInstance()
public Object createInstance(EnumSet<NAttribute> attributes)
public boolean isSubclassOf(NType type)
type - The specified type.public boolean isAssignableFrom(NType type)
type - The specified type.public boolean isInstanceOfType(HNObject hObject)
hObject - An object handle.public boolean isInstanceOfType(NObject obj)
obj - The specified object.public NModule getModule()
public String getName()
public NType getBaseType()
public NTypeCode getTypeCode()
public NType getRootType()
public NTypeCode getRootTypeCode()
public int getValueSize()
public boolean isBasic()
public boolean isPrimitive()
public boolean isEnum()
public boolean isStruct()
public boolean isHandle()
public boolean isCallback()
public boolean isObject()
public EnumSet<NAttribute> getAttributes()
public boolean isDisposable()
public boolean isPublic()
public boolean isStatic()
public boolean isSealed()
public boolean isAbstract()
public boolean isDeprecared()
public NType getUseInsteadType()
public boolean isEquatable()
public boolean isComparable()
public boolean isParsable()
public boolean isSignNeutral()
public boolean isFlagsEnum()
public boolean isCloneable()
public boolean isSerializable()
public boolean isMemorySerializable()
public NType getOwnerType()
public boolean isOwnerType()
public NType getEnumAlternative()
public Object getPropertyValue(NObject obj, String name)
obj - The object to retrieve a property of.name - Name of the property.public <E> E getPropertyValue(NObject obj, String name, Class<E> cls)
obj - The object to retrieve a property of.name - Name of the property.cls - Type of the property.public void setPropertyValue(NObject obj, String name, Object value)
obj - The object to set the property of.name - Name of the property.value - New value of the property.public <E> void setPropertyValue(NObject obj, String name, Class<E> cls, E value)
obj - The object to set the property of.name - Name of the property.cls - Type of the property.value - New value of the property.public void resetPropertyValue(NObject obj, String name)
obj - The object to reset the property of.name - Name of the property.public void reset(NObject obj)
obj - The object to reset.public void copyPropertyValues(NObject dstObject, NObject srcObject)
dstObject - The destination object.srcObject - The source object.public void capturePropertyValues(NObject object, NPropertyBag properties)
public Object invokeMethod(NObject object, String name, NPropertyBag parameters)
public void addEventListener(NObject object, String name, EventListener listener)
public void removeEventListener(NObject object, String name, EventListener listener)
public NEnumConstantInfo getDeclaredEnumConstant(String name)
public NPropertyInfo getDeclaredField(String name)
public NConstantInfo getDeclaredConstant(String name)
public NMethodInfo getDeclaredMethod(String name)
public NMethodInfo[] getDeclaredMethods(String name)
public NPropertyInfo getDeclaredProperty(String name)
public NEventInfo getDeclaredEvent(String name)
public NObjectPartInfo getDeclaredPart(String name)
public NType.DeclaredEnumConstantCollection getDeclaredEnumConstants()
public NType.DeclaredFieldCollection getDeclaredFields()
public NType.DeclaredConstantCollection getDeclaredConstants()
public NType.DeclaredConstructorCollection getDeclaredConstructors()
public NType.DeclaredMethodCollection getDeclaredMethods()
public NType.DeclaredPropertyCollection getDeclaredProperties()
public NType.DeclaredEventCollection getDeclaredEvents()
public NType.DeclaredPartCollection getDeclaredParts()
public Class<?> toClass()
public Class<?> toClass(boolean deepMap)
deepMap - true if deep map is to be used; else falseCopyright © 2016 Neurotechnology. All rights reserved.