public static class GroovyTranslator.DefaultTypeTranslator extends Object implements Translator.ScriptTranslator.TypeTranslator
| Constructor and Description |
|---|
DefaultTypeTranslator() |
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(String traversalSource,
Object o) |
protected String |
convertClassToString(Class<?> clazz)
Gets the string representation of a class with the default implementation simply checking to see if the
Class is in CoreImports or not. |
protected StringBuilder |
convertPToString(P p,
StringBuilder current) |
protected StringBuilder |
convertTextPToString(TextP p,
StringBuilder current) |
protected String |
convertToString(Object object) |
protected String |
internalTranslate(String start,
Bytecode bytecode) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenpublic Object apply(String traversalSource, Object o)
apply in interface BiFunction<String,Object,Object>protected StringBuilder convertPToString(P p, StringBuilder current)
protected StringBuilder convertTextPToString(TextP p, StringBuilder current)
protected String convertClassToString(Class<?> clazz)
Class is in CoreImports or not. If it is present that means it can be referenced using the
simple name otherwise it uses the canonical name.
Those building custom ScriptTranslator instances might override this if they have other classes
that are not in CoreImports by default.Copyright © 2013–2022 Apache Software Foundation. All rights reserved.