Package com.google.gwt.core.ext.linker
Interface SymbolData
-
- All Superinterfaces:
java.io.Serializable
public interface SymbolData extends java.io.SerializableProvides basic information about symbols in the generated JavaScript.- See Also:
CompilationResult.getSymbolMap()
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSymbolData.ClassIdentComparatorA Comparator for use when presenting the data to humans.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetClassName()Returns the name of the type or enclosing type if the symbol is a method or field.intgetFragmentNumber()Returns the fragment number in which the symbol is declared (for a method).java.lang.StringgetJsniIdent()Returns a JSNI-like identifier for the symbol if it a method or field, otherwisenull.java.lang.StringgetMemberName()Returns the name of the member if the symbol is a method or field.java.lang.StringgetRuntimeTypeId()Returns the runtime typeId.intgetSourceLine()Returns the line number on which the symbol was originally declared or-1if the line number is unknown.java.lang.StringgetSourceUri()Returns a URI string representing the location of the source.java.lang.StringgetSymbolName()Returns the JavaScript symbol this data maps to.booleanisClass()Returnstrueif the symbol represents a class.booleanisField()Returnstrueif the symbol represents a field.booleanisMethod()Returnstrueif 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.
-
getFragmentNumber
int getFragmentNumber()
Returns the fragment number in which the symbol is declared (for a method).
-
getJsniIdent
java.lang.String getJsniIdent()
Returns a JSNI-like identifier for the symbol if it a method or field, otherwisenull.
-
getMemberName
java.lang.String getMemberName()
Returns the name of the member if the symbol is a method or field.
-
getRuntimeTypeId
java.lang.String getRuntimeTypeId()
Returns the runtime typeId.
-
getSourceLine
int getSourceLine()
Returns the line number on which the symbol was originally declared or-1if the line number is unknown.
-
getSourceUri
java.lang.String getSourceUri()
Returns a URI string representing the location of the source. This method will returnnullif the symbol was derived from a transient or unknown source.
-
getSymbolName
java.lang.String getSymbolName()
Returns the JavaScript symbol this data maps to.
-
isClass
boolean isClass()
Returnstrueif the symbol represents a class.
-
isField
boolean isField()
Returnstrueif the symbol represents a field.
-
isMethod
boolean isMethod()
Returnstrueif the symbol represents a method.
-
-