public class CodeTypeReference extends CodeObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.CodeDom.CodeTypeReference
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.CodeDom, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.CodeDom
|
static java.lang.String |
className
Qualified class name: System.CodeDom.CodeTypeReference
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
CodeTypeReference()
Initializes a new instance by invoking the .NET constructor.
|
CodeTypeReference(CodeTypeParameter typeParameter)
Initializes a new instance by invoking the .NET constructor.
|
CodeTypeReference(CodeTypeReference arrayType,
int rank)
Initializes a new instance by invoking the .NET constructor.
|
CodeTypeReference(NetType type)
Initializes a new instance by invoking the .NET constructor.
|
CodeTypeReference(NetType type,
CodeTypeReferenceOptions codeTypeReferenceOption)
Initializes a new instance by invoking the .NET constructor.
|
CodeTypeReference(java.lang.Object instance)
Internal constructor.
|
CodeTypeReference(java.lang.String typeName)
Initializes a new instance by invoking the .NET constructor.
|
CodeTypeReference(java.lang.String typeName,
CodeTypeReference... typeArguments)
Initializes a new instance by invoking the .NET constructor.
|
CodeTypeReference(java.lang.String typeName,
CodeTypeReferenceOptions codeTypeReferenceOption)
Initializes a new instance by invoking the .NET constructor.
|
CodeTypeReference(java.lang.String baseType,
int rank)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static CodeTypeReference |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into CodeTypeReference, a cast assert is made to check if types are compatible. |
CodeTypeReference |
getArrayElementType()
Gets the value of the .NET property ArrayElementType.
|
int |
getArrayRank()
Gets the value of the .NET property ArrayRank.
|
java.lang.String |
getBaseType()
Gets the value of the .NET property BaseType.
|
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. |
CodeTypeReferenceOptions |
getOptions()
Gets the value of the .NET property Options.
|
CodeTypeReferenceCollection |
getTypeArguments()
Gets the value of the .NET property TypeArguments.
|
void |
setArrayElementType(CodeTypeReference ArrayElementType)
Sets the value of the .NET property ArrayElementType.
|
void |
setArrayRank(int ArrayRank)
Sets the value of the .NET property ArrayRank.
|
void |
setBaseType(java.lang.String BaseType)
Sets the value of the .NET property BaseType.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setOptions(CodeTypeReferenceOptions Options)
Sets the value of the .NET property Options.
|
getUserDatapublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public CodeTypeReference()
throws java.lang.Throwable
java.lang.Throwable - if the .NET constructor failspublic CodeTypeReference(CodeTypeParameter typeParameter) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, RankException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException
typeParameter - the argument of type CodeTypeParameterjava.lang.Throwable - if the .NET constructor failsIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic CodeTypeReference(CodeTypeReference arrayType, int rank) throws java.lang.Throwable
arrayType - the argument of type CodeTypeReferencerank - the argument of type intjava.lang.Throwable - if the .NET constructor failspublic CodeTypeReference(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException
type - the argument of type NetTypejava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic CodeTypeReference(NetType type, CodeTypeReferenceOptions codeTypeReferenceOption) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException
type - the argument of type NetTypecodeTypeReferenceOption - the argument of type CodeTypeReferenceOptionsjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic CodeTypeReference(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 CodeTypeReference(java.lang.String typeName)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
RankException,
ArrayTypeMismatchException,
InvalidCastException,
InvalidOperationException,
NotSupportedException
typeName - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidCastException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic CodeTypeReference(java.lang.String typeName,
CodeTypeReference... typeArguments)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
RankException,
ArrayTypeMismatchException,
InvalidOperationException,
NotSupportedException
typeName - the argument of type java.lang.StringtypeArguments - the argument of type CodeTypeReference...java.lang.Throwable - if the .NET constructor failsIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic CodeTypeReference(java.lang.String typeName,
CodeTypeReferenceOptions codeTypeReferenceOption)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArgumentNullException,
RankException,
ArrayTypeMismatchException,
InvalidCastException
typeName - the argument of type java.lang.StringcodeTypeReferenceOption - the argument of type CodeTypeReferenceOptionsjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidCastException - if the .NET member raises itpublic CodeTypeReference(java.lang.String baseType,
int rank)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
RankException,
ArrayTypeMismatchException,
InvalidOperationException,
NotSupportedException
baseType - the argument of type java.lang.Stringrank - the argument of type intjava.lang.Throwable - if the .NET constructor failsIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic static CodeTypeReference cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into CodeTypeReference, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedCodeTypeReference instancejava.lang.Throwable - in case of error during cast operationpublic CodeTypeReference getArrayElementType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getArrayRank()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getBaseType()
throws java.lang.Throwable,
ArrayTypeMismatchException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
NotSupportedException,
OverflowException,
InvalidOperationException,
IndexOutOfRangeException,
FormatException
java.lang.Throwable - if the call fails in the bridge or in the CLRArrayTypeMismatchException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class CodeObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class CodeObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class CodeObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class CodeObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class CodeObjectpublic CodeTypeReferenceOptions getOptions() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic CodeTypeReferenceCollection getTypeArguments() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setArrayElementType(CodeTypeReference ArrayElementType) throws java.lang.Throwable
ArrayElementType - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setArrayRank(int ArrayRank)
throws java.lang.Throwable
ArrayRank - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setBaseType(java.lang.String BaseType)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
RankException,
ArrayTypeMismatchException,
InvalidCastException,
InvalidOperationException,
NotSupportedException
BaseType - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidCastException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class CodeObjectinstance - the new underlying objectpublic void setOptions(CodeTypeReferenceOptions Options) throws java.lang.Throwable
Options - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLR