public class I18nFormatterTreeUtil.I18nFormatCall extends Object
An I18nFormatCall instance can only be instantiated by the createFormatForCall method.
Constructor and Description |
---|
I18nFormatCall(MethodInvocationTree tree,
MethodInvocationNode node,
AnnotatedTypeFactory atypeFactory) |
Modifier and Type | Method and Description |
---|---|
I18nConversionCategory[] |
getFormatCategories()
Returns the conversion category for every parameter.
|
FormatterTreeUtil.Result<I18nFormatterTreeUtil.FormatType> |
getFormatType() |
String |
getInvalidError() |
FormatterTreeUtil.Result<I18nFormatterTreeUtil.FormatType> |
getInvalidInvocationType() |
FormatterTreeUtil.Result<FormatterTreeUtil.InvocationType> |
getInvocationType()
Returns the type of method invocation.
|
FormatterTreeUtil.Result<TypeMirror>[] |
getParamTypes() |
MethodInvocationTree |
getTree()
Returns the AST node for the call.
|
boolean |
isValidFormatForInvocation() |
boolean |
isValidParameter(I18nConversionCategory formatCat,
TypeMirror paramType) |
String |
toString() |
public I18nFormatCall(MethodInvocationTree tree, MethodInvocationNode node, AnnotatedTypeFactory atypeFactory)
public MethodInvocationTree getTree()
public FormatterTreeUtil.Result<I18nFormatterTreeUtil.FormatType> getFormatType()
public final String getInvalidError()
public boolean isValidFormatForInvocation()
public final FormatterTreeUtil.Result<FormatterTreeUtil.InvocationType> getInvocationType()
FormatterTreeUtil.InvocationType
public FormatterTreeUtil.Result<I18nFormatterTreeUtil.FormatType> getInvalidInvocationType()
public final I18nConversionCategory[] getFormatCategories()
I18nConversionCategory
public final FormatterTreeUtil.Result<TypeMirror>[] getParamTypes()
public boolean isValidParameter(I18nConversionCategory formatCat, TypeMirror paramType)