public class FieldInfo extends MemberInfo
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Reflection.FieldInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Reflection.FieldInfo
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
FieldInfo() |
FieldInfo(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static FieldInfo |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into FieldInfo, a cast assert is made to check if types are compatible. |
FieldAttributes |
getAttributes()
Gets the value of the .NET property Attributes.
|
static FieldInfo |
GetFieldFromHandle(RuntimeFieldHandle handle)
Invokes the .NET member GetFieldFromHandle.
|
static FieldInfo |
GetFieldFromHandle(RuntimeFieldHandle handle,
RuntimeTypeHandle declaringType)
Invokes the .NET member GetFieldFromHandle.
|
RuntimeFieldHandle |
getFieldHandle()
Gets the value of the .NET property FieldHandle.
|
NetType |
getFieldType()
Gets the value of the .NET property FieldType.
|
boolean |
getIsAssembly()
Gets the value of the .NET property IsAssembly.
|
boolean |
getIsFamily()
Gets the value of the .NET property IsFamily.
|
boolean |
getIsFamilyAndAssembly()
Gets the value of the .NET property IsFamilyAndAssembly.
|
boolean |
getIsFamilyOrAssembly()
Gets the value of the .NET property IsFamilyOrAssembly.
|
boolean |
getIsInitOnly()
Gets the value of the .NET property IsInitOnly.
|
boolean |
getIsLiteral()
Gets the value of the .NET property IsLiteral.
|
boolean |
getIsNotSerialized()
Gets the value of the .NET property IsNotSerialized.
|
boolean |
getIsPinvokeImpl()
Gets the value of the .NET property IsPinvokeImpl.
|
boolean |
getIsPrivate()
Gets the value of the .NET property IsPrivate.
|
boolean |
getIsPublic()
Gets the value of the .NET property IsPublic.
|
boolean |
getIsSecurityCritical()
Gets the value of the .NET property IsSecurityCritical.
|
boolean |
getIsSecuritySafeCritical()
Gets the value of the .NET property IsSecuritySafeCritical.
|
boolean |
getIsSecurityTransparent()
Gets the value of the .NET property IsSecurityTransparent.
|
boolean |
getIsSpecialName()
Gets the value of the .NET property IsSpecialName.
|
boolean |
getIsStatic()
Gets the value of the .NET property IsStatic.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
NetType |
GetModifiedFieldType()
Invokes the .NET member GetModifiedFieldType.
|
NetType[] |
GetOptionalCustomModifiers()
Invokes the .NET member GetOptionalCustomModifiers.
|
NetObject |
GetRawConstantValue()
Invokes the .NET member GetRawConstantValue.
|
NetType[] |
GetRequiredCustomModifiers()
Invokes the .NET member GetRequiredCustomModifiers.
|
NetObject |
GetValue(NetObject obj)
Invokes the .NET member GetValue.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
SetValue(NetObject obj,
NetObject value)
Invokes the .NET member SetValue.
|
void |
SetValue(NetObject obj,
NetObject value,
BindingFlags invokeAttr,
Binder binder,
CultureInfo culture)
Invokes the .NET member SetValue.
|
getCustomAttributes, GetCustomAttributes, GetCustomAttributes, GetCustomAttributesData, getDeclaringType, getIsCollectible, getMemberType, getMetadataToken, getModule, getName, getReflectedType, HasSameMetadataDefinitionAs, IsDefinedpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public FieldInfo()
throws java.lang.Throwable
java.lang.Throwablepublic FieldInfo(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static FieldInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into FieldInfo, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedFieldInfo instancejava.lang.Throwable - in case of error during cast operationpublic FieldAttributes getAttributes() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
handle - the argument of type RuntimeFieldHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNotImplementedException - if the .NET member raises itpublic static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle, RuntimeTypeHandle declaringType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
handle - the argument of type RuntimeFieldHandledeclaringType - the argument of type RuntimeTypeHandlejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNotImplementedException - if the .NET member raises itpublic RuntimeFieldHandle getFieldHandle() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetType getFieldType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsAssembly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsFamily()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsFamilyAndAssembly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsFamilyOrAssembly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsInitOnly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsLiteral()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsNotSerialized()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsPinvokeImpl()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsPrivate()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsPublic()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsSecurityCritical()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsSecuritySafeCritical()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsSecurityTransparent()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsSpecialName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsStatic()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MemberInfopublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MemberInfopublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MemberInfonull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MemberInfopublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class MemberInfopublic NetType GetModifiedFieldType() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic NetType[] GetOptionalCustomModifiers() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic NetObject GetRawConstantValue() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic NetType[] GetRequiredCustomModifiers() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic NetObject GetValue(NetObject obj) throws java.lang.Throwable
obj - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class MemberInfoinstance - the new underlying objectpublic void SetValue(NetObject obj, NetObject value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
obj - the argument of type NetObjectvalue - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic void SetValue(NetObject obj, NetObject value, BindingFlags invokeAttr, Binder binder, CultureInfo culture) throws java.lang.Throwable
obj - the argument of type NetObjectvalue - the argument of type NetObjectinvokeAttr - the argument of type BindingFlagsbinder - the argument of type Binderculture - the argument of type CultureInfojava.lang.Throwable - if the call fails in the bridge or in the CLR