AnnotationValue
, Expression
public abstract class Constant extends Object implements AnnotationValue
public abstract Object getValue()
public String getImage()
public Object accept(ExpressionVisitor visitor)
accept
in interface AnnotationValue
visitor
- Visitorpublic String getParameterValue()
JavaAnnotation.getNamedParameter(String)
.getParameterValue
in interface Expression
protected static Character toChar(String value) throws IllegalArgumentException
value
- the single quoted valueIllegalArgumentException
- if value is not a character literalprotected static String toString(String value) throws IllegalArgumentException
value
- the double quoted valueIllegalArgumentException
- if value is not a String literalCopyright © 2002–2018. All rights reserved.