public class ASTNodeConverter extends java.lang.Object implements NodeConverter
Modifier and Type | Class and Description |
---|---|
protected class |
ASTNodeConverter.Converter
Base class for all converters.
|
protected class |
ASTNodeConverter.EnumToTypeConverter
Converter of enum to class.
|
protected class |
ASTNodeConverter.TypeToEnumConverter
Converter of type to enum.
|
Modifier and Type | Field and Description |
---|---|
protected ASTFacadeHelper |
facadeHelper |
Constructor and Description |
---|
ASTNodeConverter(ASTFacadeHelper facadeHelper) |
Modifier and Type | Method and Description |
---|---|
JAbstractType |
convert(JAbstractType abstractType,
java.lang.Class<? extends JAbstractType> cls)
Converts the specified abstract type to an instance of the given class and returns the converted node.
|
ASTFacadeHelper |
getFacadeHelper() |
protected ASTFacadeHelper facadeHelper
public ASTNodeConverter(ASTFacadeHelper facadeHelper)
facadeHelper
- must be not null
public ASTFacadeHelper getFacadeHelper()
public JAbstractType convert(JAbstractType abstractType, java.lang.Class<? extends JAbstractType> cls)
NodeConverter
convert
in interface NodeConverter
abstractType
- type to convertcls
- class of the converted node