public class ConverterHelper.Helper
extends java.lang.Object
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
Aast |
createImport(java.lang.String text)
Creates an import statement (
KW_IMPORT with text as the
package/class to import) and attaches it into the target tree, IF
an equivalent import statement does not already exist. |
Aast |
createStaticImport(java.lang.String text)
Creates a static import statement (
STATIC_IMPORT with
text as the class members to import) and attaches it into the target
tree, IF an equivalent import statement does not already exist. |
java.lang.Object |
getTextKeyCaseSensitive()
Get the constant which defines
AstKey 's case-sensitive token text comparison flag. |
java.lang.Object |
getTextKeyIgnoreCase()
Get the constant which defines
AstKey 's case-insensitive token text comparison flag. |
java.lang.Object |
getWildcardKey()
Get the constant which defines
AstKey 's wildcard token type. |
public Aast createImport(java.lang.String text)
KW_IMPORT
with text as the
package/class to import) and attaches it into the target tree, IF
an equivalent import statement does not already exist.text
- The package/class to import.null
if text is
null
, jparent is not a valid Java AST node,
if an equivalent import statement already exists or if
there are errors during creation of the new Java AST.public Aast createStaticImport(java.lang.String text)
STATIC_IMPORT
with
text as the class members to import) and attaches it into the target
tree, IF an equivalent import statement does not already exist.text
- The package/class to import.null
if text is
null
, jparent is not a valid Java AST node,
if an equivalent import statement already exists or if
there are errors during creation of the new Java AST.public java.lang.Object getTextKeyIgnoreCase()
AstKey
's case-insensitive token text comparison flag.AstKey
constant.AstKey.TEXT_KEY_IGNORE_CASE
public java.lang.Object getTextKeyCaseSensitive()
AstKey
's case-sensitive token text comparison flag.AstKey
constant.AstKey.TEXT_KEY_CASE_SENS
public java.lang.Object getWildcardKey()
AstKey
's wildcard token type.AstKey
constant.AstKey.KEY_WILDCARD