Package system.reflection
Class FieldInfo
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.reflection.MemberInfo
-
- system.reflection.FieldInfo
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
FieldBuilder
public class FieldInfo extends MemberInfo
The base .NET class managing System.Reflection.FieldInfo, 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.FieldInfo
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.FieldInfostatic JCType
classType
The type managed from JCOBridge.
-
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.FieldInfo- 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 FieldInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoFieldInfo
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
FieldInfo
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetRawConstantValue
public NetObject GetRawConstantValue() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetValue
public NetObject GetValue(NetObject obj) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetValueDirect
public NetObject GetValueDirect(TypedReference obj) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
GetFieldFromHandle
public static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle, RuntimeTypeHandle declaringType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, NullReferenceException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
NullReferenceException
NotImplementedException
-
GetFieldFromHandle
public static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, NullReferenceException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
NullReferenceException
NotImplementedException
-
GetModifiedFieldType
public NetType GetModifiedFieldType() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
GetOptionalCustomModifiers
public NetType[] GetOptionalCustomModifiers() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetRequiredCustomModifiers
public NetType[] GetRequiredCustomModifiers() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
SetValue
public void SetValue(NetObject obj, NetObject value, BindingFlags invokeAttr, Binder binder, CultureInfo culture) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetValue
public void SetValue(NetObject obj, NetObject value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException
-
SetValueDirect
public void SetValueDirect(TypedReference obj, NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
-
getIsAssembly
public boolean getIsAssembly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsFamily
public boolean getIsFamily() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsFamilyAndAssembly
public boolean getIsFamilyAndAssembly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsFamilyOrAssembly
public boolean getIsFamilyOrAssembly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsInitOnly
public boolean getIsInitOnly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsLiteral
public boolean getIsLiteral() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsNotSerialized
public boolean getIsNotSerialized() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsPinvokeImpl
public boolean getIsPinvokeImpl() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsPrivate
public boolean getIsPrivate() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsPublic
public boolean getIsPublic() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsSecurityCritical
public boolean getIsSecurityCritical() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsSecuritySafeCritical
public boolean getIsSecuritySafeCritical() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsSecurityTransparent
public boolean getIsSecurityTransparent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsSpecialName
public boolean getIsSpecialName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsStatic
public boolean getIsStatic() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getAttributes
public FieldAttributes getAttributes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFieldHandle
public RuntimeFieldHandle getFieldHandle() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFieldType
public NetType getFieldType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-