alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (lhsExpr.js.EXPECTED)

This example Java source code file (lhsExpr.js.EXPECTED) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

callexpression, expressionstatement, identifier, literal, memberexpression, newexpression, program, type

The lhsExpr.js.EXPECTED Java example source code

{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "MemberExpression",
                "object": {
                    "type": "Identifier",
                    "name": "a"
                },
                "property": {
                    "type": "Literal",
                    "value": 3
                },
                "computed": true
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "MemberExpression",
                "object": {
                    "type": "Identifier",
                    "name": "a"
                },
                "property": {
                    "type": "Identifier",
                    "name": "b"
                },
                "computed": true
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "MemberExpression",
                "object": {
                    "type": "Identifier",
                    "name": "a"
                },
                "property": {
                    "type": "Literal",
                    "value": "foo"
                },
                "computed": true
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "MemberExpression",
                "object": {
                    "type": "Identifier",
                    "name": "obj"
                },
                "property": {
                    "type": "Identifier",
                    "name": "foo"
                },
                "computed": false
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "MemberExpression",
                "object": {
                    "type": "MemberExpression",
                    "object": {
                        "type": "Identifier",
                        "name": "obj"
                    },
                    "property": {
                        "type": "Identifier",
                        "name": "foo"
                    },
                    "computed": false
                },
                "property": {
                    "type": "Identifier",
                    "name": "bar"
                },
                "computed": false
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "NewExpression",
                "callee": {
                    "type": "Identifier",
                    "name": "Type"
                },
                "arguments": []
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "NewExpression",
                "callee": {
                    "type": "Identifier",
                    "name": "Type"
                },
                "arguments": []
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "NewExpression",
                "callee": {
                    "type": "Identifier",
                    "name": "Type"
                },
                "arguments": [
                    {
                        "type": "Identifier",
                        "name": "a"
                    },
                    {
                        "type": "Literal",
                        "value": "hello"
                    }
                ]
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "NewExpression",
                "callee": {
                    "type": "MemberExpression",
                    "object": {
                        "type": "Identifier",
                        "name": "obj"
                    },
                    "property": {
                        "type": "Identifier",
                        "name": "Type"
                    },
                    "computed": false
                },
                "arguments": []
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "NewExpression",
                "callee": {
                    "type": "MemberExpression",
                    "object": {
                        "type": "Identifier",
                        "name": "obj"
                    },
                    "property": {
                        "type": "Identifier",
                        "name": "Type"
                    },
                    "computed": false
                },
                "arguments": []
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "NewExpression",
                "callee": {
                    "type": "MemberExpression",
                    "object": {
                        "type": "Identifier",
                        "name": "obj"
                    },
                    "property": {
                        "type": "Identifier",
                        "name": "Type"
                    },
                    "computed": false
                },
                "arguments": [
                    {
                        "type": "Identifier",
                        "name": "a"
                    },
                    {
                        "type": "Literal",
                        "value": "hello"
                    }
                ]
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "CallExpression",
                "callee": {
                    "type": "Identifier",
                    "name": "foo"
                },
                "arguments": []
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "CallExpression",
                "callee": {
                    "type": "MemberExpression",
                    "object": {
                        "type": "Identifier",
                        "name": "obj"
                    },
                    "property": {
                        "type": "Identifier",
                        "name": "foo"
                    },
                    "computed": false
                },
                "arguments": []
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "CallExpression",
                "callee": {
                    "type": "Identifier",
                    "name": "foo"
                },
                "arguments": [
                    {
                        "type": "Identifier",
                        "name": "a"
                    },
                    {
                        "type": "Identifier",
                        "name": "b"
                    }
                ]
            }
        }
    ]
}
{
    "type": "Program",
    "body": [
        {
            "type": "ExpressionStatement",
            "expression": {
                "type": "CallExpression",
                "callee": {
                    "type": "MemberExpression",
                    "object": {
                        "type": "Identifier",
                        "name": "obj"
                    },
                    "property": {
                        "type": "Identifier",
                        "name": "foo"
                    },
                    "computed": false
                },
                "arguments": [
                    {
                        "type": "Identifier",
                        "name": "a"
                    },
                    {
                        "type": "Identifier",
                        "name": "b"
                    }
                ]
            }
        }
    ]
}

Other Java examples (source code examples)

Here is a short list of links related to this Java lhsExpr.js.EXPECTED source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.