java.lang.Object
com.thoughtworks.qdox.model.expression.Constant
- 所有已实现的接口:
AnnotationValue,Expression
-
方法概要
修饰符和类型方法说明accept(ExpressionVisitor visitor) Accept a visitor for this value.protected static StringconvertString(String str) getImage()Get a parameter value forJavaAnnotation.getNamedParameter(String).abstract ObjectgetValue()static ConstantnewBooleanLiteral(String value) static ConstantnewCharacterLiteral(String value) static ConstantnewFloatingPointLiteral(String value) static ConstantnewIntegerLiteral(String value) static ConstantnewStringLiteral(String value) protected static Booleanprotected static CharacterConvert a character literal into a character.protected static NumbertoFloatingPointLiteral(String value) protected static NumbertoIntegerLiteral(String value) toString()protected static StringConvert a string literal into a string.
-
方法详细资料
-
getValue
-
newBooleanLiteral
-
newCharacterLiteral
-
newFloatingPointLiteral
-
newIntegerLiteral
-
newStringLiteral
-
getImage
-
toString
-
accept
Accept a visitor for this value.- 指定者:
accept在接口中AnnotationValue- 参数:
visitor- Visitor- 返回:
- Visitor result
-
getParameterValue
Get a parameter value forJavaAnnotation.getNamedParameter(String).- 指定者:
getParameterValue在接口中Expression- 返回:
- Parameter value
-
convertString
-
toBoolean
-
toIntegerLiteral
-
toFloatingPointLiteral
-
toChar
Convert a character literal into a character.- 参数:
value- the single quoted value- 返回:
- the transformed char
- 抛出:
IllegalArgumentException- if value is not a character literal
-
toString
Convert a string literal into a string.- 参数:
value- the double quoted value- 返回:
- the transformed String
- 抛出:
IllegalArgumentException- if value is not a String literal
-