org.stjs.generator.utils
Class JavaNodes

java.lang.Object
  extended by org.stjs.generator.utils.JavaNodes

public final class JavaNodes
extends Object


Method Summary
static Element elementFromDeclaration(com.sun.source.tree.Tree tree)
           
static DeclaredType getEnclosingType(TypeMirror type)
           
static String getNamespace(Element type)
           
static boolean isConstructor(com.sun.source.tree.Tree tree)
           
static boolean isFinal(com.sun.source.tree.VariableTree tree)
           
static boolean isInnerType(Element type)
           
static boolean isJavaScriptPrimitive(TypeMirror type)
           
static boolean isNative(Element element)
           
static boolean isStatic(Element element)
           
static boolean isStatic(com.sun.source.tree.MethodTree method)
           
static boolean isSuper(com.sun.source.tree.ExpressionTree expression)
           
static boolean sameRawType(TypeMirror type1, Class<?> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isConstructor

public static boolean isConstructor(com.sun.source.tree.Tree tree)

sameRawType

public static boolean sameRawType(TypeMirror type1,
                                  Class<?> clazz)

isStatic

public static boolean isStatic(com.sun.source.tree.MethodTree method)

isFinal

public static boolean isFinal(com.sun.source.tree.VariableTree tree)

isStatic

public static boolean isStatic(Element element)

isSuper

public static boolean isSuper(com.sun.source.tree.ExpressionTree expression)

getNamespace

public static String getNamespace(Element type)

isInnerType

public static boolean isInnerType(Element type)

getEnclosingType

public static DeclaredType getEnclosingType(TypeMirror type)

isNative

public static boolean isNative(Element element)

isJavaScriptPrimitive

public static boolean isJavaScriptPrimitive(TypeMirror type)

elementFromDeclaration

public static Element elementFromDeclaration(com.sun.source.tree.Tree tree)


Copyright © 2014. All Rights Reserved.