We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The reverse of #22 (i.e. the serialization process). Not necessary at the moment, but could be useful in the future.
The text was updated successfully, but these errors were encountered:
As discussed, here is an example. Assuming a method named toJson() on the AbstractFunction class, the following snippet:
toJson()
var quantifier = new UniversalQuantifier( "$x", new FindBySelector("#h2"), new ComposedFunction( new GreaterThan(), new ComposedFunction(new Opacity(), "$x"), 0.9 ) ); var json = quantifier.toJson(); console.log(json);
should result in the following serialization (JSON):
{ "name": "UniversalQuantifier", "contents": [ "$x", { "name": "FindBySelector", "contents": [ "#h2" ] }, { "name": "ComposedFunction", "contents": [ { "name": "GreaterThan", "contents": [] }, { "name": "ComposedFunction", "contents": [ { "name": "Opacity", "contents": [] }, "$x" ] }, 0.9 ] } ] }
Sorry, something went wrong.
No branches or pull requests
The reverse of #22 (i.e. the serialization process). Not necessary at the moment, but could be useful in the future.
The text was updated successfully, but these errors were encountered: