(class)
| unique: | Creates a new unique Identifier |
| name: | The identifier name as string. |
accessor public Identifier.name:
String
| chars: | Provides the CharClass containing the characters that can appear in the Curl identifier after the first character. |
public constant Identifier.chars:
CharClass ={CharClass
Identifier.start-chars,
CharClass.digit-chars,
CharClass.wide-digit-chars,
CharClass.extra-letter-chars,
|| "word separator" characters.
"?-" &
"\uFF1F" & || FULLWIDTH QUESTION MARK
"\uFF0D" & || FULLWIDTH HYPHEN-MINUS
"\u30FB" || KATAKANA MIDDLE DOT
}
| start-chars: | Provides the CharClass containing the characters that can appear at the start of a Curl identifier. |
public constant Identifier.start-chars:
CharClass ={CharClass
CharClass.letter-chars,
"_" &
"\uFF3F" || FULLWIDTH LOW LINE
}
(constructor)
Initializes an Identifier
name: is the name of the identifier.
src: refers to the original source file from which the element was obtained.
start: indicates where in the src the element begins. Defaults to the beginning of the source.
end: indicates where in the src the element ends. Defaults to the end of the source.
(factory)
Creates a new unique Identifier
prefix: is an optional prefix to include in the identifier name. This is only useful when debugging.
src: refers to the original source file from which the element was obtained.
start: indicates where in the src the element begins. Defaults to the beginning of the source.
end: indicates where in the src the element ends. Defaults to the end of the source.
Description
The identifier is guaranteed not to collide with any other identifier.
(accessor)
accessor public Identifier.name:
String The identifier name as string.
(class constant)
public constant Identifier.chars:
CharClass ={CharClass
Identifier.start-chars,
CharClass.digit-chars,
CharClass.wide-digit-chars,
CharClass.extra-letter-chars,
|| "word separator" characters.
"?-" &
"\uFF1F" & || FULLWIDTH QUESTION MARK
"\uFF0D" & || FULLWIDTH HYPHEN-MINUS
"\u30FB" || KATAKANA MIDDLE DOT
}
Provides the CharClass containing the characters that can appear in the Curl identifier after the first character.
(class constant)
public constant Identifier.start-chars:
CharClass ={CharClass
CharClass.letter-chars,
"_" &
"\uFF3F" || FULLWIDTH LOW LINE
}
Provides the CharClass containing the characters that can appear at the start of a Curl identifier.
(method)
Convert source into a string.
Description
Converts the source object beginning at the specified index into a string.
The result may not be parsable back to the same object.
(method)
Returns this object if it is an Identifier.
Description
Returns null otherwise.