Doctrine


Doctrine\ORM\Query\Lexer
/Doctrine/ORM/Query/Lexer.php at line 35

Class Lexer

Class:Lexer - Superclass: Doctrine
Doctrine
⌊ Lexer

public class Lexer
extends Doctrine

Scans a DQL query for tokens.

Author:
Guilherme Blanco
Janne Vanhala
Roman Borschel
License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Since:
2.0
Version:
$Revision$

Field Summary
final int

T_ALL

final int

T_AND

final int

T_ANY

final int

T_AS

final int

T_ASC

final int

T_AVG

final int

T_BETWEEN

final int

T_BOTH

final int

T_BY

final int

T_CLOSE_CURLY_BRACE

final int

T_CLOSE_PARENTHESIS

final int

T_COMMA

final int

T_COUNT

final int

T_DELETE

final int

T_DESC

final int

T_DISTINCT

final int

T_DIVIDE

final int

T_DOT

final int

T_EMPTY

final int

T_EQUALS

final int

T_ESCAPE

final int

T_EXISTS

final int

T_FALSE

final int

T_FLOAT

final int

T_FROM

final int

T_GREATER_THAN

final int

T_GROUP

final int

T_HAVING

final int

T_IDENTIFIER

final int

T_IN

final int

T_INDEX

final int

T_INNER

final int

T_INPUT_PARAMETER

final int

T_INTEGER

final int

T_IS

final int

T_JOIN

final int

T_LEADING

final int

T_LEFT

final int

T_LIKE

final int

T_LIMIT

final int

T_LOWER_THAN

final int

T_MAX

final int

T_MEMBER

final int

T_MIN

final int

T_MINUS

final int

T_MOD

final int

T_MULTIPLY

final int

T_NEGATE

final int

T_NONE

final int

T_NOT

final int

T_NULL

final int

T_OF

final int

T_OFFSET

final int

T_OPEN_CURLY_BRACE

final int

T_OPEN_PARENTHESIS

final int

T_OR

final int

T_ORDER

final int

T_OUTER

final int

T_PARTIAL

final int

T_PLUS

final int

T_SELECT

final int

T_SET

final int

T_SIZE

final int

T_SOME

final int

T_STRING

final int

T_SUM

final int

T_TRAILING

final int

T_TRUE

final int

T_UPDATE

final int

T_WHERE

final int

T_WITH

Constructor Summary

Lexer(string input)

Creates a new query scanner object.

Method Summary
protected void

getCatchablePatterns()

protected void

getNonCatchablePatterns()

Field Detail

/Doctrine/ORM/Query/Lexer.php at line 44

T_ALL

public final int T_ALL = 101

/Doctrine/ORM/Query/Lexer.php at line 45

T_AND

public final int T_AND = 102

/Doctrine/ORM/Query/Lexer.php at line 46

T_ANY

public final int T_ANY = 103

/Doctrine/ORM/Query/Lexer.php at line 47

T_AS

public final int T_AS = 104

/Doctrine/ORM/Query/Lexer.php at line 48

T_ASC

public final int T_ASC = 105

/Doctrine/ORM/Query/Lexer.php at line 49

T_AVG

public final int T_AVG = 106

/Doctrine/ORM/Query/Lexer.php at line 50

T_BETWEEN

public final int T_BETWEEN = 107

/Doctrine/ORM/Query/Lexer.php at line 51

T_BOTH

public final int T_BOTH = 108

/Doctrine/ORM/Query/Lexer.php at line 52

T_BY

public final int T_BY = 109

/Doctrine/ORM/Query/Lexer.php at line 108

T_CLOSE_CURLY_BRACE

public final int T_CLOSE_CURLY_BRACE = 166

/Doctrine/ORM/Query/Lexer.php at line 53

T_CLOSE_PARENTHESIS

public final int T_CLOSE_PARENTHESIS = 110

/Doctrine/ORM/Query/Lexer.php at line 54

T_COMMA

public final int T_COMMA = 111

/Doctrine/ORM/Query/Lexer.php at line 55

T_COUNT

public final int T_COUNT = 112

/Doctrine/ORM/Query/Lexer.php at line 56

T_DELETE

public final int T_DELETE = 113

/Doctrine/ORM/Query/Lexer.php at line 57

T_DESC

public final int T_DESC = 114

/Doctrine/ORM/Query/Lexer.php at line 58

T_DISTINCT

public final int T_DISTINCT = 115

/Doctrine/ORM/Query/Lexer.php at line 59

T_DIVIDE

public final int T_DIVIDE = 116

/Doctrine/ORM/Query/Lexer.php at line 60

T_DOT

public final int T_DOT = 117

/Doctrine/ORM/Query/Lexer.php at line 61

T_EMPTY

public final int T_EMPTY = 118

/Doctrine/ORM/Query/Lexer.php at line 62

T_EQUALS

public final int T_EQUALS = 119

/Doctrine/ORM/Query/Lexer.php at line 63

T_ESCAPE

public final int T_ESCAPE = 120

/Doctrine/ORM/Query/Lexer.php at line 64

T_EXISTS

public final int T_EXISTS = 121

/Doctrine/ORM/Query/Lexer.php at line 65

T_FALSE

public final int T_FALSE = 122

/Doctrine/ORM/Query/Lexer.php at line 42

T_FLOAT

public final int T_FLOAT = 6

/Doctrine/ORM/Query/Lexer.php at line 66

T_FROM

public final int T_FROM = 123

/Doctrine/ORM/Query/Lexer.php at line 67

T_GREATER_THAN

public final int T_GREATER_THAN = 124

/Doctrine/ORM/Query/Lexer.php at line 68

T_GROUP

public final int T_GROUP = 125

/Doctrine/ORM/Query/Lexer.php at line 69

T_HAVING

public final int T_HAVING = 126

/Doctrine/ORM/Query/Lexer.php at line 38

T_IDENTIFIER

public final int T_IDENTIFIER = 2

/Doctrine/ORM/Query/Lexer.php at line 70

T_IN

public final int T_IN = 127

/Doctrine/ORM/Query/Lexer.php at line 71

T_INDEX

public final int T_INDEX = 128

/Doctrine/ORM/Query/Lexer.php at line 72

T_INNER

public final int T_INNER = 129

/Doctrine/ORM/Query/Lexer.php at line 41

T_INPUT_PARAMETER

public final int T_INPUT_PARAMETER = 5

/Doctrine/ORM/Query/Lexer.php at line 39

T_INTEGER

public final int T_INTEGER = 3

/Doctrine/ORM/Query/Lexer.php at line 73

T_IS

public final int T_IS = 130

/Doctrine/ORM/Query/Lexer.php at line 74

T_JOIN

public final int T_JOIN = 131

/Doctrine/ORM/Query/Lexer.php at line 75

T_LEADING

public final int T_LEADING = 132

/Doctrine/ORM/Query/Lexer.php at line 76

T_LEFT

public final int T_LEFT = 133

/Doctrine/ORM/Query/Lexer.php at line 77

T_LIKE

public final int T_LIKE = 134

/Doctrine/ORM/Query/Lexer.php at line 78

T_LIMIT

public final int T_LIMIT = 135

/Doctrine/ORM/Query/Lexer.php at line 79

T_LOWER_THAN

public final int T_LOWER_THAN = 136

/Doctrine/ORM/Query/Lexer.php at line 80

T_MAX

public final int T_MAX = 137

/Doctrine/ORM/Query/Lexer.php at line 81

T_MEMBER

public final int T_MEMBER = 138

/Doctrine/ORM/Query/Lexer.php at line 82

T_MIN

public final int T_MIN = 139

/Doctrine/ORM/Query/Lexer.php at line 83

T_MINUS

public final int T_MINUS = 140

/Doctrine/ORM/Query/Lexer.php at line 84

T_MOD

public final int T_MOD = 141

/Doctrine/ORM/Query/Lexer.php at line 85

T_MULTIPLY

public final int T_MULTIPLY = 142

/Doctrine/ORM/Query/Lexer.php at line 86

T_NEGATE

public final int T_NEGATE = 143

/Doctrine/ORM/Query/Lexer.php at line 37

T_NONE

public final int T_NONE = 1

/Doctrine/ORM/Query/Lexer.php at line 87

T_NOT

public final int T_NOT = 144

/Doctrine/ORM/Query/Lexer.php at line 88

T_NULL

public final int T_NULL = 145

/Doctrine/ORM/Query/Lexer.php at line 89

T_OF

public final int T_OF = 146

/Doctrine/ORM/Query/Lexer.php at line 90

T_OFFSET

public final int T_OFFSET = 147

/Doctrine/ORM/Query/Lexer.php at line 107

T_OPEN_CURLY_BRACE

public final int T_OPEN_CURLY_BRACE = 165

/Doctrine/ORM/Query/Lexer.php at line 91

T_OPEN_PARENTHESIS

public final int T_OPEN_PARENTHESIS = 149

/Doctrine/ORM/Query/Lexer.php at line 92

T_OR

public final int T_OR = 150

/Doctrine/ORM/Query/Lexer.php at line 93

T_ORDER

public final int T_ORDER = 151

/Doctrine/ORM/Query/Lexer.php at line 94

T_OUTER

public final int T_OUTER = 152

/Doctrine/ORM/Query/Lexer.php at line 106

T_PARTIAL

public final int T_PARTIAL = 164

/Doctrine/ORM/Query/Lexer.php at line 95

T_PLUS

public final int T_PLUS = 153

/Doctrine/ORM/Query/Lexer.php at line 96

T_SELECT

public final int T_SELECT = 154

/Doctrine/ORM/Query/Lexer.php at line 97

T_SET

public final int T_SET = 155

/Doctrine/ORM/Query/Lexer.php at line 98

T_SIZE

public final int T_SIZE = 156

/Doctrine/ORM/Query/Lexer.php at line 99

T_SOME

public final int T_SOME = 157

/Doctrine/ORM/Query/Lexer.php at line 40

T_STRING

public final int T_STRING = 4

/Doctrine/ORM/Query/Lexer.php at line 100

T_SUM

public final int T_SUM = 158

/Doctrine/ORM/Query/Lexer.php at line 101

T_TRAILING

public final int T_TRAILING = 159

/Doctrine/ORM/Query/Lexer.php at line 102

T_TRUE

public final int T_TRUE = 160

/Doctrine/ORM/Query/Lexer.php at line 103

T_UPDATE

public final int T_UPDATE = 161

/Doctrine/ORM/Query/Lexer.php at line 104

T_WHERE

public final int T_WHERE = 162

/Doctrine/ORM/Query/Lexer.php at line 105

T_WITH

public final int T_WITH = 163

Constructor Detail

/Doctrine/ORM/Query/Lexer.php at line 115

Lexer

public Lexer(string input)

Creates a new query scanner object.

Parameters:
input - a query string

Method Detail

/Doctrine/ORM/Query/Lexer.php at line 123

getCatchablePatterns

protected void getCatchablePatterns()

Inheritdoc.

/Doctrine/ORM/Query/Lexer.php at line 136

getNonCatchablePatterns

protected void getNonCatchablePatterns()

Inheritdoc.

Doctrine