Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2013 Douglas Campos, and individual contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.dynjs.parser.ast;
public class FunctionCallExpression extends AbstractExpression {
    private final Expression memberExpr;
    private final List<ExpressionargExprs;
    public FunctionCallExpression(Expression memberExprList<ExpressionargExprs) {
        this. = memberExpr;
        this. = argExprs;
    }
    
    public Position getPosition() {
        return this..getPosition();
    }
    
        return this.;
    }
    
    public Expression getMemberExpression() {
        return this.;
    }
    
    public int getSizeMetric() {
        int size = this..getSizeMetric();
        
        for ( Expression each :  ) {
            size += each.getSizeMetric();
        }
        
        return size + 5;
    }
    
    public String toString() {
        StringBuffer buf = new StringBuffer();
        buf.append(this.).append("(");
        boolean first = true;
        for (Expression each : this.) {
            if (!first) {
                buf.append(", ");
            }
            buf.append(each.toString());
            first = false;
        }
        buf.append(")");
        return buf.toString();
    }
    
    public String dump(String indent) {
        StringBuffer buffer = new StringBuffer();
        buffer.appendsuper.dumpindent ) );
        buffer.appendthis..dumpindent + "  " ) );
        for ( Expression arg :  ) {
            buffer.appendarg.dumpindent + "  - " ) );
        }
        return buffer.toString();
    }
    @Override
    public void accept(ExecutionContext contextCodeVisitor visitorboolean strict) {
        visitor.visitcontextthisstrict );
        
    }
New to GrepCode? Check out our FAQ X