public class ClassInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
geninfo
The generic type info (e.g.
|
protected java.lang.Class<?> |
type
The service interface type.
|
protected java.lang.String |
typename
The service interface type as string.
|
Constructor and Description |
---|
ClassInfo()
Create a new class info.
|
ClassInfo(java.lang.Class<?> type)
Create a new class info.
|
ClassInfo(java.lang.String typename)
Create a new class info.
|
ClassInfo(java.lang.reflect.Type type)
Create a new class info.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Test if object is equal to this.
|
java.lang.String |
getGenericTypeName()
Get the generic type name.
|
java.lang.String |
getGeninfo()
Get the geninfo.
|
java.lang.String |
getPrefixNotation()
Get class info in prefix notation, i.e.
|
java.lang.Class<?> |
getType(java.lang.ClassLoader cl)
Get the type.
|
java.lang.Class<?> |
getType(java.lang.ClassLoader cl,
java.lang.String[] imports)
Get the type.
|
java.lang.String |
getTypeName()
Get the type name.
|
int |
hashCode()
Get the hashcode.
|
void |
setGeninfo(java.lang.String geninfo)
The geninfo to set.
|
void |
setTheType(java.lang.Class<?> type)
Set the type.
|
void |
setTypeName(java.lang.String typename)
Set the name.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.lang.String typename
protected java.lang.Class<?> type
protected java.lang.String geninfo
public ClassInfo()
public ClassInfo(java.lang.Class<?> type)
type
- The class info.public ClassInfo(java.lang.reflect.Type type)
type
- The class info.public ClassInfo(java.lang.String typename)
type
- The class info.public java.lang.String getTypeName()
public void setTypeName(java.lang.String typename)
name
- The name to set.public java.lang.Class<?> getType(java.lang.ClassLoader cl)
public java.lang.Class<?> getType(java.lang.ClassLoader cl, java.lang.String[] imports)
public void setTheType(java.lang.Class<?> type)
type
- The type to set.public java.lang.String getGenericTypeName()
public java.lang.String getGeninfo()
public void setGeninfo(java.lang.String geninfo)
geninfo
- The geninfo to setpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getPrefixNotation()