Class JavaEnvironment
java.lang.Object
com.google.j2cl.transpiler.frontend.javac.JavaEnvironment
Utility functions to interact with JavaC internal representations.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaEnvironment(com.sun.tools.javac.util.Context context, Collection<String> wellKnownQualifiedBinaryNames) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<com.google.j2cl.transpiler.ast.TypeDescriptor>createTypeDescriptors(List<? extends TypeMirror> typeMirrors, boolean inNullMarkedScope) <T extends com.google.j2cl.transpiler.ast.TypeDescriptor>
com.google.common.collect.ImmutableList<T>createTypeDescriptors(List<? extends TypeMirror> typeMirrors, boolean inNullMarkedScope, Class<T> clazz) <T extends com.google.j2cl.transpiler.ast.TypeDescriptor>
com.google.common.collect.ImmutableList<T>createTypeDescriptors(List<? extends TypeMirror> typeMirrors, boolean inNullMarkedScope, Class<T> clazz, Element declarationElement) static TypeElementgetEnclosingType(Element typeElement) static com.google.j2cl.transpiler.ast.VisibilitygetVisibility(Element element) static boolean
-
Constructor Details
-
JavaEnvironment
public JavaEnvironment(com.sun.tools.javac.util.Context context, Collection<String> wellKnownQualifiedBinaryNames)
-
-
Method Details
-
createTypeDescriptors
public com.google.common.collect.ImmutableList<com.google.j2cl.transpiler.ast.TypeDescriptor> createTypeDescriptors(List<? extends TypeMirror> typeMirrors, boolean inNullMarkedScope) -
createTypeDescriptors
public <T extends com.google.j2cl.transpiler.ast.TypeDescriptor> com.google.common.collect.ImmutableList<T> createTypeDescriptors(List<? extends TypeMirror> typeMirrors, boolean inNullMarkedScope, Class<T> clazz, Element declarationElement) -
createTypeDescriptors
public <T extends com.google.j2cl.transpiler.ast.TypeDescriptor> com.google.common.collect.ImmutableList<T> createTypeDescriptors(List<? extends TypeMirror> typeMirrors, boolean inNullMarkedScope, Class<T> clazz) -
getEnclosingType
-
getVisibility
-
isStatic
-