Example usage for org.eclipse.jdt.internal.compiler.lookup SignatureWrapper SignatureWrapper

List of usage examples for org.eclipse.jdt.internal.compiler.lookup SignatureWrapper SignatureWrapper

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.lookup SignatureWrapper SignatureWrapper.

Prototype

public SignatureWrapper(char[] signature) 

Source Link

Usage

From source file:org.eclipse.ajdt.core.parserbridge.ITDInserter.java

License:Open Source License

/**
 * Ask the oracle for the type binding with the given name
 * @param child/*from  ww w .  j a v a  2s .  c o  m*/
 * @return
 */
protected TypeBinding getReturnTypeBinding(char[] typeName, TypeBinding ititBinding) {
    TypeBinding typeBinding = env.getTypeFromTypeSignature(new SignatureWrapper(typeName),
            new TypeVariableBinding[0], (ReferenceBinding) ititBinding, new char[0][][],
            TypeAnnotationWalker.EMPTY_ANNOTATION_WALKER);
    typeBinding = BinaryTypeBinding.resolveType(typeBinding, env, false);
    return typeBinding;
}

From source file:org.eclipse.objectteams.otdt.internal.core.compiler.bytecode.ConstantPoolObjectReader.java

License:Open Source License

public TypeBinding getSignatureBinding(int ref, boolean useGenerics) {
    char[] typeName = getUtf8(ref);
    if (useGenerics)
        return this._environment.getTypeFromTypeSignature(new SignatureWrapper(typeName),
                Binding.NO_TYPE_VARIABLES, this._srcModel.getBinding(), null,
                TypeAnnotationWalker.EMPTY_ANNOTATION_WALKER); // no missing type info available
    else/*from   www.  j  av  a2  s  . c o  m*/
        return this._environment.getTypeFromSignature(typeName, 0, typeName.length - 1, false/*GENERIC*/,
                this._srcModel.getBinding(), null, TypeAnnotationWalker.EMPTY_ANNOTATION_WALKER); // no missing type info available
}