Package system.reflection
Class PropertyInfo
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.MemberInfo
-
- system.reflection.PropertyInfo
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
COMPropertyInfo,PropertyBuilder
public class PropertyInfo extends MemberInfo
The base .NET class managing System.Reflection.PropertyInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Reflection.PropertyInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Reflection.PropertyInfostatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PropertyInfo()PropertyInfo(java.lang.Object instance)Internal constructor.
-
Method Summary
-
Methods inherited from class system.reflection.MemberInfo
GetCustomAttributes, GetCustomAttributes, getDeclaringType, getMemberType, getMetadataToken, getModule, getName, getReflectedType, IsDefined
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Reflection.PropertyInfo- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classMemberInfo- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classMemberInfo- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classMemberInfo- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classMemberInfo- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classMemberInfo
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classMemberInfo- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static PropertyInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoPropertyInfo, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
PropertyInfoinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetConstantValue
public NetObject GetConstantValue() throws java.lang.Throwable, NotImplementedException
- Throws:
java.lang.ThrowableNotImplementedException
-
GetRawConstantValue
public NetObject GetRawConstantValue() throws java.lang.Throwable, NotImplementedException
- Throws:
java.lang.ThrowableNotImplementedException
-
GetValue
public NetObject GetValue(NetObject obj) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetValue
public NetObject GetValue(NetObject obj, NetObject[] index) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetValue
public NetObject GetValue(NetObject obj, BindingFlags invokeAttr, Binder binder, NetObject[] index, CultureInfo culture) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetGetMethod
public MethodInfo GetGetMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetGetMethod
public MethodInfo GetGetMethod(boolean nonPublic) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetSetMethod
public MethodInfo GetSetMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetSetMethod
public MethodInfo GetSetMethod(boolean nonPublic) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetAccessors
public MethodInfo[] GetAccessors() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetAccessors
public MethodInfo[] GetAccessors(boolean nonPublic) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetIndexParameters
public ParameterInfo[] GetIndexParameters() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetOptionalCustomModifiers
public NetType[] GetOptionalCustomModifiers() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetRequiredCustomModifiers
public NetType[] GetRequiredCustomModifiers() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetValue
public void SetValue(NetObject obj, NetObject value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetValue
public void SetValue(NetObject obj, NetObject value, NetObject[] index) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetValue
public void SetValue(NetObject obj, NetObject value, BindingFlags invokeAttr, Binder binder, NetObject[] index, CultureInfo culture) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCanRead
public boolean getCanRead() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getCanWrite
public boolean getCanWrite() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsSpecialName
public boolean getIsSpecialName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getGetMethod
public MethodInfo getGetMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSetMethod
public MethodInfo getSetMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getAttributes
public PropertyAttributes getAttributes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPropertyType
public NetType getPropertyType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-