Documentation of 'org.matheclipse.core.expression.StringX' Java class
StringX
org.matheclipse.core.expression

Class StringX

    • Method Detail

      • copyValueOf

        public static StringX copyValueOf(char[] data)
        Parameters:
        data -
        Returns:
      • copyValueOf

        public static StringX copyValueOf(char[] data,
                                          int offset,
                                          int count)
        Parameters:
        data -
        offset -
        count -
        Returns:
      • valueOf

        public static StringX valueOf(boolean b)
        Parameters:
        b -
        Returns:
      • valueOf

        public static StringX valueOf(char c)
        Parameters:
        c -
        Returns:
      • valueOf

        public static StringX valueOf(char[] data)
        Parameters:
        data -
        Returns:
      • valueOf

        public static StringX valueOf(char[] data,
                                      int offset,
                                      int count)
        Parameters:
        data -
        offset -
        count -
        Returns:
      • valueOf

        public static StringX valueOf(double d)
        Parameters:
        d -
        Returns:
      • valueOf

        public static StringX valueOf(float f)
        Parameters:
        f -
        Returns:
      • valueOf

        public static StringX valueOf(int i)
        Parameters:
        i -
        Returns:
      • valueOf

        public static StringX valueOf(long l)
        Parameters:
        l -
        Returns:
      • valueOf

        public static StringX valueOf(java.lang.Object obj)
        Parameters:
        obj -
        Returns:
      • valueOf

        public static StringX valueOf(java.lang.StringBuffer stringBuffer)
      • charAt

        public char charAt(int index)
        Parameters:
        index -
        Returns:
      • compareTo

        public int compareTo(IExpr obj)
        Compares this expression with the specified expression for order. Returns a negative integer, zero, or a positive integer as this expression is canonical less than, equal to, or greater than the specified expression.
        Specified by:
        compareTo in interface Element<IExpr>
        Specified by:
        compareTo in interface java.lang.Comparable<IExpr>
        Specified by:
        compareTo in interface IExpr
        Returns:
        0 if this is equal to b, -1 if this is less then b, else +1.
      • compareTo

        public int compareTo(StringX anotherString)
        Parameters:
        anotherString -
        Returns:
      • compareToIgnoreCase

        public int compareToIgnoreCase(StringX str)
        Parameters:
        str -
        Returns:
      • concat

        public java.lang.String concat(StringX str)
        Parameters:
        str -
        Returns:
      • contentEquals

        public boolean contentEquals(java.lang.StringBuffer sb)
        Parameters:
        sb -
        Returns:
      • endsWith

        public boolean endsWith(java.lang.String suffix)
        Parameters:
        suffix -
        Returns:
      • equals

        public boolean equals(java.lang.Object obj)
        Description copied from interface: Element
        Test if this is equal to b.
        Specified by:
        equals in interface Element<IExpr>
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to b, else false.
      • equalsIgnoreCase

        public boolean equalsIgnoreCase(java.lang.String anotherString)
        Parameters:
        anotherString -
        Returns:
      • getBytes

        public byte[] getBytes()
        Returns:
      • getBytes

        public byte[] getBytes(java.lang.String charsetName)
                        throws java.io.UnsupportedEncodingException
        Parameters:
        charsetName -
        Returns:
        Throws:
        java.io.UnsupportedEncodingException
      • getChars

        public void getChars(int srcBegin,
                             int srcEnd,
                             char[] dst,
                             int dstBegin)
        Parameters:
        srcBegin -
        srcEnd -
        dst -
        dstBegin -
      • hashCode

        public int hashCode()
        Description copied from interface: Element
        Hashcode of this Element.
        Specified by:
        hashCode in interface Element<IExpr>
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hashCode.
      • hierarchy

        public int hierarchy()
        Description copied from interface: IExpr
        A unique integer ID for the implementation of this expression
        Specified by:
        hierarchy in interface IExpr
        Returns:
        a unique integer id for the implementation of this expression
      • indexOf

        public int indexOf(int ch)
        Parameters:
        ch -
        Returns:
      • indexOf

        public int indexOf(int ch,
                           int fromIndex)
        Parameters:
        ch -
        fromIndex -
        Returns:
      • indexOf

        public int indexOf(java.lang.String str)
        Parameters:
        str -
        Returns:
      • indexOf

        public int indexOf(java.lang.String str,
                           int fromIndex)
        Parameters:
        str -
        fromIndex -
        Returns:
      • intern

        public java.lang.String intern()
        Returns:
      • internalFormString

        public java.lang.String internalFormString(boolean symbolsAsFactoryMethod,
                                                   int depth)
        Description copied from interface: IExpr
        Return the internal Java form of this expression.
        Specified by:
        internalFormString in interface IExpr
        Overrides:
        internalFormString in class ExprImpl
        Parameters:
        symbolsAsFactoryMethod - if true use the F.symbol() method, otherwise print the symbol name.
        depth - the recursion depth of this call. 0 indicates "recurse without a limit".
      • lastIndexOf

        public int lastIndexOf(int ch)
        Parameters:
        ch -
        Returns:
      • lastIndexOf

        public int lastIndexOf(int ch,
                               int fromIndex)
        Parameters:
        ch -
        fromIndex -
        Returns:
      • lastIndexOf

        public int lastIndexOf(java.lang.String str)
        Parameters:
        str -
        Returns:
      • lastIndexOf

        public int lastIndexOf(java.lang.String str,
                               int fromIndex)
        Parameters:
        str -
        fromIndex -
        Returns:
      • length

        public int length()
      • matches

        public boolean matches(java.lang.String regex)
      • regionMatches

        public boolean regionMatches(boolean ignoreCase,
                                     int toffset,
                                     java.lang.String other,
                                     int ooffset,
                                     int len)
      • regionMatches

        public boolean regionMatches(int toffset,
                                     java.lang.String other,
                                     int ooffset,
                                     int len)
      • replace

        public java.lang.String replace(char oldChar,
                                        char newChar)
      • replaceFirst

        public java.lang.String replaceFirst(java.lang.String regex,
                                             java.lang.String replacement)
      • split

        public java.lang.String[] split(java.lang.String regex)
      • split

        public java.lang.String[] split(java.lang.String regex,
                                        int limit)
      • startsWith

        public boolean startsWith(java.lang.String prefix)
        Parameters:
        prefix -
        Returns:
      • startsWith

        public boolean startsWith(java.lang.String prefix,
                                  int toffset)
        Parameters:
        prefix -
        toffset -
        Returns:
      • subSequence

        public java.lang.CharSequence subSequence(int start,
                                                  int end)
        Parameters:
        start -
        end -
        Returns:
      • substring

        public java.lang.String substring(int beginIndex)
        Parameters:
        beginIndex -
        Returns:
      • substring

        public java.lang.String substring(int beginIndex,
                                          int endIndex)
        Parameters:
        beginIndex -
        endIndex -
        Returns:
      • toCharArray

        public char[] toCharArray()
        Returns:
      • toLowerCase

        public java.lang.String toLowerCase()
        Returns:
      • toLowerCase

        public java.lang.String toLowerCase(java.util.Locale locale)
        Parameters:
        locale -
        Returns:
      • toUpperCase

        public java.lang.String toUpperCase()
        Returns:
      • toUpperCase

        public java.lang.String toUpperCase(java.util.Locale locale)
        Parameters:
        locale -
        Returns:
      • trim

        public java.lang.String trim()
        Returns:
      • head

        public ISymbol head()
        Description copied from interface: IExpr
        If this object is an instance of IAST get the first element (offset 0) of the IAST list (i.e. get(0) ).
        Specified by:
        head in interface IExpr
        Specified by:
        head in class ExprImpl
        Returns:
        the head of the expression, which must not be null.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • accept

        public <T> T accept(IVisitor<T> visitor)
        Accept a visitor with return type T
        Specified by:
        accept in interface IExpr
      • accept

        public boolean accept(IVisitorBoolean visitor)
        Accept a visitor with return type boolean
        Specified by:
        accept in interface IExpr
      • accept

        public int accept(IVisitorInt visitor)
        Accept a visitor with return type int
        Specified by:
        accept in interface IExpr
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.