-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathStreamTokenizer.php
More file actions
258 lines (234 loc) Β· 7.86 KB
/
StreamTokenizer.php
File metadata and controls
258 lines (234 loc) Β· 7.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<?php
declare(strict_types=1);
namespace PHPJava\Packages\java\io;
use PHPJava\Exceptions\NotImplementedException;
use PHPJava\Packages\java\lang\Object_;
/**
* The `StreamTokenizer` class was auto generated.
*
* @parent \PHPJava\Packages\java\lang\Object_
*/
class StreamTokenizer extends Object_
{
/**
* If the current token is a number, this field contains the value of that number.
*
* @var mixed $nval
*/
public $nval;
/**
* If the current token is a word token, this field contains a string giving the characters of the word token.
*
* @var mixed $sval
*/
public $sval;
/**
* A constant indicating that the end of the stream has been read.
*
* @var mixed $TT_EOF
*/
public static $TT_EOF = null;
/**
* A constant indicating that the end of the line has been read.
*
* @var mixed $TT_EOL
*/
public static $TT_EOL = null;
/**
* A constant indicating that a number token has been read.
*
* @var mixed $TT_NUMBER
*/
public static $TT_NUMBER = null;
/**
* A constant indicating that a word token has been read.
*
* @var mixed $TT_WORD
*/
public static $TT_WORD = null;
/**
* After a call to the nextToken method, this field contains the type of the token just read.
*
* @var mixed $ttype
*/
public $ttype;
/**
* Specified that the character argument starts a single-line comment.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#commentChar
* @param null|mixed $a
* @throws NotImplementedException
*/
public function commentChar($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Determines whether or not ends of line are treated as tokens.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#eolIsSignificant
* @param null|mixed $a
* @throws NotImplementedException
*/
public function eolIsSignificant($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Return the current line number.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#lineno
* @param null|mixed $a
* @throws NotImplementedException
*/
public function lineno($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Determines whether or not word token are automatically lowercased.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#lowerCaseMode
* @param null|mixed $a
* @throws NotImplementedException
*/
public function lowerCaseMode($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Parses the next token from the input stream of this tokenizer.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#nextToken
* @param null|mixed $a
* @throws NotImplementedException
*/
public function nextToken($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Specifies that the character argument is "ordinary" in this tokenizer.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#ordinaryChar
* @param null|mixed $a
* @throws NotImplementedException
*/
public function ordinaryChar($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Specifies that all characters c in the range low <= c <= high are "ordinary" in this tokenizer.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#ordinaryChars
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public function ordinaryChars($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Specifies that numbers should be parsed by this tokenizer.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#parseNumbers
* @param null|mixed $a
* @throws NotImplementedException
*/
public function parseNumbers($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Causes the next call to the nextToken method of this tokenizer to return the current value in the ttype field, and not to modify the value in the nval or sval field.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#pushBack
* @param null|mixed $a
* @throws NotImplementedException
*/
public function pushBack($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Specifies that matching pairs of this character delimit string constants in this tokenizer.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#quoteChar
* @param null|mixed $a
* @throws NotImplementedException
*/
public function quoteChar($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Resets this tokenizer's syntax table so that all characters are "ordinary.".
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#resetSyntax
* @param null|mixed $a
* @throws NotImplementedException
*/
public function resetSyntax($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Determines whether or not the tokenizer recognizes C++-style comments.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#slashSlashComments
* @param null|mixed $a
* @throws NotImplementedException
*/
public function slashSlashComments($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Determines whether or not the tokenizer recognizes C-style comments.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#slashStarComments
* @param null|mixed $a
* @throws NotImplementedException
*/
public function slashStarComments($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the string representation of the current stream token and the line number it occurs on.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#toString
* @param null|mixed $a
* @throws NotImplementedException
*/
public function toString($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Specifies that all characters c in the range low <= c <= high are white space characters.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#whitespaceChars
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public function whitespaceChars($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Specifies that all characters c in the range low <= c <= high are word constituents.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#wordChars
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public function wordChars($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
}