java.lang.Object |
↳ |
com.google.inject.grapher.ShortNameFactory |
Class Overview
Reasonable implementation for NameFactory
. Mostly takes various
toString()
s and strips package names out of them so that
they'll fit on the graph.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0)
|
final
void
|
wait(long arg0, int arg1)
|
|
From interface
com.google.inject.grapher.NameFactory
|
Public Constructors
public
ShortNameFactory
()
Public Methods
public
String
getAnnotationName
(Key<?> key)
public
String
getClassName
(Key<?> key)
public
String
getInstanceName
(Object instance)
public
String
getMemberName
(Member member)
public
String
getSourceName
(Object source)
Returns a name for a Guice "source" object. This will typically be either
a StackTraceElement for when the binding is made to the instance,
or a Method when a provider method is used.
Protected Methods
protected
String
getFileString
(StackTraceElement stackTraceElement)
protected
String
getMethodString
(Method method)