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:
PropertyBuilder
public class PropertyInfo extends MemberInfo
The base .NET class managing System.Reflection.PropertyInfo, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..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.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Reflection.PropertyInfostatic JCType
classType
The 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, getIsCollectible, getMemberType, getMetadataToken, getModule, getName, getReflectedType, HasSameMetadataDefinitionAs, IsDefined
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classMemberInfo
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classMemberInfo
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classMemberInfo
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classMemberInfo
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classMemberInfo
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classMemberInfo
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static PropertyInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoPropertyInfo
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
PropertyInfo
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetConstantValue
public NetObject GetConstantValue() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetRawConstantValue
public NetObject GetRawConstantValue() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
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
-
GetValue
public NetObject GetValue(NetObject obj) 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
-
GetModifiedPropertyType
public NetType GetModifiedPropertyType() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
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, 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
-
SetValue
public void SetValue(NetObject obj, NetObject value) 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
-
-