java.lang.Object
de.codecamp.messages.codegen.DeclaredMessageKey
- All Implemented Interfaces:
MessageKey
Basic implementation of
MessageKey with a few extensions. Used for the message key
constants.-
Field Summary
Fields inherited from interface de.codecamp.messages.MessageKey
TYPE_KEY_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionDeclaredMessageKey(Class<?> sourceType, String code, Class<?>[] argTypes, String[] argNames) Constructs a newDeclaredMessageKey. -
Method Summary
-
Constructor Details
-
DeclaredMessageKey
Constructs a newDeclaredMessageKey.- Parameters:
sourceType- the type the message key was declared incode- the message keyargTypes- the message argument typesargNames- the message argument names
-
-
Method Details
-
getSourceType
Returns the top-level type the message key was declared in.- Returns:
- the top-level type the message key was declared in
-
getCode
Description copied from interface:MessageKeyReturns the actual code of the message key.- Specified by:
getCodein interfaceMessageKey- Returns:
- the code
-
hasArgs
public boolean hasArgs() -
getArgTypes
-
getArgNames
-
hashCode
public int hashCode() -
equals
-