Class RBBIRuleScanner.RBBIXSymbolTable

java.lang.Object
com.ibm.icu.text.UnicodeSet.XSymbolTable
com.ibm.icu.text.RBBIRuleScanner.RBBIXSymbolTable
All Implemented Interfaces:
SymbolTable
Enclosing class:
RBBIRuleScanner

private static class RBBIRuleScanner.RBBIXSymbolTable extends UnicodeSet.XSymbolTable
An XSymbolTable that exposes the variables of an underlying RBBISymbolTable and the properties of an underlying XSymbolTable.
  • Field Details

  • Constructor Details

  • Method Details

    • lookup

      public char[] lookup(String s)
      Description copied from class: UnicodeSet.XSymbolTable
      Supplies default implementation for SymbolTable (no action).
      Specified by:
      lookup in interface SymbolTable
      Overrides:
      lookup in class UnicodeSet.XSymbolTable
      Parameters:
      s - the symbolic name to lookup
      Returns:
      a char array containing the name's value, or null if there is no mapping for s.
    • lookupSet

      public UnicodeSet lookupSet(String s)
      Description copied from interface: SymbolTable
      Returns a pre-parsed set associated with the variable with the given name, or null if there is no such set (as is the case for an undefined or string-valued variable).
    • parseReference

      public String parseReference(String text, ParsePosition pos, int limit)
      Description copied from class: UnicodeSet.XSymbolTable
      Supplies default implementation for SymbolTable (no action).
      Specified by:
      parseReference in interface SymbolTable
      Overrides:
      parseReference in class UnicodeSet.XSymbolTable
      Parameters:
      text - the text to parse for the name
      pos - on entry, the index of the first character to parse. This is the character following the SYMBOL_REF character. On exit, the index after the last parsed character. If the parse failed, pos is unchanged on exit.
      limit - the index after the last character to be parsed.
      Returns:
      the parsed name, or null if there is no valid symbolic name at the given position.
    • applyPropertyAlias

      public boolean applyPropertyAlias(String propertyName, String propertyValue, UnicodeSet result)
      Description copied from class: UnicodeSet.XSymbolTable
      Override the interpretation of the sequence [:propertyName=propertyValue:] (and its negated and Perl-style variant). The propertyName and propertyValue may be existing Unicode aliases, or may not be.

      This routine will be called whenever the parsing of a UnicodeSet pattern finds such a propertyName+propertyValue combination.

      Overrides:
      applyPropertyAlias in class UnicodeSet.XSymbolTable
      Parameters:
      propertyName - the name of the property
      propertyValue - the name of the property value
      result - UnicodeSet value to change a set to which the characters having the propertyName+propertyValue are to be added.
      Returns:
      returns true if the propertyName+propertyValue combination is to be overridden, and the characters with that property have been added to the UnicodeSet, and returns false if the propertyName+propertyValue combination is not recognized (in which case result is unaltered).