public class StandardSymbolData extends Object implements SymbolData
SymbolData.ClassIdentComparator
Modifier and Type | Method and Description |
---|---|
static StandardSymbolData |
forClass(String className,
String uriString,
int lineNumber,
String typeId) |
static StandardSymbolData |
forMember(String className,
String memberName,
String methodSig,
String uriString,
int lineNumber) |
String |
getClassName()
Returns the name of the type or enclosing type if the symbol is a method or
field.
|
int |
getFragmentNumber()
Returns the fragment number in which the symbol is declared (for a method).
|
String |
getJsniIdent()
Returns a JSNI-like identifier for the symbol if it a method or field,
otherwise
null . |
String |
getMemberName()
Returns the name of the member if the symbol is a method or field.
|
String |
getRuntimeTypeId()
Returns the runtime typeId.
|
int |
getSourceLine()
Returns the line number on which the symbol was originally declared or
-1 if the line number is unknown. |
String |
getSourceUri()
Returns a URI string representing the location of the source.
|
String |
getSymbolName()
Returns the JavaScript symbol this data maps to.
|
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. |
void |
setFragmentNumber(int fragNum) |
void |
setSymbolName(String symbolName) |
String |
toString() |
static String |
toUriString(String fileName) |
public static StandardSymbolData forClass(String className, String uriString, int lineNumber, String typeId)
public static StandardSymbolData forMember(String className, String memberName, String methodSig, String uriString, int lineNumber)
public String getClassName()
SymbolData
getClassName
in interface SymbolData
public int getFragmentNumber()
SymbolData
getFragmentNumber
in interface SymbolData
public String getJsniIdent()
SymbolData
null
.getJsniIdent
in interface SymbolData
public String getMemberName()
SymbolData
getMemberName
in interface SymbolData
public String getRuntimeTypeId()
SymbolData
getRuntimeTypeId
in interface SymbolData
public int getSourceLine()
SymbolData
-1
if the line number is unknown.getSourceLine
in interface SymbolData
public String getSourceUri()
SymbolData
null
if the symbol was derived from a transient
or unknown source.getSourceUri
in interface SymbolData
public String getSymbolName()
SymbolData
getSymbolName
in interface SymbolData
public boolean isClass()
SymbolData
true
if the symbol represents a class.isClass
in interface SymbolData
public boolean isField()
SymbolData
true
if the symbol represents a field.isField
in interface SymbolData
public boolean isMethod()
SymbolData
true
if the symbol represents a method.isMethod
in interface SymbolData
public void setFragmentNumber(int fragNum)
public void setSymbolName(String symbolName)
Copyright © 2016. All rights reserved.