|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.AbstractService
recoder.service.DefaultNameInfo
public class DefaultNameInfo
| Field Summary |
|---|
| Fields inherited from class recoder.AbstractService |
|---|
serviceConfiguration |
| Constructor Summary | |
|---|---|
DefaultNameInfo(ServiceConfiguration config)
Creates a new initialized definition table. |
|
| Method Summary | |
|---|---|
ArrayType |
createArrayType(Type basetype)
Deprecated. |
ArrayType |
createArrayType(Type basetype,
int dimensions)
Deprecated. |
Package |
createPackage(java.lang.String name)
Returns a package represented by the given fully qualified name. |
ArrayType |
getArrayType(Type basetype)
Deprecated. |
PrimitiveType |
getBooleanType()
Returns the predefined boolean type. |
PrimitiveType |
getByteType()
Returns the predefined byte type. |
PrimitiveType |
getCharType()
Returns the predefined char type. |
ClassType |
getClassType(java.lang.String name)
Returns the class type represented by the given fully qualified name. |
java.util.List<ClassType> |
getClassTypes()
Returns the list of globally known class types. |
java.util.List<ClassType> |
getClassTypes(java.lang.String pattern)
|
PrimitiveType |
getDoubleType()
Returns the predefined double type. |
Field |
getField(java.lang.String name)
Returns a field belonging to the given fully qualified name. |
java.util.List<Field> |
getFields()
Returns the list of globally known fields. |
PrimitiveType |
getFloatType()
Returns the predefined float type. |
PrimitiveType |
getIntType()
Returns the predefined int type. |
ClassType |
getJavaIoSerializable()
Returns the predefined Serializable type. |
ClassType |
getJavaLangAnnotationAnnotation()
Returns the predefined interface java.lang.annotation.Annotation. |
ClassType |
getJavaLangBoolean()
Returns the predefined Boolean type. |
ClassType |
getJavaLangByte()
Returns the predefined Byte type. |
ClassType |
getJavaLangCharacter()
Returns the predefined Character type. |
ClassType |
getJavaLangClass()
Returns the predefined Class type. |
ClassType |
getJavaLangCloneable()
Returns the predefined Cloneable type. |
ClassType |
getJavaLangDouble()
Returns the predefined Double type. |
ClassType |
getJavaLangEnum()
Returns the predefined class java.lang.Enum. |
ClassType |
getJavaLangFloat()
Returns the predefined Float type. |
ClassType |
getJavaLangInteger()
Returns the predefined Integer type. |
ClassType |
getJavaLangIterable()
Returns the predefined class java.lang.Iterable. |
ClassType |
getJavaLangLong()
Returns the predefined Long type. |
ClassType |
getJavaLangObject()
Returns the predefined Object type. |
ClassType |
getJavaLangRunnable()
|
ClassType |
getJavaLangShort()
Returns the predefined Short type. |
ClassType |
getJavaLangString()
Returns the predefined String type. |
PrimitiveType |
getLongType()
Returns the predefined long type. |
java.util.List<Method> |
getMethods(java.lang.String pattern)
|
ClassType |
getNullType()
Returns the predefined Null type. |
Package |
getPackage(java.lang.String name)
Returns the package represented by the given fully qualified name, if it already exists. |
java.util.List<Package> |
getPackages()
Returns the list of globally known packages. |
PrimitiveType |
getShortType()
Returns the predefined short type. |
Type |
getType(java.lang.String name)
Returns the type represented by the given fully qualified name. |
java.util.List<Type> |
getTypes()
Returns the list of globally known types. |
java.util.List<ClassType> |
getTypes(Package pkg)
Returns the list of known class types of the given package. |
AnnotationProperty |
getUnknownAnnotationProperty()
Returns the placeholder for an unknown annotation property. |
ClassType |
getUnknownClassType()
Returns the placeholder for an unknown class type. |
Constructor |
getUnknownConstructor()
Returns the placeholder for an unknown constructor. |
ProgramModelElement |
getUnknownElement()
Returns the placeholder for an unknown entity that might be a package, class type, or field. |
Field |
getUnknownField()
Returns the placeholder for an unknown field. |
Method |
getUnknownMethod()
Returns the placeholder for an unknown method. |
Package |
getUnknownPackage()
Returns the placeholder for an unknown package. |
Type |
getUnknownType()
Returns the placeholder for an unknown type. |
Variable |
getUnknownVariable()
Returns the placeholder for an unknown variable. |
java.lang.String |
information()
|
void |
initialize(ServiceConfiguration cfg)
Called by the service configuration indicating that all services are known. |
boolean |
isPackage(java.lang.String name)
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
register(ClassType ct)
Registers a class type. |
void |
register(Field f)
Registers a field. |
void |
unregisterClassType(java.lang.String fullname)
Unregisters a class type. |
void |
unregisterField(java.lang.String fullname)
Unregisters a field. |
void |
unregisterPackages()
|
| Methods inherited from class recoder.AbstractService |
|---|
getServiceConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface recoder.Service |
|---|
getServiceConfiguration |
| Constructor Detail |
|---|
public DefaultNameInfo(ServiceConfiguration config)
config - the configuration this services becomes part of.| Method Detail |
|---|
public void initialize(ServiceConfiguration cfg)
AbstractService
initialize in interface Serviceinitialize in class AbstractServicecfg - the service configuration this services has been assigned to.public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic void register(ClassType ct)
NameInfo
register in interface NameInfoct - the class type to be recognized by this service.public void register(Field f)
NameInfo
register in interface NameInfof - the field to be recognized by this service.public ClassType getJavaLangObject()
NameInfo
getJavaLangObject in interface NameInfopublic ClassType getJavaLangString()
NameInfo
getJavaLangString in interface NameInfopublic ClassType getJavaLangBoolean()
NameInfo
getJavaLangBoolean in interface NameInfopublic ClassType getJavaLangByte()
NameInfo
getJavaLangByte in interface NameInfopublic ClassType getJavaLangCharacter()
NameInfo
getJavaLangCharacter in interface NameInfopublic ClassType getJavaLangShort()
NameInfo
getJavaLangShort in interface NameInfopublic ClassType getJavaLangInteger()
NameInfo
getJavaLangInteger in interface NameInfopublic ClassType getJavaLangLong()
NameInfo
getJavaLangLong in interface NameInfopublic ClassType getJavaLangFloat()
NameInfo
getJavaLangFloat in interface NameInfopublic ClassType getJavaLangDouble()
NameInfo
getJavaLangDouble in interface NameInfopublic ClassType getJavaLangClass()
NameInfo
getJavaLangClass in interface NameInfopublic ClassType getJavaLangCloneable()
NameInfo
getJavaLangCloneable in interface NameInfopublic ClassType getJavaLangRunnable()
public ClassType getJavaIoSerializable()
NameInfo
getJavaIoSerializable in interface NameInfopublic ClassType getJavaLangAnnotationAnnotation()
NameInfo
getJavaLangAnnotationAnnotation in interface NameInfopublic ClassType getJavaLangEnum()
NameInfo
getJavaLangEnum in interface NameInfopublic ClassType getJavaLangIterable()
NameInfo
getJavaLangIterable in interface NameInfopublic ClassType getNullType()
NameInfo
getNullType in interface NameInfopublic PrimitiveType getShortType()
NameInfo
getShortType in interface NameInfopublic PrimitiveType getByteType()
NameInfo
getByteType in interface NameInfopublic PrimitiveType getBooleanType()
NameInfo
getBooleanType in interface NameInfopublic PrimitiveType getIntType()
NameInfo
getIntType in interface NameInfopublic PrimitiveType getLongType()
NameInfo
getLongType in interface NameInfopublic PrimitiveType getFloatType()
NameInfo
getFloatType in interface NameInfopublic PrimitiveType getDoubleType()
NameInfo
getDoubleType in interface NameInfopublic PrimitiveType getCharType()
NameInfo
getCharType in interface NameInfopublic boolean isPackage(java.lang.String name)
public Package createPackage(java.lang.String name)
NameInfo
createPackage in interface NameInfoname - a qualified name.
public Package getPackage(java.lang.String name)
NameInfo
getPackage in interface NameInfoname - a qualified name.
null.public java.util.List<Package> getPackages()
NameInfo
getPackages in interface NameInfopublic ClassType getClassType(java.lang.String name)
NameInfo
getClassType in interface NameInfoname - a fully qualified type name.
@Deprecated public ArrayType createArrayType(Type basetype)
NameInfocreateArrayType(basetype, 1)
createArrayType in interface NameInfobasetype - the base type to find an array type for.
@Deprecated
public ArrayType createArrayType(Type basetype,
int dimensions)
NameInfo
createArrayType in interface NameInfobasetype - the base type to find an array type for.
@Deprecated public ArrayType getArrayType(Type basetype)
NameInfo
getArrayType in interface NameInfobasetype - the base type to find an array type for.
null.public Type getType(java.lang.String name)
NameInfogetTypes().
null is returned even if just one of the TypeArguments cannot be
resolved.
java.lang. are automatically
found. I.e., it is now possible to just call getType("String">
to get java.lang.String.
getType in interface NameInfoname - a fully qualified type name, possibly with type arguments.
public java.util.List<Type> getTypes()
NameInfo
getTypes in interface NameInfopublic java.util.List<ClassType> getTypes(Package pkg)
NameInfo
getTypes in interface NameInfopkg - a package.
public java.util.List<ClassType> getClassTypes()
NameInfo
getClassTypes in interface NameInfopublic Field getField(java.lang.String name)
NameInfo
getField in interface NameInfopublic java.util.List<Field> getFields()
NameInfo
getFields in interface NameInfopublic java.lang.String information()
public void unregisterClassType(java.lang.String fullname)
NameInfo
unregisterClassType in interface NameInfofullname - the (former) class type name.public void unregisterField(java.lang.String fullname)
NameInfo
unregisterField in interface NameInfofullname - the (former) field name.public void unregisterPackages()
public ClassType getUnknownClassType()
NameInfo
getUnknownClassType in interface NameInfopublic ProgramModelElement getUnknownElement()
NameInfo
getUnknownElement in interface NameInfopublic Package getUnknownPackage()
NameInfo
getUnknownPackage in interface NameInfopublic Method getUnknownMethod()
NameInfo
getUnknownMethod in interface NameInfopublic Constructor getUnknownConstructor()
NameInfo
getUnknownConstructor in interface NameInfopublic Variable getUnknownVariable()
NameInfo
getUnknownVariable in interface NameInfopublic Field getUnknownField()
NameInfo
getUnknownField in interface NameInfopublic Type getUnknownType()
NameInfo
getUnknownType in interface NameInfopublic AnnotationProperty getUnknownAnnotationProperty()
NameInfo
getUnknownAnnotationProperty in interface NameInfopublic java.util.List<ClassType> getClassTypes(java.lang.String pattern)
getClassTypes in interface NameInfopublic java.util.List<Method> getMethods(java.lang.String pattern)
getMethods in interface NameInfo
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||