Example usage for com.google.gwt.core.ext.linker SymbolData getSourceLine

List of usage examples for com.google.gwt.core.ext.linker SymbolData getSourceLine

Introduction

In this page you can find the example usage for com.google.gwt.core.ext.linker SymbolData getSourceLine.

Prototype

int getSourceLine();

Source Link

Document

Returns the line number on which the symbol was originally declared or -1 if the line number is unknown.

Usage

From source file:com.ait.toolkit.node.dev.linker.NodeJsSymbolStoreLinker.java

License:Open Source License

private String buildSymbolJson(SymbolData symbol) {
    return new StringBuilder("{").append("'className' : ").append(toJsValue(symbol.getClassName())).append(',')
            .append("'jsniIdent' : ").append(toJsValue(symbol.getJsniIdent())).append(',')
            .append("'memberName' : ").append(toJsValue(symbol.getMemberName())).append(',')
            .append("'queryId' : ").append(toJsValue(symbol.getQueryId())).append(',').append("'sourceLine' : ")
            .append(toJsValue(symbol.getSourceLine())).append(',').append("'sourceUri' : ")
            .append(toJsValue(symbol.getSourceUri())).append(',').append("'symbolName' : ")
            .append(toJsValue(symbol.getSymbolName())).append(',').append("'isClass' : ")
            .append(toJsValue(symbol.isClass())).append(',').append("'isField' : ")
            .append(toJsValue(symbol.isField())).append(',').append("'isMethod' : ")
            .append(toJsValue(symbol.isMethod())).append("}").toString();
}