Top Inners Fields Constructors Methods
org.lwjgl.util.generator

public Class Utils

extends Object
Class Inheritance
Imports
org.lwjgl.PointerBuffer, .PointerWrapper, org.lwjgl.util.generator.opengl.GLboolean, .GLchar, .GLcharARB, .GLreturn, java.io.PrintWriter, java.nio.Buffer, .ByteBuffer, java.util.*, java.util.regex.Pattern, javax.annotation.processing.ProcessingEnvironment, javax.lang.model.element.*, javax.lang.model.type.TypeKind, .TypeMirror, .TypeVisitor, javax.lang.model.util.ElementFilter

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
private static final Pattern
public static final String
public static final String
private static final String
public static final String
public static final String
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static VariableElement
private static String
getClassName(TypeElement interface_decl, String opengl_name)

public static Collection<VariableElement>
public static String
public static String
getFunctionAddressName(TypeElement interface_decl, ExecutableElement method, boolean forceAlt)

public static Class<T>
getJavaType(TypeMirror type_mirror)

public static TypeMirror
public static String
getMethodReturnType(ExecutableElement method, GLreturn return_annotation, boolean buffer)

public static Collection<ExecutableElement>
public static String
public static Class<?>
public static AnnotationMirror
public static String
public static String
getQualifiedNativeMethodName(String qualified_class_name, String method_name)

public static String
getQualifiedNativeMethodName(String qualified_class_name, ExecutableElement method, boolean generate_error_checks, boolean context_specific)

public static String
public static VariableElement
public static String
public static String
getSimpleNativeMethodName(ExecutableElement method, boolean generate_error_checks, boolean context_specific)

public static List<AnnotationMirror>
getSortedAnnotations(List<? extends AnnotationMirror> annotations)

pack-priv static String
public static String
public static boolean
private static boolean
public static boolean
public static boolean
private static boolean
public static boolean
public static boolean
isMethodIndirect(boolean generate_error_checks, boolean context_specific, ExecutableElement method)

public static boolean
pack-priv static boolean
public static boolean
public static void
public static void
printExtraCallArguments(PrintWriter writer, ExecutableElement method, String size_parameter_name)

pack-priv static void
printGLReturnPost(PrintWriter writer, ExecutableElement method, GLreturn return_annotation, TypeMap type_map)

pack-priv static void
printGLReturnPre(PrintWriter writer, ExecutableElement method, GLreturn return_annotation, TypeMap type_map)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BUFFER_OBJECT_METHOD_POSTFIXback to summary
public static final String BUFFER_OBJECT_METHOD_POSTFIX
BUFFER_OBJECT_PARAMETER_POSTFIXback to summary
public static final String BUFFER_OBJECT_PARAMETER_POSTFIX
CACHED_BUFFER_LENGTH_NAMEback to summary
public static final String CACHED_BUFFER_LENGTH_NAME
CACHED_BUFFER_NAMEback to summary
public static final String CACHED_BUFFER_NAME
CHECKS_CLASS_NAMEback to summary
public static final String CHECKS_CLASS_NAME
CONTEXT_CAPS_CLASS_NAMEback to summary
public static final String CONTEXT_CAPS_CLASS_NAME
DOT_PATTERNback to summary
private static final Pattern DOT_PATTERN
FUNCTION_POINTER_POSTFIXback to summary
public static final String FUNCTION_POINTER_POSTFIX
FUNCTION_POINTER_VAR_NAMEback to summary
public static final String FUNCTION_POINTER_VAR_NAME
OVERLOADED_METHOD_PREFIXback to summary
private static final String OVERLOADED_METHOD_PREFIX
RESULT_SIZE_NAMEback to summary
public static final String RESULT_SIZE_NAME
RESULT_VAR_NAMEback to summary
public static final String RESULT_VAR_NAME
STUB_INITIALIZER_NAMEback to summary
public static final String STUB_INITIALIZER_NAME
TYPEDEF_POSTFIXback to summary
public static final String TYPEDEF_POSTFIX

Constructor Detail

Utilsback to summary
public Utils()

Method Detail

findParameterback to summary
public static VariableElement findParameter(ExecutableElement method, String name)
getClassNameback to summary
private static String getClassName(TypeElement interface_decl, String opengl_name)
getFieldsback to summary
public static Collection<VariableElement> getFields(TypeElement d)
getFunctionAddressNameback to summary
public static String getFunctionAddressName(TypeElement interface_decl, ExecutableElement method)
getFunctionAddressNameback to summary
public static String getFunctionAddressName(TypeElement interface_decl, ExecutableElement method, boolean forceAlt)
getJavaTypeback to summary
public static Class<T> getJavaType(TypeMirror type_mirror)
getMethodReturnTypeback to summary
public static TypeMirror getMethodReturnType(ExecutableElement method)
getMethodReturnTypeback to summary
public static String getMethodReturnType(ExecutableElement method, GLreturn return_annotation, boolean buffer)
getMethodsback to summary
public static Collection<ExecutableElement> getMethods(TypeElement d)
getNativeQualifiedNameback to summary
public static String getNativeQualifiedName(String qualified_name)
getNIOBufferTypeback to summary
public static Class<?> getNIOBufferType(TypeMirror t)
getParameterAutoAnnotationback to summary
public static AnnotationMirror getParameterAutoAnnotation(VariableElement param)
getQualifiedClassNameback to summary
public static String getQualifiedClassName(TypeElement interface_decl)
getQualifiedNativeMethodNameback to summary
public static String getQualifiedNativeMethodName(String qualified_class_name, String method_name)
getQualifiedNativeMethodNameback to summary
public static String getQualifiedNativeMethodName(String qualified_class_name, ExecutableElement method, boolean generate_error_checks, boolean context_specific)
getReferenceNameback to summary
public static String getReferenceName(TypeElement interface_decl, ExecutableElement method, VariableElement param)
getResultParameterback to summary
public static VariableElement getResultParameter(ExecutableElement method)
getSimpleClassNameback to summary
public static String getSimpleClassName(TypeElement interface_decl)
getSimpleNativeMethodNameback to summary
public static String getSimpleNativeMethodName(ExecutableElement method, boolean generate_error_checks, boolean context_specific)
getSortedAnnotationsback to summary
public static List<AnnotationMirror> getSortedAnnotations(List<? extends AnnotationMirror> annotations)
getStringOffsetback to summary
pack-priv static String getStringOffset(ExecutableElement method, VariableElement param)
getTypedefNameback to summary
public static String getTypedefName(ExecutableElement method)
hasMethodBufferObjectParameterback to summary
public static boolean hasMethodBufferObjectParameter(ExecutableElement method)
hasParameterMultipleTypesback to summary
private static boolean hasParameterMultipleTypes(VariableElement param)
isAddressableTypeback to summary
public static boolean isAddressableType(TypeMirror type)
isAddressableTypeback to summary
public static boolean isAddressableType(Class<T> type)
isAddressableTypeImplback to summary
private static boolean isAddressableTypeImpl(Class<T> type)
isFinalback to summary
public static boolean isFinal(Element d)
isMethodIndirectback to summary
public static boolean isMethodIndirect(boolean generate_error_checks, boolean context_specific, ExecutableElement method)
isParameterMultiTypedback to summary
public static boolean isParameterMultiTyped(VariableElement param)
isReturnParameterback to summary
pack-priv static boolean isReturnParameter(ExecutableElement method, VariableElement param)
needResultSizeback to summary
public static boolean needResultSize(ExecutableElement method)
printDocCommentback to summary
public static void printDocComment(PrintWriter writer, Element decl, ProcessingEnvironment pe)
printExtraCallArgumentsback to summary
public static void printExtraCallArguments(PrintWriter writer, ExecutableElement method, String size_parameter_name)
printGLReturnPostback to summary
pack-priv static void printGLReturnPost(PrintWriter writer, ExecutableElement method, GLreturn return_annotation, TypeMap type_map)
printGLReturnPreback to summary
pack-priv static void printGLReturnPre(PrintWriter writer, ExecutableElement method, GLreturn return_annotation, TypeMap type_map)
org.lwjgl.util.generator back to summary

private Class Utils.AnnotationMirrorComparator

extends Object
implements Comparator<AnnotationMirror>
Class Inheritance
All Implemented Interfaces
java.util.Comparator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
compare(AnnotationMirror
the first object to be compared.
a1
,
AnnotationMirror
the second object to be compared.
a2
)

Implements java.util.Comparator.compare.

Sort annotations.
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AnnotationMirrorComparatorback to summary
private AnnotationMirrorComparator()

Method Detail

compareback to summary
public int compare(AnnotationMirror a1, AnnotationMirror a2)

Implements java.util.Comparator.compare.

Sort annotations.

Parameters
a1:AnnotationMirror

Doc from java.util.Comparator.compare.

the first object to be compared.

a2:AnnotationMirror

Doc from java.util.Comparator.compare.

the second object to be compared.

Returns:int

Doc from java.util.Comparator.compare.

a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Annotations
@Override
equalsback to summary
public boolean equals(AnnotationMirror a1, AnnotationMirror a2)