Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     if (self::$reserved_java === null) {
         self::$reserved_java = array('abstract' => true, 'continue' => true, 'for' => true, 'new' => true, 'switch' => true, 'assert' => true, 'default' => true, 'goto' => true, 'package' => true, 'synchronized' => true, 'boolean' => true, 'do' => true, 'if' => true, 'private' => true, 'this' => true, 'break' => true, 'double' => true, 'implements' => true, 'protected' => true, 'throw' => true, 'byte' => true, 'else' => true, 'import' => true, 'public' => true, 'throws' => true, 'case' => true, 'enum' => true, 'instanceof' => true, 'return' => true, 'transient' => true, 'catch' => true, 'extends' => true, 'int' => true, 'short' => true, 'try' => true, 'char' => true, 'final' => true, 'interface' => true, 'static' => true, 'void' => true, 'class' => true, 'finally' => true, 'long' => true, 'strictfp' => true, 'volatile' => true, 'const' => true, 'float' => true, 'native' => true, 'super' => true, 'while' => true);
         $this->reserved = self::$reserved_java;
     }
 }
Exemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     $added = array('and' => true, 'and_eq' => true, 'bitand' => true, 'bitor' => true, 'bool' => true, 'catch' => true, 'class' => true, 'compl' => true, 'const_cast' => true, 'delete' => true, 'dynamic_cast' => true, 'explicit' => true, 'export' => true, 'false' => true, 'friend' => true, 'inline' => true, 'namespace' => true, 'new' => true, 'not' => true, 'not_eq' => true, 'operator' => true, 'or' => true, 'or_eq' => true, 'private' => true, 'protected' => true, 'public' => true, 'reinterpret_cast' => true, 'static_cast' => true, 'template' => true, 'this' => true, 'throw' => true, 'true' => true, 'try' => true, 'typeid' => true, 'typename' => true, 'using' => true, 'virtual' => true, 'xor' => true, 'xor_eq' => true);
     $this->reserved = array_merge($this->reserved, $added);
 }