Package net.sf.opendse.io
Interface ClassDictionary
-
- All Known Implementing Classes:
ClassDictionaryDefault
public interface ClassDictionary
TheClassDictionary
is used to look up class-related information about the classes modeling elements of the specification, such as their string names.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<?>
getClass(String name)
Returns the class associated with the given nameString
getType(Class<?> clazz)
Returns the (canonical) name of aClass
.boolean
hasClassName(String name)
Returns true iff the given name is in the class map.boolean
isPrimitive(Class<?> clazz)
Returns true iffClass
is part of the primitives.
-
-
-
Method Detail
-
getType
String getType(Class<?> clazz)
Returns the (canonical) name of aClass
.- Parameters:
clazz
- the Class object- Returns:
- the canonical name of the clazz
-
hasClassName
boolean hasClassName(String name)
Returns true iff the given name is in the class map.- Parameters:
name
- the given name- Returns:
- true iff the given name is in the class map
-
getClass
Class<?> getClass(String name)
Returns the class associated with the given name- Parameters:
name
- the given name- Returns:
- the class associated with the given name
-
isPrimitive
boolean isPrimitive(Class<?> clazz)
Returns true iffClass
is part of the primitives.- Parameters:
clazz
- the Class object- Returns:
- true iff clazz is a primitive
-
-