nitc :: AAugmentedLiteral :: _content
Content of the entity, without prefix nor suffixnitc :: AAugmentedLiteral :: _prefix
Prefix for the entity, "" if no prefix is foundnitc :: AAugmentedLiteral :: _suffix
Suffix for the entity, "" if no prefix is foundnitc :: AAugmentedLiteral :: content
Content of the entity, without prefix nor suffixnitc :: AAugmentedLiteral :: content=
Content of the entity, without prefix nor suffixnitc :: AAugmentedLiteral :: defaultinit
nitc :: AAugmentedLiteral :: is_valid_augmentation
Is the combination of prefixes and suffixes inself
valid ?
nitc :: AAugmentedLiteral :: prefix
Prefix for the entity, "" if no prefix is foundnitc :: AAugmentedLiteral :: prefix=
Prefix for the entity, "" if no prefix is foundnitc :: AAugmentedLiteral :: suffix
Suffix for the entity, "" if no prefix is foundnitc :: AAugmentedLiteral :: suffix=
Suffix for the entity, "" if no prefix is foundnitc $ AAugmentedLiteral :: SELF
Type of this instance, automatically specialized in every classnitc :: AAugmentedLiteral :: _content
Content of the entity, without prefix nor suffixnitc :: AAugmentedLiteral :: _prefix
Prefix for the entity, "" if no prefix is foundnitc :: AAugmentedLiteral :: _suffix
Suffix for the entity, "" if no prefix is foundcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: AAugmentedLiteral :: content
Content of the entity, without prefix nor suffixnitc :: AAugmentedLiteral :: content=
Content of the entity, without prefix nor suffixnitc :: AAugmentedLiteral :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
nitc :: AAugmentedLiteral :: is_valid_augmentation
Is the combination of prefixes and suffixes inself
valid ?
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: AAugmentedLiteral :: prefix
Prefix for the entity, "" if no prefix is foundnitc :: AAugmentedLiteral :: prefix=
Prefix for the entity, "" if no prefix is foundnitc :: AAugmentedLiteral :: suffix
Suffix for the entity, "" if no prefix is foundnitc :: AAugmentedLiteral :: suffix=
Suffix for the entity, "" if no prefix is foundnitc :: AugmentedStringFormExpr
Any kind of string form with augmentations from prefixes or suffixes
# Any kind of literal which supports a prefix or a suffix
class AAugmentedLiteral
# Returns the text of the token
private fun text: String is abstract
# Is the combination of prefixes and suffixes in `self` valid ?
fun is_valid_augmentation: Bool is abstract
private fun delimiter_start: Char is abstract
private fun delimiter_end: Char is abstract
# Prefix for the entity, "" if no prefix is found
protected var prefix: String is lazy do return text.substring(0, text.index_of(delimiter_start))
# Suffix for the entity, "" if no prefix is found
protected var suffix: String is lazy do return text.substring_from(text.last_index_of(delimiter_end) + 1)
# Content of the entity, without prefix nor suffix
protected var content: String is lazy do
var npr = text.substring_from(prefix.length)
return npr.substring(0, npr.length - suffix.length)
end
end
src/literal.nit:98,1--121,3