Class I18nFormatterTreeUtil.I18nFormatCall
java.lang.Object
org.checkerframework.checker.i18nformatter.I18nFormatterTreeUtil.I18nFormatCall
- Enclosing class:
- I18nFormatterTreeUtil
Represents a format method invocation in the syntax tree.
An I18nFormatCall instance can only be instantiated by the createFormatForCall method.
-
Constructor Summary
ConstructorDescriptionI18nFormatCall
(MethodInvocationTree tree, AnnotatedTypeFactory atypeFactory) Creates anI18nFormatCall
for the given method invocation tree. -
Method Summary
Modifier and TypeMethodDescriptionfinal I18nConversionCategory[]
Returns the conversion category for every parameter.final String
Returns the type of method invocation.final FormatterTreeUtil.Result<TypeMirror>[]
getTree()
Returns the AST node for the call.boolean
boolean
isValidParameter
(I18nConversionCategory formatCat, TypeMirror paramType) toString()
-
Constructor Details
-
I18nFormatCall
Creates anI18nFormatCall
for the given method invocation tree.- Parameters:
tree
- method invocation treeatypeFactory
- type factory
-
-
Method Details
-
getTree
Returns the AST node for the call.- Returns:
- the AST node for the call
-
toString
-
getFormatType
-
getInvalidError
-
isValidFormatForInvocation
public boolean isValidFormatForInvocation() -
getInvocationType
Returns the type of method invocation.- See Also:
-
getInvalidInvocationType
-
getFormatCategories
Returns the conversion category for every parameter.- See Also:
-
getParamTypes
-
isValidParameter
-