| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <?php | ||
|
|
||
| class com_wiris_util_json_parser_ExtractedString { | ||
| public function __construct($sourceEnd, $str) { | ||
| if(!php_Boot::$skip_constructor) { | ||
| $this->sourceEnd = $sourceEnd; | ||
| $this->str = $str; | ||
| }} | ||
| public $str; | ||
| public $sourceEnd; | ||
| public function __call($m, $a) { | ||
| if(isset($this->$m) && is_callable($this->$m)) | ||
| return call_user_func_array($this->$m, $a); | ||
| else if(isset($this->»dynamics[$m]) && is_callable($this->»dynamics[$m])) | ||
| return call_user_func_array($this->»dynamics[$m], $a); | ||
| else if('toString' == $m) | ||
| return $this->__toString(); | ||
| else | ||
| throw new HException('Unable to call «'.$m.'»'); | ||
| } | ||
| function __toString() { return 'com.wiris.util.json.parser.ExtractedString'; } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <?php | ||
|
|
||
| class com_wiris_util_json_parser_JType extends Enum { | ||
| public static $TYPE_ARRAY; | ||
| public static $TYPE_CONSTANT; | ||
| public static $TYPE_HEURISTIC; | ||
| public static $TYPE_NAME; | ||
| public static $TYPE_NUMBER; | ||
| public static $TYPE_OBJECT; | ||
| public static $TYPE_STRING; | ||
| public static $__constructors = array(0 => 'TYPE_ARRAY', 6 => 'TYPE_CONSTANT', 2 => 'TYPE_HEURISTIC', 3 => 'TYPE_NAME', 5 => 'TYPE_NUMBER', 1 => 'TYPE_OBJECT', 4 => 'TYPE_STRING'); | ||
| } | ||
| com_wiris_util_json_parser_JType::$TYPE_ARRAY = new com_wiris_util_json_parser_JType("TYPE_ARRAY", 0); | ||
| com_wiris_util_json_parser_JType::$TYPE_CONSTANT = new com_wiris_util_json_parser_JType("TYPE_CONSTANT", 6); | ||
| com_wiris_util_json_parser_JType::$TYPE_HEURISTIC = new com_wiris_util_json_parser_JType("TYPE_HEURISTIC", 2); | ||
| com_wiris_util_json_parser_JType::$TYPE_NAME = new com_wiris_util_json_parser_JType("TYPE_NAME", 3); | ||
| com_wiris_util_json_parser_JType::$TYPE_NUMBER = new com_wiris_util_json_parser_JType("TYPE_NUMBER", 5); | ||
| com_wiris_util_json_parser_JType::$TYPE_OBJECT = new com_wiris_util_json_parser_JType("TYPE_OBJECT", 1); | ||
| com_wiris_util_json_parser_JType::$TYPE_STRING = new com_wiris_util_json_parser_JType("TYPE_STRING", 4); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <?php | ||
|
|
||
| class com_wiris_util_json_parser_State { | ||
| public function __construct($propertyName, $container, $type) { | ||
| if(!php_Boot::$skip_constructor) { | ||
| $this->propertyName = $propertyName; | ||
| $this->container = $container; | ||
| $this->type = $type; | ||
| }} | ||
| public $type; | ||
| public $container; | ||
| public $propertyName; | ||
| public function __call($m, $a) { | ||
| if(isset($this->$m) && is_callable($this->$m)) | ||
| return call_user_func_array($this->$m, $a); | ||
| else if(isset($this->»dynamics[$m]) && is_callable($this->»dynamics[$m])) | ||
| return call_user_func_array($this->»dynamics[$m], $a); | ||
| else if('toString' == $m) | ||
| return $this->__toString(); | ||
| else | ||
| throw new HException('Unable to call «'.$m.'»'); | ||
| } | ||
| function __toString() { return 'com.wiris.util.json.parser.State'; } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| php |