public class UnicodeRangeValue extends AbstractTerm
There are three types of allowed values:
- single codepoint (e.g. U+416
)
- interval range (e.g. U+400-4ff
)
- wildcard range (e.g. U+4??
)
UnicodeRangeValueParser
Constructor and Description |
---|
UnicodeRangeValue(int line,
int column,
String value)
Constructs a new instance of a
UnicodeRangeValue . |
UnicodeRangeValue(String value)
Constructs a new instance of a
UnicodeRangeValue (used for dynamically created Syntax units). |
UnicodeRangeValue(String value,
boolean lowerCase)
Constructs a new instance of a
UnicodeRangeValue (used for dynamically created Syntax units). |
Modifier and Type | Method and Description |
---|---|
UnicodeRangeValue |
copy()
For implementations: do not copy comments or orphaned comments, instead be sure to call
AbstractSyntax.copiedFrom(Syntax) on the
new copy. |
String |
textualValue()
Gets the unicode-range value.
|
String |
value()
Gets the unicode-range value.
|
UnicodeRangeValue |
value(String value)
Sets the unicode-range value (will be converted to lower-case).
|
void |
write(StyleWriter writer,
StyleAppendable appendable)
Outputs this
Writable 's string representation. |
declaration, isTerm, self
append, destroy, group, group, isDestroyed, isFirst, isLast, isWritable, next, parent, prepend, previous, replaceWith, unlink
annotate, annotateUnlessPresent, annotation, annotations, column, comment, comment, comments, comments, comments, copiedFrom, equals, hasAnnotation, hasAnnotation, hashCode, hasSourcePosition, id, line, orphanedComments, orphanedComments, orphanedComments, propagateBroadcast, shouldBreakBroadcast, status, status, toString, toString, writesOwnComments, writesOwnOrphanedComments
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
append, destroy, group, group, isDestroyed, isFirst, isLast, next, parent, prepend, previous, replaceWith, unlink
annotate, annotateUnlessPresent, annotation, annotations, column, comment, comment, comments, comments, comments, hasAnnotation, hasAnnotation, hasSourcePosition, id, line, orphanedComments, orphanedComments, orphanedComments, toString, writesOwnComments, writesOwnOrphanedComments
isWritable
propagateBroadcast, shouldBreakBroadcast, status, status
public UnicodeRangeValue(int line, int column, String value)
UnicodeRangeValue
.
If dynamically creating a new instance then use UnicodeRangeValue(String)
instead.
line
- The line number.column
- The column number.value
- The unicode range value. Automatically lower-cased.public UnicodeRangeValue(String value)
UnicodeRangeValue
(used for dynamically created Syntax
units).value
- The unicode range value. Automatically lower-cased.public UnicodeRangeValue(String value, boolean lowerCase)
UnicodeRangeValue
(used for dynamically created Syntax
units). Only use this
when you already know the string is lower-cased.value
- The unicode range value. Automatically lower-cased.lowerCase
- Specifies whether the string is already lower-cased.public UnicodeRangeValue value(String value)
value
- The unicode-range value. Automatically lower-cased.public String value()
public String textualValue()
value()
, which is identical to this method.public void write(StyleWriter writer, StyleAppendable appendable) throws IOException
Writable
Writable
's string representation.
Important notes for implementation:
Do not use the StyleWriter
in an attempt to write direct content (Strings, chars, etc...). Use the StyleAppendable
.
The StyleWriter
should be used to make decisions based on writer settings (e.g., compressed vs. verbose output
mode), as well as for writing inner or child Writable
s. Do not call the this method method directly on inner
or child Writable
s! That would bypass any overrides that are set on the StyleWriter
. Use StyleWriter.writeInner(Writable, StyleAppendable)
instead.
writer
- Writer to use for output settings and for writing inner Writable
s.appendable
- Append direct content to this StyleAppendable
.IOException
- If an I/O error occurs.public UnicodeRangeValue copy()
AbstractSyntax
AbstractSyntax.copiedFrom(Syntax)
on the
new copy.copy
in interface PropertyValueMember
copy
in interface Term
copy
in interface Syntax
copy
in class AbstractSyntax
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.