com.android.tools.lint.client.api
Class JavaParser.DefaultTypeDescriptor
java.lang.Object
com.android.tools.lint.client.api.JavaParser.TypeDescriptor
com.android.tools.lint.client.api.JavaParser.DefaultTypeDescriptor
- Enclosing class:
- JavaParser
public static class JavaParser.DefaultTypeDescriptor
- extends JavaParser.TypeDescriptor
Convenience implementation of JavaParser.TypeDescriptor
Method Summary |
java.lang.String |
getName()
Returns the fully qualified name of the type, such as "int" or "android.app.Activity" |
java.lang.String |
getSignature()
Returns the full signature of the type, which is normally the same as JavaParser.TypeDescriptor.getName()
but for arrays can include []'s, for generic methods can include generics parameters
etc |
boolean |
matchesName(java.lang.String name)
|
boolean |
matchesSignature(java.lang.String signature)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JavaParser.DefaultTypeDescriptor
public JavaParser.DefaultTypeDescriptor(java.lang.String name)
getName
@NonNull
public java.lang.String getName()
- Description copied from class:
JavaParser.TypeDescriptor
- Returns the fully qualified name of the type, such as "int" or "android.app.Activity"
- Specified by:
getName
in class JavaParser.TypeDescriptor
getSignature
@NonNull
public java.lang.String getSignature()
- Description copied from class:
JavaParser.TypeDescriptor
- Returns the full signature of the type, which is normally the same as
JavaParser.TypeDescriptor.getName()
but for arrays can include []'s, for generic methods can include generics parameters
etc
- Specified by:
getSignature
in class JavaParser.TypeDescriptor
matchesName
public boolean matchesName(@NonNull
java.lang.String name)
- Specified by:
matchesName
in class JavaParser.TypeDescriptor
matchesSignature
public boolean matchesSignature(@NonNull
java.lang.String signature)
- Specified by:
matchesSignature
in class JavaParser.TypeDescriptor
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object