public class TreeWrapper<T extends com.sun.source.tree.Tree,JS> extends Object
Tree node to give you easier access to the most important methods of the
elements in the AST| Constructor and Description |
|---|
TreeWrapper(Element element,
com.sun.source.util.TreePath path,
GenerationContext<JS> context) |
TreeWrapper(com.sun.source.util.TreePath path,
GenerationContext<JS> context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String message) |
<C extends com.sun.source.tree.Tree> |
child(C child) |
GenerationContext<JS> |
getContext() |
TreeWrapper<com.sun.source.tree.ClassTree,JS> |
getCurrentType() |
Element |
getElement() |
TreeWrapper<com.sun.source.tree.ClassTree,JS> |
getEnclosingType() |
String |
getFieldTemplate() |
String[] |
getFieldTemplateParameters() |
String |
getMethodTemplate() |
String[] |
getMethodTemplateParameters() |
String |
getNamespace() |
com.sun.source.util.TreePath |
getPath() |
T |
getTree() |
String |
getTypeName(DependencyType depType) |
boolean |
isAbstract() |
boolean |
isFinal() |
boolean |
isGlobal() |
boolean |
isInnerType() |
boolean |
isJavaScriptFunction() |
boolean |
isJavaScriptPrimitive() |
boolean |
isNative() |
boolean |
isPrimitiveType() |
boolean |
isServerSide() |
boolean |
isStatic() |
boolean |
isSuper() |
boolean |
isSyntheticType() |
<P extends com.sun.source.tree.Tree> |
parent() |
public TreeWrapper(@Nonnull com.sun.source.util.TreePath path, @Nonnull GenerationContext<JS> context)
public T getTree()
public com.sun.source.util.TreePath getPath()
public GenerationContext<JS> getContext()
public boolean isFinal()
public boolean isStatic()
public boolean isAbstract()
public boolean isSuper()
public boolean isPrimitiveType()
public boolean isJavaScriptFunction()
public boolean isGlobal()
public String getNamespace()
public boolean isInnerType()
public <C extends com.sun.source.tree.Tree> TreeWrapper<C,JS> child(C child)
public <P extends com.sun.source.tree.Tree> TreeWrapper<P,JS> parent()
public boolean isSyntheticType()
public boolean isNative()
public boolean isServerSide()
public boolean isJavaScriptPrimitive()
public Element getElement()
public TreeWrapper<com.sun.source.tree.ClassTree,JS> getEnclosingType()
public TreeWrapper<com.sun.source.tree.ClassTree,JS> getCurrentType()
public String getTypeName(DependencyType depType)
public void addError(String message)
public String getMethodTemplate()
public String[] getMethodTemplateParameters()
public String getFieldTemplate()
public String[] getFieldTemplateParameters()
Copyright © 2015. All Rights Reserved.