Package com.google.errorprone.refaster
Class StringName
- java.lang.Object
-
- com.google.errorprone.refaster.StringName
-
- All Implemented Interfaces:
Unifiable<Name>
,Serializable
,CharSequence
,Name
public abstract class StringName extends Object implements Name, Unifiable<Name>
A simple wrapper to view aString
as aName
.- Author:
- [email protected] (Louis Wasserman)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringName()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
boolean
contentEquals(CharSequence cs)
com.sun.tools.javac.util.Name
inline(Inliner inliner)
int
length()
static StringName
of(CharSequence contents)
CharSequence
subSequence(int beginIndex, int endIndex)
String
toString()
Choice<Unifier>
unify(Name target, Unifier unifier)
Returns all valid unification paths (if any) from thisUnifier
that unify this withtarget
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Method Detail
-
of
public static StringName of(CharSequence contents)
-
toString
public final String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
length
public int length()
- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
public CharSequence subSequence(int beginIndex, int endIndex)
- Specified by:
subSequence
in interfaceCharSequence
-
contentEquals
public boolean contentEquals(@Nullable CharSequence cs)
- Specified by:
contentEquals
in interfaceName
-
unify
public Choice<Unifier> unify(@Nullable Name target, Unifier unifier)
Description copied from interface:Unifiable
Returns all valid unification paths (if any) from thisUnifier
that unify this withtarget
.
-
inline
public com.sun.tools.javac.util.Name inline(Inliner inliner)
-
-