__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace PhpMyAdmin\SqlParser;
use Exception;
use Stringable;
/**
* Defines a component that is later extended to parse specialized components or keywords.
*
* There is a small difference between *Component and *Keyword classes: usually, *Component parsers can be reused in
* multiple situations and *Keyword parsers count on the *Component classes to do their job.
*
* A component (of a statement) is a part of a statement that is common to multiple query types.
*/
abstract class Component implements Stringable
{
/**
* Parses the tokens contained in the given list in the context of the given
* parser.
*
* @param Parser $parser the parser that serves as context
* @param TokensList $list the list of tokens that are being parsed
* @param array<string, mixed> $options parameters for parsing
*
* @return mixed
*
* @throws Exception not implemented yet.
*/
public static function parse(
Parser $parser,
TokensList $list,
array $options = []
) {
// This method should be abstract, but it can't be both static and
// abstract.
throw new Exception(Translator::gettext('Not implemented yet.'));
}
/**
* Builds the string representation of a component of this type.
*
* In other words, this function represents the inverse function of
* `static::parse`.
*
* @param mixed $component the component to be built
* @param array<string, mixed> $options parameters for building
*
* @return mixed
*
* @throws Exception not implemented yet.
*/
public static function build($component, array $options = [])
{
// This method should be abstract, but it can't be both static and
// abstract.
throw new Exception(Translator::gettext('Not implemented yet.'));
}
/**
* Builds the string representation of a component of this type.
*
* @see static::build
*
* @return string
*/
public function __toString()
{
return static::build($this);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Components | Folder | 0755 |
|
|
| Contexts | Folder | 0755 |
|
|
| Exceptions | Folder | 0755 |
|
|
| Statements | Folder | 0755 |
|
|
| Tools | Folder | 0755 |
|
|
| Utils | Folder | 0755 |
|
|
| Component.php | File | 2.13 KB | 0644 |
|
| Context.php | File | 26 KB | 0644 |
|
| Core.php | File | 1.01 KB | 0644 |
|
| Lexer.php | File | 35.2 KB | 0644 |
|
| Parser.php | File | 21.95 KB | 0644 |
|
| Statement.php | File | 18.14 KB | 0644 |
|
| Token.php | File | 9.64 KB | 0644 |
|
| TokensList.php | File | 6.17 KB | 0644 |
|
| Translator.php | File | 1.61 KB | 0644 |
|
| UtfString.php | File | 10.3 KB | 0644 |
|
| autoload.php | File | 9.52 KB | 0644 |
|