Package system.text
Class Rune
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.text.Rune
-
- All Implemented Interfaces:
IJCOBridgeReflected
,IComparable
,IFormattable
public class Rune extends ValueType implements IComparable, IFormattable
The base .NET class managing System.Text.Rune, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Text.Rune
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.Text.Runestatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Rune
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoRune
, a cast assert is made to check if types are compatible.int
CompareTo(Rune other)
boolean
Equals(Rune other)
boolean
getIsAscii()
boolean
getIsBmp()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic double
GetNumericValue(Rune value)
int
getPlane()
static Rune
getReplacementChar()
static Rune
GetRuneAt(java.lang.String input, int index)
static UnicodeCategory
GetUnicodeCategory(Rune value)
int
getUtf16SequenceLength()
int
getUtf8SequenceLength()
int
getValue()
static boolean
IsControl(Rune value)
static boolean
IsDigit(Rune value)
static boolean
IsLetter(Rune value)
static boolean
IsLetterOrDigit(Rune value)
static boolean
IsLower(Rune value)
static boolean
IsNumber(Rune value)
static boolean
IsPunctuation(Rune value)
static boolean
IsSeparator(Rune value)
static boolean
IsSymbol(Rune value)
static boolean
IsUpper(Rune value)
static boolean
IsValid(int value)
static boolean
IsValid(UInt32 value)
static boolean
IsWhiteSpace(Rune value)
void
setJCOInstance(JCObject instance)
static Rune
ToLower(Rune value, CultureInfo culture)
static Rune
ToLowerInvariant(Rune value)
static Rune
ToUpper(Rune value, CultureInfo culture)
static Rune
ToUpperInvariant(Rune value)
static boolean
TryCreate(char highSurrogate, char lowSurrogate, JCORefOut<Rune> result)
static boolean
TryCreate(char ch, JCORefOut<Rune> result)
static boolean
TryCreate(int value, JCORefOut<Rune> result)
static boolean
TryCreate(UInt32 value, JCORefOut<Rune> result)
static boolean
TryGetRuneAt(java.lang.String input, int index, JCORefOut<Rune> value)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IComparable
CompareTo
-
Methods inherited from interface system.IFormattable
ToString
-
-
-
-
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.Text.Rune- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Rune
public Rune(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Rune
public Rune() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Rune
public Rune(char highSurrogate, char lowSurrogate) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
Rune
public Rune(char ch) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
Rune
public Rune(int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
Rune
public Rune(UInt32 value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIComparable
- Specified by:
getJCOAssemblyName
in interfaceIFormattable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classValueType
- 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 interfaceIComparable
- Specified by:
getJCOClassName
in interfaceIFormattable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classValueType
- 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 interfaceIComparable
- Specified by:
getJCOObjectName
in interfaceIFormattable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classValueType
- 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 interfaceIComparable
- Specified by:
getJCOInstance
in interfaceIFormattable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIComparable
- Specified by:
getJCOType
in interfaceIFormattable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Rune cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoRune
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Rune
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Equals
public boolean Equals(Rune other) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsControl
public static boolean IsControl(Rune value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsDigit
public static boolean IsDigit(Rune value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
IsLetter
public static boolean IsLetter(Rune value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
IsLetterOrDigit
public static boolean IsLetterOrDigit(Rune value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
IsLower
public static boolean IsLower(Rune value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
IsNumber
public static boolean IsNumber(Rune value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
IsPunctuation
public static boolean IsPunctuation(Rune value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException
-
IsSeparator
public static boolean IsSeparator(Rune value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException
-
IsSymbol
public static boolean IsSymbol(Rune value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException
-
IsUpper
public static boolean IsUpper(Rune value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
IsValid
public static boolean IsValid(int value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsValid
public static boolean IsValid(UInt32 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
IsWhiteSpace
public static boolean IsWhiteSpace(Rune value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
TryCreate
public static boolean TryCreate(char highSurrogate, char lowSurrogate, JCORefOut<Rune> result) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TryCreate
public static boolean TryCreate(char ch, JCORefOut<Rune> result) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TryCreate
public static boolean TryCreate(int value, JCORefOut<Rune> result) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TryCreate
public static boolean TryCreate(UInt32 value, JCORefOut<Rune> result) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
TryGetRuneAt
public static boolean TryGetRuneAt(java.lang.String input, int index, JCORefOut<Rune> value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
GetNumericValue
public static double GetNumericValue(Rune value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
CompareTo
public int CompareTo(Rune other) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetUnicodeCategory
public static UnicodeCategory GetUnicodeCategory(Rune value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
GetRuneAt
public static Rune GetRuneAt(java.lang.String input, int index) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
ToLower
public static Rune ToLower(Rune value, CultureInfo culture) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
ToLowerInvariant
public static Rune ToLowerInvariant(Rune value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, CultureNotFoundException
-
ToUpper
public static Rune ToUpper(Rune value, CultureInfo culture) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
ToUpperInvariant
public static Rune ToUpperInvariant(Rune value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, CultureNotFoundException
-
getIsAscii
public boolean getIsAscii() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsBmp
public boolean getIsBmp() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPlane
public int getPlane() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUtf16SequenceLength
public int getUtf16SequenceLength() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUtf8SequenceLength
public int getUtf8SequenceLength() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getValue
public int getValue() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getReplacementChar
public static Rune getReplacementChar() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-