Interface ITerminalConsumer
-
- All Known Implementing Classes:
AbstractRuleAwareTerminalConsumer,EnumLiteralConsumer,KeywordConsumer,TerminalConsumer,TerminalsANY_OTHERConsumer,TerminalsIDConsumer,TerminalsINTConsumer,TerminalsML_COMMENTConsumer,TerminalsSL_COMMENTConsumer,TerminalsSTRINGConsumer,TerminalsWSConsumer
public interface ITerminalConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intconsume()Scan the configured input source for a consumable terminal at the current offset.intconsume(java.lang.String feature, boolean isMany, boolean isBoolean, AbstractElement element, ISequenceMatcher notMatching, boolean optional)Scan the configured input source for a consumable terminal at the current offset.intconsume(ISequenceMatcher notMatching)Scan the configured input source for a consumable terminal at the current offset.booleanisHidden()voidsetHidden(boolean hidden)
-
-
-
Method Detail
-
consume
int consume(java.lang.String feature, boolean isMany, boolean isBoolean, AbstractElement element, ISequenceMatcher notMatching, boolean optional)Scan the configured input source for a consumable terminal at the current offset. If it can be found, create a configured parsed token and increase the offset of the input.
-
consume
int consume()
Scan the configured input source for a consumable terminal at the current offset. If it can be found, do nothing but increase the offset of the input.
-
consume
int consume(ISequenceMatcher notMatching)
Scan the configured input source for a consumable terminal at the current offset. If it can be found, do nothing but increase the offset of the input.
-
setHidden
void setHidden(boolean hidden)
-
isHidden
boolean isHidden()
-
-