Examples of SynchronizedMethodInvocation


Examples of org.openquark.cal.internal.javamodel.JavaStatement.SynchronizedMethodInvocation

    /* (non-Javadoc)
     * @see org.openquark.cal.internal.runtime.lecc.JavaModelVisitor#visitSynchronizedMethodInvocationStatement(org.openquark.cal.internal.runtime.lecc.JavaStatement.SynchronizedMethodInvocation, java.lang.Object)
     */
    public JavaStatement visitSynchronizedMethodInvocationStatement(
            SynchronizedMethodInvocation synchronizedInvocation, T arg) {
        return new SynchronizedMethodInvocation (
                (MethodInvocation)synchronizedInvocation.getMethodInvocation().accept(this, arg),
                (JavaField)synchronizedInvocation.getSynchronizingObject().accept(this, arg));
    }
View Full Code Here

Examples of org.openquark.cal.internal.javamodel.JavaStatement.SynchronizedMethodInvocation

            LabelledContinue lc = (LabelledContinue)statement;
            emitLine (sb, indent, "continue " + lc.getLabel() + ";");
        } else
        if (statement instanceof SynchronizedMethodInvocation){
            // A method invocation wrapped in a synchronization block.
            SynchronizedMethodInvocation sof = (SynchronizedMethodInvocation)statement;

            // Start the synchronized block.
            emitLine (sb, indent, "synchronized (" + getSource(sof.getSynchronizingObject(), indent, 14, context) + ") {");

            // Add the method invocation.
            sb.append (getSource(new ExpressionStatement(sof.getMethodInvocation()), context, indent + 1));

            // Finish the block.
            emitLine (sb, indent, "}");
        } else
        if (statement instanceof AssertStatement) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.