Examples of returnType()


Examples of soot.SootMethodRef.returnType()

                        // the ref to point to the new super class
                        invoke.setMethodRef(Scene.v().makeMethodRef(
                                superClass.getSuperclass(),
                                invokeMethodRef.name(),
                                invokeMethodRef.parameterTypes(),
                                invokeMethodRef.returnType(),
                                invokeMethodRef.isStatic()));
                    }
                }
            }
        }
View Full Code Here

Examples of st.gravel.support.compiler.ast.BinaryMethodNode.returnType()

    final BinaryMethodNode _node;
    _node = ((BinaryMethodNode) Parser.factory.parseMethod_("+ arg {String} {^String}^bar"));
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), BinaryMethodNode.factory));
    assertEquals((String) "+ arg {String} {^String}\n\t^bar", (String) _node.prettySourceString());
    assertTrue(_node.argument().type() != null);
    assertTrue(_node.returnType() != null);
  }

  @Test
  public void testParseMethodWithArgType() {
    final BinaryMethodNode _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.BinaryMethodNode.returnType()

    final BinaryMethodNode _node;
    _node = ((BinaryMethodNode) Parser.factory.parseMethod_("+ arg {String} ^bar"));
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), BinaryMethodNode.factory));
    assertEquals((String) "+ arg {String}\n\t^bar", (String) _node.prettySourceString());
    assertTrue(_node.argument().type() != null);
    assertTrue(_node.returnType() == null);
  }

  @Test
  public void testParseMethodWithReturnType() {
    final BinaryMethodNode _node;
View Full Code Here

Examples of st.gravel.support.compiler.ast.BlockNode.returnType()

    if (!_falseExpr.isBlockNode()) {
      return null;
    }
    _trueBlockNode = ((BlockNode) _trueExpr);
    _falseBlockNode = ((BlockNode) _falseExpr);
    return IfTrueIfFalseNode.factory.test_trueSequence_falseSequence_returnType_(((Expression) this.visit_(_receiver)), ((SequenceNode) this.visit_(_trueBlockNode.body())), ((SequenceNode) this.visit_(_falseBlockNode.body())), TypeOrNode.factory.left_right_(_trueBlockNode.returnType(), _falseBlockNode.returnType()));
  }

  public BooleanOrNode produce_or_(final Node _receiver, final Expression _testExpr) {
    final BlockNode _testBlockNode;
    if (!_testExpr.isBlockNode()) {
View Full Code Here

Examples of st.gravel.support.compiler.ast.BlockTypeNode.returnType()

  }

  public TypeNode[] parseTypeExpressionListAndClose() {
    final BlockTypeNode _block;
    _block = this.parseTypeExpressionBlockAndClose();
    st.gravel.support.jvm.ObjectExtensions.assert_(this, _block.returnType() == null);
    return _block.arguments();
  }

  public TypeNode parseTypeNode() {
    TypeNode _exp;
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.