Example usage for org.eclipse.jdt.core.dom StringLiteral resolveTypeBinding

List of usage examples for org.eclipse.jdt.core.dom StringLiteral resolveTypeBinding

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom StringLiteral resolveTypeBinding.

Prototype

public final ITypeBinding resolveTypeBinding() 

Source Link

Document

Resolves and returns the binding for the type of this expression.

Usage

From source file:com.google.dart.java2dart.SyntaxTranslator.java

License:Open Source License

@Override
public boolean visit(org.eclipse.jdt.core.dom.StringLiteral node) {
    String tokenValue = node.getEscapedValue();
    tokenValue = StringUtils.replace(tokenValue, "$", "\\$");
    SimpleStringLiteral literal = new SimpleStringLiteral(token(TokenType.STRING, tokenValue),
            node.getLiteralValue());//  w w w.j  ava 2s.  co  m
    context.putNodeTypeBinding(literal, node.resolveTypeBinding());
    return done(literal);
}

From source file:com.google.devtools.j2cpp.types.BindingMapBuilder.java

License:Open Source License

@Override
public boolean visit(StringLiteral node) {
    put(node, node.resolveTypeBinding());
    return true;
}