48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
/*!
|
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
*/
|
|
import { Lexer } from "../Lexer";
|
|
import { LexerAction } from "./LexerAction";
|
|
import { LexerActionType } from "./LexerActionType";
|
|
/**
|
|
* Implements the `skip` lexer action by calling {@link Lexer#skip}.
|
|
*
|
|
* The `skip` command does not have any parameters, so this action is
|
|
* implemented as a singleton instance exposed by {@link #INSTANCE}.
|
|
*
|
|
* @author Sam Harwell
|
|
* @since 4.2
|
|
*/
|
|
export declare class LexerSkipAction implements LexerAction {
|
|
/**
|
|
* Constructs the singleton instance of the lexer `skip` command.
|
|
*/
|
|
constructor();
|
|
/**
|
|
* {@inheritDoc}
|
|
* @returns This method returns {@link LexerActionType#SKIP}.
|
|
*/
|
|
get actionType(): LexerActionType;
|
|
/**
|
|
* {@inheritDoc}
|
|
* @returns This method returns `false`.
|
|
*/
|
|
get isPositionDependent(): boolean;
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* This action is implemented by calling {@link Lexer#skip}.
|
|
*/
|
|
execute(lexer: Lexer): void;
|
|
hashCode(): number;
|
|
equals(obj: any): boolean;
|
|
toString(): string;
|
|
}
|
|
export declare namespace LexerSkipAction {
|
|
/**
|
|
* Provides a singleton instance of this parameterless lexer action.
|
|
*/
|
|
const INSTANCE: LexerSkipAction;
|
|
}
|