Example usage for org.eclipse.jdt.internal.core.util Util getSignature

List of usage examples for org.eclipse.jdt.internal.core.util Util getSignature

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core.util Util getSignature.

Prototype

public static String getSignature(Type type) 

Source Link

Usage

From source file:org.eclipse.objectteams.otdt.ui.tests.dom.converter.AnchoredTypeTest.java

License:Open Source License

public void testSignature() {
    _testObj = _argumentDecl.getType();//ww  w  .ja  va  2 s.c o m
    String sig = Util.getSignature(_testObj);

    assertEquals("Argument type has wrong name ", "QMyRole<@team1>;", sig);
}

From source file:org.eclipse.objectteams.otdt.ui.tests.dom.converter.AnchoredTypeTest.java

License:Open Source License

public void testAllocation() {
    ClassInstanceCreation creation = (ClassInstanceCreation) _localDecl.getInitializer();
    String sig = Util.getSignature(creation.getType());

    assertEquals("Argument type has wrong name ", "QMyRole<@team1>;", sig);
}

From source file:org.eclipse.objectteams.otdt.ui.tests.dom.converter.LiftingTypeTest.java

License:Open Source License

public void testSignature() {
    _testObj = (LiftingType) _variableDecl.getType();
    String sig = Util.getSignature(_testObj);

    assertEquals("Base type has wrong name ", "QMyClass;", sig);
}