public class NullSafeTypeAnnotation extends Object implements TypeAnnotation
TypeAnnotation
meant to be applied on ObjectFieldType
instances. It marks such field as NullSafe
and
contains the type
of the value which should be created if such field is not providedConstructor and Description |
---|
NullSafeTypeAnnotation(Class<?> type,
boolean defaultOverride)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
A name of the annotation
|
Class<?> |
getType() |
boolean |
hasDefaultOverride() |
boolean |
isPublic()
Returns whether this annotation is public or not.
|
public NullSafeTypeAnnotation(Class<?> type, boolean defaultOverride)
type
- the type of the default value to be createddefaultOverride
- whether the default implementing class has been overriden or notpublic Class<?> getType()
public boolean hasDefaultOverride()
public String getName()
TypeAnnotation
getName
in interface TypeAnnotation
public boolean isPublic()
Non public annotations will however always be available through MetadataType.getAnnotation(Class)
and all related methods.
isPublic
in interface TypeAnnotation
false
Copyright © 2018. All rights reserved.