com.google.gwt.core.ext.linker
Interface SymbolData

All Superinterfaces:
java.io.Serializable

public interface SymbolData
extends java.io.Serializable

Provides basic information about symbols in the generated JavaScript.

See Also:
CompilationResult.getSymbolMap()

Nested Class Summary
static class SymbolData.ClassIdentComparator
          A Comparator for use when presenting the data to humans.
 
Method Summary
 java.lang.String getClassName()
          Returns the name of the type or enclosing type if the symbol is a method or field.
 java.lang.String getJsniIdent()
          Returns a JSNI-like identifier for the symbol if it a method or field, otherwise null.
 java.lang.String getMemberName()
          Returns the name of the member if the symbol is a method or field.
 int getSourceLine()
          Returns the line number on which the symbol was originally declared or -1 if the line number is unknown.
 java.lang.String getSourceUri()
          Returns a URI string representing the location of the source.
 java.lang.String getSymbolName()
          Returns the JavaScript symbol this data maps to.
 int getTypeId()
          Returns the typeId or 0 if the type does not have a typeId.
 boolean isClass()
          Returns true if the symbol represents a class.
 boolean isField()
          Returns true if the symbol represents a field.
 boolean isMethod()
          Returns true if the symbol represents a method.
 

Method Detail

getClassName

java.lang.String getClassName()
Returns the name of the type or enclosing type if the symbol is a method or field.


getJsniIdent

java.lang.String getJsniIdent()
Returns a JSNI-like identifier for the symbol if it a method or field, otherwise null.


getMemberName

java.lang.String getMemberName()
Returns the name of the member if the symbol is a method or field.


getSourceLine

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


getSourceUri

java.lang.String getSourceUri()
Returns a URI string representing the location of the source. This method will return null if the symbol was derived from a transient or unknown source.


getSymbolName

java.lang.String getSymbolName()
Returns the JavaScript symbol this data maps to.


getTypeId

int getTypeId()
Returns the typeId or 0 if the type does not have a typeId.


isClass

boolean isClass()
Returns true if the symbol represents a class.


isField

boolean isField()
Returns true if the symbol represents a field.


isMethod

boolean isMethod()
Returns true if the symbol represents a method.