Class ArrayParameterType
java.lang.Object
xyz.janboerman.scalaloader.configurationserializable.runtime.ParameterType
xyz.janboerman.scalaloader.configurationserializable.runtime.ArrayParameterType
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ArrayParameterTypefrom(Set<? extends Annotation> annotations, ParameterType componentType, boolean varArgs) The same asfrom(ParameterType, boolean), but includes annotation information.static ArrayParameterTypefrom(ParameterType componentType, boolean varArgs) Construct a new ArrayParameterTypeGet the component type of this array type.inthashCode()booleanWhether this array parameter type uses the varargs notation (Foo...toString()Methods inherited from class ParameterType
from, from, from, from, getAnnotation, getAnnotations, getRawTypeModifier and TypeMethodDescriptionstatic ParameterTypefrom(AnnotatedType type) Construct a ParameterType from an AnnotatedTypestatic ParameterTypeConstruct a ParameterType from a Parameter.static ParameterTypeConstruct a ParameterType from aClass.static ParameterTypefrom(Set<? extends Annotation> annotations, Type type) Construct the ParameterType that includes annotation information.<A extends Annotation>
AgetAnnotation(Class<A> annotationClass) Get the annotation of a given annotation type.Set<? extends Annotation> Get the annotations present with this parameter type.Class<?> Get the raw type
-
Method Details
-
from
public static ArrayParameterType from(Set<? extends Annotation> annotations, ParameterType componentType, boolean varArgs) The same asfrom(ParameterType, boolean), but includes annotation information.- Parameters:
annotations- the annotations present on this parametercomponentType- the component type of the array typevarArgs- whether this array type was declared as var-args- Returns:
- a new ArrayParameterType
-
from
Construct a new ArrayParameterType- Parameters:
componentType- the component type of the array typevarArgs- whether this array type was declared as var-args- Returns:
- a new ArrayParameterType
-
getComponentType
Get the component type of this array type.- Returns:
- the component type
-
isVarArgs
public boolean isVarArgs()Whether this array parameter type uses the varargs notation (Foo... foos)- Returns:
- true if this parameter uses the varargs notation, otherwise false
-
equals
- Overrides:
equalsin classParameterType
-
hashCode
public int hashCode()- Overrides:
hashCodein classParameterType
-
toString
- Overrides:
toStringin classParameterType
-