repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
czyzby/gdx-lml
websocket/natives/serialization/src/main/java/com/github/czyzby/websocket/serialization/impl/Serializer.java
Serializer.serialize
public byte[] serialize() { if (currentByteArrayIndex == 0) { return new byte[0]; } final byte[] extractedSerializedData = new byte[currentByteArrayIndex]; System.arraycopy(serializedData, 0, extractedSerializedData, 0, currentByteArrayIndex); return extractedSerializ...
java
public byte[] serialize() { if (currentByteArrayIndex == 0) { return new byte[0]; } final byte[] extractedSerializedData = new byte[currentByteArrayIndex]; System.arraycopy(serializedData, 0, extractedSerializedData, 0, currentByteArrayIndex); return extractedSerializ...
[ "public", "byte", "[", "]", "serialize", "(", ")", "{", "if", "(", "currentByteArrayIndex", "==", "0", ")", "{", "return", "new", "byte", "[", "0", "]", ";", "}", "final", "byte", "[", "]", "extractedSerializedData", "=", "new", "byte", "[", "currentBy...
Finishes serialization, returning the object as a byte array. @return serialized object as byte array.
[ "Finishes", "serialization", "returning", "the", "object", "as", "a", "byte", "array", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/websocket/natives/serialization/src/main/java/com/github/czyzby/websocket/serialization/impl/Serializer.java#L598-L605
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/util/LmlUtilities.java
LmlUtilities.processAttributes
public static <Type> void processAttributes(final Type widget, final LmlTag tag, final LmlParser parser, final ObjectSet<String> processedAttributes, final boolean throwExceptionIfAttributeUnknown) { if (GdxMaps.isEmpty(tag.getNamedAttributes())) { return; } final LmlSynt...
java
public static <Type> void processAttributes(final Type widget, final LmlTag tag, final LmlParser parser, final ObjectSet<String> processedAttributes, final boolean throwExceptionIfAttributeUnknown) { if (GdxMaps.isEmpty(tag.getNamedAttributes())) { return; } final LmlSynt...
[ "public", "static", "<", "Type", ">", "void", "processAttributes", "(", "final", "Type", "widget", ",", "final", "LmlTag", "tag", ",", "final", "LmlParser", "parser", ",", "final", "ObjectSet", "<", "String", ">", "processedAttributes", ",", "final", "boolean"...
Utility method that processes all named attributes of the selected type. @param widget widget (validator, actor - processed element) that will be used to process attributes. @param tag contains attributes. @param parser will be used to parse attributes. @param processedAttributes already processed attribute names. The...
[ "Utility", "method", "that", "processes", "all", "named", "attributes", "of", "the", "selected", "type", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/util/LmlUtilities.java#L431-L455
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/tag/builder/FloatRangeLmlActorBuilder.java
FloatRangeLmlActorBuilder.validateRange
public void validateRange(final LmlParser parser) { if (min >= max || stepSize > max - min || value < min || value > max || stepSize <= 0f) { parser.throwError( "Range widget not properly constructed. Min value has to be lower than max and step size cannot be higher than the diff...
java
public void validateRange(final LmlParser parser) { if (min >= max || stepSize > max - min || value < min || value > max || stepSize <= 0f) { parser.throwError( "Range widget not properly constructed. Min value has to be lower than max and step size cannot be higher than the diff...
[ "public", "void", "validateRange", "(", "final", "LmlParser", "parser", ")", "{", "if", "(", "min", ">=", "max", "||", "stepSize", ">", "max", "-", "min", "||", "value", "<", "min", "||", "value", ">", "max", "||", "stepSize", "<=", "0f", ")", "{", ...
MUST be called before using range's numeric values. @param parser used to throw exception if range is invalid.
[ "MUST", "be", "called", "before", "using", "range", "s", "numeric", "values", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/tag/builder/FloatRangeLmlActorBuilder.java#L17-L22
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java
InterfaceService.addViewActionContainer
public void addViewActionContainer(final String actionContainerId, final ActionContainer actionContainer) { parser.getData().addActionContainer(actionContainerId, actionContainer); }
java
public void addViewActionContainer(final String actionContainerId, final ActionContainer actionContainer) { parser.getData().addActionContainer(actionContainerId, actionContainer); }
[ "public", "void", "addViewActionContainer", "(", "final", "String", "actionContainerId", ",", "final", "ActionContainer", "actionContainer", ")", "{", "parser", ".", "getData", "(", ")", ".", "addActionContainer", "(", "actionContainerId", ",", "actionContainer", ")",...
Registers an action container globally for all views. @param actionContainerId ID of the action container as it appears in the views. @param actionContainer contains view actions.
[ "Registers", "an", "action", "container", "globally", "for", "all", "views", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java#L134-L136
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java
InterfaceService.addViewAction
public void addViewAction(final String actionId, final ActorConsumer<?, ?> action) { parser.getData().addActorConsumer(actionId, action); }
java
public void addViewAction(final String actionId, final ActorConsumer<?, ?> action) { parser.getData().addActorConsumer(actionId, action); }
[ "public", "void", "addViewAction", "(", "final", "String", "actionId", ",", "final", "ActorConsumer", "<", "?", ",", "?", ">", "action", ")", "{", "parser", ".", "getData", "(", ")", ".", "addActorConsumer", "(", "actionId", ",", "action", ")", ";", "}" ...
Registers an action globally for all views. @param actionId ID of the action. @param action will be available in views with the selected ID.
[ "Registers", "an", "action", "globally", "for", "all", "views", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java#L142-L144
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java
InterfaceService.registerController
public void registerController(final Class<?> mappedControllerClass, final ViewController controller) { controllers.put(mappedControllerClass, controller); if (Strings.isNotEmpty(controller.getViewId())) { parser.getData().addActorConsumer(SCREEN_TRANSITION_ACTION_PREFIX + controller.getView...
java
public void registerController(final Class<?> mappedControllerClass, final ViewController controller) { controllers.put(mappedControllerClass, controller); if (Strings.isNotEmpty(controller.getViewId())) { parser.getData().addActorConsumer(SCREEN_TRANSITION_ACTION_PREFIX + controller.getView...
[ "public", "void", "registerController", "(", "final", "Class", "<", "?", ">", "mappedControllerClass", ",", "final", "ViewController", "controller", ")", "{", "controllers", ".", "put", "(", "mappedControllerClass", ",", "controller", ")", ";", "if", "(", "Strin...
Allows to manually register a managed controller. For internal use mostly. @param mappedControllerClass class with which the controller is accessible. This does not have to be controller's actual class. @param controller controller implementation, managing a single view.
[ "Allows", "to", "manually", "register", "a", "managed", "controller", ".", "For", "internal", "use", "mostly", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java#L174-L180
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java
InterfaceService.showDialog
public void showDialog(final Class<?> dialogControllerClass) { if (currentController != null) { dialogControllers.get(dialogControllerClass).show(currentController.getStage()); } }
java
public void showDialog(final Class<?> dialogControllerClass) { if (currentController != null) { dialogControllers.get(dialogControllerClass).show(currentController.getStage()); } }
[ "public", "void", "showDialog", "(", "final", "Class", "<", "?", ">", "dialogControllerClass", ")", "{", "if", "(", "currentController", "!=", "null", ")", "{", "dialogControllers", ".", "get", "(", "dialogControllerClass", ")", ".", "show", "(", "currentContr...
Allows to show a globally registered dialog. @param dialogControllerClass class managing a single dialog.
[ "Allows", "to", "show", "a", "globally", "registered", "dialog", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java#L314-L318
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java
InterfaceService.initiateAllControllers
public void initiateAllControllers() { for (final ViewController controller : controllers.values()) { initiateView(controller); } for (final ViewDialogController controller : dialogControllers.values()) { if (controller instanceof AnnotatedViewDialogController) { ...
java
public void initiateAllControllers() { for (final ViewController controller : controllers.values()) { initiateView(controller); } for (final ViewDialogController controller : dialogControllers.values()) { if (controller instanceof AnnotatedViewDialogController) { ...
[ "public", "void", "initiateAllControllers", "(", ")", "{", "for", "(", "final", "ViewController", "controller", ":", "controllers", ".", "values", "(", ")", ")", "{", "initiateView", "(", "controller", ")", ";", "}", "for", "(", "final", "ViewDialogController"...
Forces eager initiation of all views managed by registered controllers. Initiates dialogs that cache and reuse their dialog actor instance.
[ "Forces", "eager", "initiation", "of", "all", "views", "managed", "by", "registered", "controllers", ".", "Initiates", "dialogs", "that", "cache", "and", "reuse", "their", "dialog", "actor", "instance", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java#L332-L344
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java
InterfaceService.reload
public void reload() { currentController .hide(Actions.sequence(hidingActionProvider.provideAction(currentController, currentController), Actions.run(CommonActionRunnables.getActionPosterRunnable(getViewReloadingRunnable())))); }
java
public void reload() { currentController .hide(Actions.sequence(hidingActionProvider.provideAction(currentController, currentController), Actions.run(CommonActionRunnables.getActionPosterRunnable(getViewReloadingRunnable())))); }
[ "public", "void", "reload", "(", ")", "{", "currentController", ".", "hide", "(", "Actions", ".", "sequence", "(", "hidingActionProvider", ".", "provideAction", "(", "currentController", ",", "currentController", ")", ",", "Actions", ".", "run", "(", "CommonActi...
Hides current view, destroys all screens and shows the recreated current view. Note that it won't recreate all views that were previously initiated, as views are constructed on demand. @see #initiateAllControllers()
[ "Hides", "current", "view", "destroys", "all", "screens", "and", "shows", "the", "recreated", "current", "view", ".", "Note", "that", "it", "won", "t", "recreate", "all", "views", "that", "were", "previously", "initiated", "as", "views", "are", "constructed", ...
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java#L382-L386
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java
InterfaceService.resize
public void resize(final int width, final int height) { if (currentController != null) { currentController.resize(width, height); } messageDispatcher.postMessage(AutumnMessage.GAME_RESIZED); }
java
public void resize(final int width, final int height) { if (currentController != null) { currentController.resize(width, height); } messageDispatcher.postMessage(AutumnMessage.GAME_RESIZED); }
[ "public", "void", "resize", "(", "final", "int", "width", ",", "final", "int", "height", ")", "{", "if", "(", "currentController", "!=", "null", ")", "{", "currentController", ".", "resize", "(", "width", ",", "height", ")", ";", "}", "messageDispatcher", ...
Resizes the current view, if present. @param width new width of the screen. @param height new height of the screen.
[ "Resizes", "the", "current", "view", "if", "present", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/InterfaceService.java#L487-L492
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/collection/lazy/LazyObjectMap.java
LazyObjectMap.get
@Override @Deprecated public Value get(final Key key, final Value defaultValue) { return super.get(key, defaultValue); }
java
@Override @Deprecated public Value get(final Key key, final Value defaultValue) { return super.get(key, defaultValue); }
[ "@", "Override", "@", "Deprecated", "public", "Value", "get", "(", "final", "Key", "key", ",", "final", "Value", "defaultValue", ")", "{", "return", "super", ".", "get", "(", "key", ",", "defaultValue", ")", ";", "}" ]
LazyObjectMap initiates values on access. No need for default values, as nulls are impossible as long as the provided is correctly implemented and nulls are not put into the map. @param key selected key. @param defaultValue returned if no value is set for the key.
[ "LazyObjectMap", "initiates", "values", "on", "access", ".", "No", "need", "for", "default", "values", "as", "nulls", "are", "impossible", "as", "long", "as", "the", "provided", "is", "correctly", "implemented", "and", "nulls", "are", "not", "put", "into", "...
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/collection/lazy/LazyObjectMap.java#L165-L169
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java
MusicService.setMusicVolumeFromPreferences
public void setMusicVolumeFromPreferences(final String preferences, final String preferenceName, final float defaultValue) { musicPreferences = preferences; musicVolumePreferenceName = preferenceName; setMusicVolume(readFromPreferences(preferences, preferenceName, defaultValue)); ...
java
public void setMusicVolumeFromPreferences(final String preferences, final String preferenceName, final float defaultValue) { musicPreferences = preferences; musicVolumePreferenceName = preferenceName; setMusicVolume(readFromPreferences(preferences, preferenceName, defaultValue)); ...
[ "public", "void", "setMusicVolumeFromPreferences", "(", "final", "String", "preferences", ",", "final", "String", "preferenceName", ",", "final", "float", "defaultValue", ")", "{", "musicPreferences", "=", "preferences", ";", "musicVolumePreferenceName", "=", "preferenc...
Sets the current music volume according to the values stored in preferences. Mostly for internal use. @param preferences path to the preferences. Will be set as global music preferences path. @param preferenceName name of the volume preference. @param defaultValue used if preference is not set.
[ "Sets", "the", "current", "music", "volume", "according", "to", "the", "values", "stored", "in", "preferences", ".", "Mostly", "for", "internal", "use", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java#L134-L139
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java
MusicService.setMusicEnabledFromPreferences
public void setMusicEnabledFromPreferences(final String preferences, final String preferenceName, final boolean defaultValue) { musicPreferences = preferences; musicEnabledPreferenceName = preferenceName; setMusicEnabled(readFromPreferences(preferences, preferenceName, defaultValue))...
java
public void setMusicEnabledFromPreferences(final String preferences, final String preferenceName, final boolean defaultValue) { musicPreferences = preferences; musicEnabledPreferenceName = preferenceName; setMusicEnabled(readFromPreferences(preferences, preferenceName, defaultValue))...
[ "public", "void", "setMusicEnabledFromPreferences", "(", "final", "String", "preferences", ",", "final", "String", "preferenceName", ",", "final", "boolean", "defaultValue", ")", "{", "musicPreferences", "=", "preferences", ";", "musicEnabledPreferenceName", "=", "prefe...
Sets the current music state according to the value stored in preferences. Mostly for internal use. @param preferences path to the preferences. Will be set as global music preferences path. @param preferenceName name of the state preference. @param defaultValue used if preference is not set.
[ "Sets", "the", "current", "music", "state", "according", "to", "the", "value", "stored", "in", "preferences", ".", "Mostly", "for", "internal", "use", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java#L146-L151
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java
MusicService.setSoundEnabledFromPreferences
public void setSoundEnabledFromPreferences(final String preferences, final String preferenceName, final boolean defaultValue) { musicPreferences = preferences; soundEnabledPreferenceName = preferenceName; setSoundEnabled(readFromPreferences(preferences, preferenceName, defaultValue))...
java
public void setSoundEnabledFromPreferences(final String preferences, final String preferenceName, final boolean defaultValue) { musicPreferences = preferences; soundEnabledPreferenceName = preferenceName; setSoundEnabled(readFromPreferences(preferences, preferenceName, defaultValue))...
[ "public", "void", "setSoundEnabledFromPreferences", "(", "final", "String", "preferences", ",", "final", "String", "preferenceName", ",", "final", "boolean", "defaultValue", ")", "{", "musicPreferences", "=", "preferences", ";", "soundEnabledPreferenceName", "=", "prefe...
Sets the current sound state according to the value stored in preferences. Mostly for internal use. @param preferences path to the preferences. Will be set as global music preferences path. @param preferenceName name of the state preference. @param defaultValue used if preference is not set.
[ "Sets", "the", "current", "sound", "state", "according", "to", "the", "value", "stored", "in", "preferences", ".", "Mostly", "for", "internal", "use", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java#L175-L180
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java
MusicService.setSoundVolumeFromPreferences
public void setSoundVolumeFromPreferences(final String preferences, final String preferenceName, final float defaultValue) { musicPreferences = preferences; soundVolumePreferenceName = preferenceName; setSoundVolume(readFromPreferences(preferences, preferenceName, defaultValue)); ...
java
public void setSoundVolumeFromPreferences(final String preferences, final String preferenceName, final float defaultValue) { musicPreferences = preferences; soundVolumePreferenceName = preferenceName; setSoundVolume(readFromPreferences(preferences, preferenceName, defaultValue)); ...
[ "public", "void", "setSoundVolumeFromPreferences", "(", "final", "String", "preferences", ",", "final", "String", "preferenceName", ",", "final", "float", "defaultValue", ")", "{", "musicPreferences", "=", "preferences", ";", "soundVolumePreferenceName", "=", "preferenc...
Sets the current sound volume according to the values stored in preferences. Mostly for internal use. @param preferences path to the preferences. Will be set as global music preferences path. @param preferenceName name of the volume preference. @param defaultValue used if preference is not set.
[ "Sets", "the", "current", "sound", "volume", "according", "to", "the", "values", "stored", "in", "preferences", ".", "Mostly", "for", "internal", "use", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java#L192-L197
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java
MusicService.saveMusicPreferences
public void saveMusicPreferences(final boolean flush) { if (Strings.isNotEmpty(musicPreferences)) { if (Strings.isNotEmpty(musicVolumePreferenceName)) { saveInPreferences(musicPreferences, musicVolumePreferenceName, musicVolume); } if (Strings.isNotEmpty(music...
java
public void saveMusicPreferences(final boolean flush) { if (Strings.isNotEmpty(musicPreferences)) { if (Strings.isNotEmpty(musicVolumePreferenceName)) { saveInPreferences(musicPreferences, musicVolumePreferenceName, musicVolume); } if (Strings.isNotEmpty(music...
[ "public", "void", "saveMusicPreferences", "(", "final", "boolean", "flush", ")", "{", "if", "(", "Strings", ".", "isNotEmpty", "(", "musicPreferences", ")", ")", "{", "if", "(", "Strings", ".", "isNotEmpty", "(", "musicVolumePreferenceName", ")", ")", "{", "...
Saves music volume and state in preferences. @param flush if true, preferences will be truly saved - otherwise it just sets them in the preferences map.
[ "Saves", "music", "volume", "and", "state", "in", "preferences", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java#L210-L222
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java
MusicService.saveSoundPreferences
public void saveSoundPreferences(final boolean flush) { if (Strings.isNotEmpty(musicPreferences)) { if (Strings.isNotEmpty(soundVolumePreferenceName)) { saveInPreferences(musicPreferences, soundVolumePreferenceName, soundVolume); } if (Strings.isNotEmpty(sound...
java
public void saveSoundPreferences(final boolean flush) { if (Strings.isNotEmpty(musicPreferences)) { if (Strings.isNotEmpty(soundVolumePreferenceName)) { saveInPreferences(musicPreferences, soundVolumePreferenceName, soundVolume); } if (Strings.isNotEmpty(sound...
[ "public", "void", "saveSoundPreferences", "(", "final", "boolean", "flush", ")", "{", "if", "(", "Strings", ".", "isNotEmpty", "(", "musicPreferences", ")", ")", "{", "if", "(", "Strings", ".", "isNotEmpty", "(", "soundVolumePreferenceName", ")", ")", "{", "...
Saves sound volume and state in preferences. @param flush if true, preferences will be truly saved - otherwise it just sets them in the preferences map.
[ "Saves", "sound", "volume", "and", "state", "in", "preferences", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/sfx/MusicService.java#L227-L239
train
czyzby/gdx-lml
autumn/natives/gwt/src/main/java/com/github/czyzby/autumn/gwt/reflection/generator/ReflectionPoolGenerator.java
ReflectionPoolGenerator.findReflectedClasses
private Set<JType> findReflectedClasses(final GeneratorContext context, final TypeOracle typeOracle, final TreeLogger logger) throws UnableToCompleteException { final Set<JType> types = new HashSet<JType>(); final JPackage[] packages = typeOracle.getPackages(); // gather all ty...
java
private Set<JType> findReflectedClasses(final GeneratorContext context, final TypeOracle typeOracle, final TreeLogger logger) throws UnableToCompleteException { final Set<JType> types = new HashSet<JType>(); final JPackage[] packages = typeOracle.getPackages(); // gather all ty...
[ "private", "Set", "<", "JType", ">", "findReflectedClasses", "(", "final", "GeneratorContext", "context", ",", "final", "TypeOracle", "typeOracle", ",", "final", "TreeLogger", "logger", ")", "throws", "UnableToCompleteException", "{", "final", "Set", "<", "JType", ...
LibGDX code goes here. Slightly modified, refactored and without unnecessary operations.
[ "LibGDX", "code", "goes", "here", ".", "Slightly", "modified", "refactored", "and", "without", "unnecessary", "operations", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/autumn/natives/gwt/src/main/java/com/github/czyzby/autumn/gwt/reflection/generator/ReflectionPoolGenerator.java#L78-L122
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java
DefaultLmlParser.parse
protected Array<Actor> parse() { actors = GdxArrays.newArray(Actor.class); invokePreListeners(actors); final StringBuilder builder = new StringBuilder(); while (templateReader.hasNextCharacter()) { final char character = templateReader.nextCharacter(); if (charact...
java
protected Array<Actor> parse() { actors = GdxArrays.newArray(Actor.class); invokePreListeners(actors); final StringBuilder builder = new StringBuilder(); while (templateReader.hasNextCharacter()) { final char character = templateReader.nextCharacter(); if (charact...
[ "protected", "Array", "<", "Actor", ">", "parse", "(", ")", "{", "actors", "=", "GdxArrays", ".", "newArray", "(", "Actor", ".", "class", ")", ";", "invokePreListeners", "(", "actors", ")", ";", "final", "StringBuilder", "builder", "=", "new", "StringBuild...
Does the actual parsing @return actor parsed from LML template currently stored in the template reader.
[ "Does", "the", "actual", "parsing" ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java#L119-L149
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java
DefaultLmlParser.processArgument
private void processArgument() { final StringBuilder argumentBuilder = new StringBuilder(); while (templateReader.hasNextCharacter()) { final char argumentCharacter = templateReader.nextCharacter(); if (argumentCharacter == syntax.getArgumentClosing()) { final Str...
java
private void processArgument() { final StringBuilder argumentBuilder = new StringBuilder(); while (templateReader.hasNextCharacter()) { final char argumentCharacter = templateReader.nextCharacter(); if (argumentCharacter == syntax.getArgumentClosing()) { final Str...
[ "private", "void", "processArgument", "(", ")", "{", "final", "StringBuilder", "argumentBuilder", "=", "new", "StringBuilder", "(", ")", ";", "while", "(", "templateReader", ".", "hasNextCharacter", "(", ")", ")", "{", "final", "char", "argumentCharacter", "=", ...
Found an argument opening sign. Have to find argument's name and replace it in the template.
[ "Found", "an", "argument", "opening", "sign", ".", "Have", "to", "find", "argument", "s", "name", "and", "replace", "it", "in", "the", "template", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java#L152-L172
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java
DefaultLmlParser.processComment
private void processComment() { templateReader.nextCharacter(); // Burning comment opening char. if (templateReader.startsWith(syntax.getDocumentTypeOpening())) { processSchemaComment(); return; } else if (nestedComments) { processNestedComment(); ...
java
private void processComment() { templateReader.nextCharacter(); // Burning comment opening char. if (templateReader.startsWith(syntax.getDocumentTypeOpening())) { processSchemaComment(); return; } else if (nestedComments) { processNestedComment(); ...
[ "private", "void", "processComment", "(", ")", "{", "templateReader", ".", "nextCharacter", "(", ")", ";", "// Burning comment opening char.", "if", "(", "templateReader", ".", "startsWith", "(", "syntax", ".", "getDocumentTypeOpening", "(", ")", ")", ")", "{", ...
Found an open tag starting with comment sign. Burning through characters up to the comment's end.
[ "Found", "an", "open", "tag", "starting", "with", "comment", "sign", ".", "Burning", "through", "characters", "up", "to", "the", "comment", "s", "end", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java#L226-L244
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java
DefaultLmlParser.processSchemaComment
private void processSchemaComment() { // Removing DOCTYPE: burnCharacters(syntax.getDocumentTypeOpening().length()); int tagsOpened = 1; while (templateReader.hasNextCharacter()) { final char character = templateReader.nextCharacter(); // Schema comment can define...
java
private void processSchemaComment() { // Removing DOCTYPE: burnCharacters(syntax.getDocumentTypeOpening().length()); int tagsOpened = 1; while (templateReader.hasNextCharacter()) { final char character = templateReader.nextCharacter(); // Schema comment can define...
[ "private", "void", "processSchemaComment", "(", ")", "{", "// Removing DOCTYPE:", "burnCharacters", "(", "syntax", ".", "getDocumentTypeOpening", "(", ")", ".", "length", "(", ")", ")", ";", "int", "tagsOpened", "=", "1", ";", "while", "(", "templateReader", "...
Found a comment starting with DOCTYPE. Burning through the characters.
[ "Found", "a", "comment", "starting", "with", "DOCTYPE", ".", "Burning", "through", "the", "characters", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java#L247-L262
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java
DefaultLmlParser.processNestedComment
private void processNestedComment() { int nestedCommentsAmount = 1; // Starting with just the initial comment. while (templateReader.hasNextCharacter()) { final char commentCharacter = templateReader.nextCharacter(); if (isCommentClosingMarker(commentCharacter) && templateReader....
java
private void processNestedComment() { int nestedCommentsAmount = 1; // Starting with just the initial comment. while (templateReader.hasNextCharacter()) { final char commentCharacter = templateReader.nextCharacter(); if (isCommentClosingMarker(commentCharacter) && templateReader....
[ "private", "void", "processNestedComment", "(", ")", "{", "int", "nestedCommentsAmount", "=", "1", ";", "// Starting with just the initial comment.", "while", "(", "templateReader", ".", "hasNextCharacter", "(", ")", ")", "{", "final", "char", "commentCharacter", "=",...
Found an open tag starting with comment sign and nested comments are on. Burning through characters up to the comment's end, honoring nested, commented-out comments.
[ "Found", "an", "open", "tag", "starting", "with", "comment", "sign", "and", "nested", "comments", "are", "on", ".", "Burning", "through", "characters", "up", "to", "the", "comment", "s", "end", "honoring", "nested", "commented", "-", "out", "comments", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java#L266-L286
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java
DefaultLmlParser.processTag
private void processTag(final StringBuilder builder) { boolean started = false; while (templateReader.hasNextCharacter()) { final char tagCharacter = templateReader.nextCharacter(); // Stripping whitespaces at the beginning of the tag data: if (!started && Strings.isW...
java
private void processTag(final StringBuilder builder) { boolean started = false; while (templateReader.hasNextCharacter()) { final char tagCharacter = templateReader.nextCharacter(); // Stripping whitespaces at the beginning of the tag data: if (!started && Strings.isW...
[ "private", "void", "processTag", "(", "final", "StringBuilder", "builder", ")", "{", "boolean", "started", "=", "false", ";", "while", "(", "templateReader", ".", "hasNextCharacter", "(", ")", ")", "{", "final", "char", "tagCharacter", "=", "templateReader", "...
Found an open tag that is not a comment. Collecting whole tag data. @param builder will be used to collect data.
[ "Found", "an", "open", "tag", "that", "is", "not", "a", "comment", ".", "Collecting", "whole", "tag", "data", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlParser.java#L291-L315
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/attribute/table/cell/AbstractCellLmlAttribute.java
AbstractCellLmlAttribute.processForActor
protected void processForActor(final LmlParser parser, final LmlTag tag, final Actor actor, final String rawAttributeData) { parser.throwErrorIfStrict("\"" + tag.getTagName() + "\" tag has a table cell attribute, but is not directly in a table. Cannot set table cell attribute value w...
java
protected void processForActor(final LmlParser parser, final LmlTag tag, final Actor actor, final String rawAttributeData) { parser.throwErrorIfStrict("\"" + tag.getTagName() + "\" tag has a table cell attribute, but is not directly in a table. Cannot set table cell attribute value w...
[ "protected", "void", "processForActor", "(", "final", "LmlParser", "parser", ",", "final", "LmlTag", "tag", ",", "final", "Actor", "actor", ",", "final", "String", "rawAttributeData", ")", "{", "parser", ".", "throwErrorIfStrict", "(", "\"\\\"\"", "+", "tag", ...
This method is called if the actor is not in a cell. It should set the property in the actor itself, provided that its correct and can be applied. By default, throws an exception if the parser is strict. @param parser handles LML template parsing. @param tag contains raw tag data. Allows to access actor's parent. @par...
[ "This", "method", "is", "called", "if", "the", "actor", "is", "not", "in", "a", "cell", ".", "It", "should", "set", "the", "property", "in", "the", "actor", "itself", "provided", "that", "its", "correct", "and", "can", "be", "applied", ".", "By", "defa...
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/attribute/table/cell/AbstractCellLmlAttribute.java#L54-L59
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/tag/AbstractListenerLmlTag.java
AbstractListenerLmlTag.onEvent
@Override public boolean onEvent(final LmlParser parser, final Array<Actor> parsingResult) { final ObjectMap<String, Actor> actorsByIds = parser.getActorsMappedByIds(); for (final String id : ids) { final Actor actor = actorsByIds.get(id); if (actor != null) { ...
java
@Override public boolean onEvent(final LmlParser parser, final Array<Actor> parsingResult) { final ObjectMap<String, Actor> actorsByIds = parser.getActorsMappedByIds(); for (final String id : ids) { final Actor actor = actorsByIds.get(id); if (actor != null) { ...
[ "@", "Override", "public", "boolean", "onEvent", "(", "final", "LmlParser", "parser", ",", "final", "Array", "<", "Actor", ">", "parsingResult", ")", "{", "final", "ObjectMap", "<", "String", ",", "Actor", ">", "actorsByIds", "=", "parser", ".", "getActorsMa...
Invoked after template parsing. Hooks up the listener to actors registered by "attachTo" attribute. @param parser parsed the template. @param parsingResult parsed actors. @return {@link LmlParserListener#REMOVE} by default. See {@link #setKeepListener(boolean)}.
[ "Invoked", "after", "template", "parsing", ".", "Hooks", "up", "the", "listener", "to", "actors", "registered", "by", "attachTo", "attribute", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/tag/AbstractListenerLmlTag.java#L114-L126
train
czyzby/gdx-lml
websocket/src/main/java/com/github/czyzby/websocket/impl/AbstractWebSocket.java
AbstractWebSocket.postCloseEvent
protected void postCloseEvent(final WebSocketCloseCode closeCode, final String reason) { for (final WebSocketListener listener : listeners) { if (listener.onClose(this, closeCode, reason)) { break; } } }
java
protected void postCloseEvent(final WebSocketCloseCode closeCode, final String reason) { for (final WebSocketListener listener : listeners) { if (listener.onClose(this, closeCode, reason)) { break; } } }
[ "protected", "void", "postCloseEvent", "(", "final", "WebSocketCloseCode", "closeCode", ",", "final", "String", "reason", ")", "{", "for", "(", "final", "WebSocketListener", "listener", ":", "listeners", ")", "{", "if", "(", "listener", ".", "onClose", "(", "t...
Listeners will be notified about socket closing. @param closeCode closing code. @param reason optional closing reason.
[ "Listeners", "will", "be", "notified", "about", "socket", "closing", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/websocket/src/main/java/com/github/czyzby/websocket/impl/AbstractWebSocket.java#L74-L80
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/AbstractLmlView.java
AbstractLmlView.resize
public void resize(final int width, final int height, final boolean centerCamera) { stage.getViewport().update(width, height, centerCamera); }
java
public void resize(final int width, final int height, final boolean centerCamera) { stage.getViewport().update(width, height, centerCamera); }
[ "public", "void", "resize", "(", "final", "int", "width", ",", "final", "int", "height", ",", "final", "boolean", "centerCamera", ")", "{", "stage", ".", "getViewport", "(", ")", ".", "update", "(", "width", ",", "height", ",", "centerCamera", ")", ";", ...
Updates stage's viewport. @param width new width of the screen. @param height new height of the screen. @param centerCamera false by default. Some viewports seem to require it to be true for proper behavior ( {@link com.badlogic.gdx.utils.viewport.ScreenViewport}, for example).
[ "Updates", "stage", "s", "viewport", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/AbstractLmlView.java#L63-L65
train
czyzby/gdx-lml
lml-uedi/src/main/java/com/github/czyzby/lml/uedi/i18n/I18NBundleProvider.java
I18NBundleProvider.fill
public void fill(final LmlParser parser) { this.parser = parser; for (final Entry<String, I18NBundle> bundle : bundles) { parser.getData().addI18nBundle(bundle.key, bundle.value); if (defaultBundle.equals(bundle.key)) { parser.getData().setDefaultI18nBundle(bundle...
java
public void fill(final LmlParser parser) { this.parser = parser; for (final Entry<String, I18NBundle> bundle : bundles) { parser.getData().addI18nBundle(bundle.key, bundle.value); if (defaultBundle.equals(bundle.key)) { parser.getData().setDefaultI18nBundle(bundle...
[ "public", "void", "fill", "(", "final", "LmlParser", "parser", ")", "{", "this", ".", "parser", "=", "parser", ";", "for", "(", "final", "Entry", "<", "String", ",", "I18NBundle", ">", "bundle", ":", "bundles", ")", "{", "parser", ".", "getData", "(", ...
Should be called after bundles are loaded. @param parser will have the bundles attached in its parsing data. Will be updated on bundle reloads.
[ "Should", "be", "called", "after", "bundles", "are", "loaded", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml-uedi/src/main/java/com/github/czyzby/lml/uedi/i18n/I18NBundleProvider.java#L141-L149
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java
LssParser.parseNames
protected void parseNames() { while (reader.hasNextCharacter()) { final char character = next(); if (Strings.isWhitespace(character)) { addName(); continue; } else if (character == blockOpening) { addName(); brea...
java
protected void parseNames() { while (reader.hasNextCharacter()) { final char character = next(); if (Strings.isWhitespace(character)) { addName(); continue; } else if (character == blockOpening) { addName(); brea...
[ "protected", "void", "parseNames", "(", ")", "{", "while", "(", "reader", ".", "hasNextCharacter", "(", ")", ")", "{", "final", "char", "character", "=", "next", "(", ")", ";", "if", "(", "Strings", ".", "isWhitespace", "(", "character", ")", ")", "{",...
Parses names proceeding styles block.
[ "Parses", "names", "proceeding", "styles", "block", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java#L83-L99
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java
LssParser.addName
protected void addName() { if (Strings.isNotEmpty(builder)) { int endOffset = 0; if (Strings.endsWith(builder, tagSeparator)) { // Ends with ','. endOffset = 1; } if (Strings.startsWith(builder, inheritanceMarker)) { // Starts with '.'. ...
java
protected void addName() { if (Strings.isNotEmpty(builder)) { int endOffset = 0; if (Strings.endsWith(builder, tagSeparator)) { // Ends with ','. endOffset = 1; } if (Strings.startsWith(builder, inheritanceMarker)) { // Starts with '.'. ...
[ "protected", "void", "addName", "(", ")", "{", "if", "(", "Strings", ".", "isNotEmpty", "(", "builder", ")", ")", "{", "int", "endOffset", "=", "0", ";", "if", "(", "Strings", ".", "endsWith", "(", "builder", ",", "tagSeparator", ")", ")", "{", "// E...
Appends tag or inheritance name from the current builder data.
[ "Appends", "tag", "or", "inheritance", "name", "from", "the", "current", "builder", "data", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java#L102-L115
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java
LssParser.parseAttributes
protected void parseAttributes() { burnWhitespaces(); attribute = null; while (reader.hasNextCharacter()) { char character = reader.peekCharacter(); if (Strings.isNewLine(character) && (attribute != null || Strings.isNotEmpty(builder))) { throwException("E...
java
protected void parseAttributes() { burnWhitespaces(); attribute = null; while (reader.hasNextCharacter()) { char character = reader.peekCharacter(); if (Strings.isNewLine(character) && (attribute != null || Strings.isNotEmpty(builder))) { throwException("E...
[ "protected", "void", "parseAttributes", "(", ")", "{", "burnWhitespaces", "(", ")", ";", "attribute", "=", "null", ";", "while", "(", "reader", ".", "hasNextCharacter", "(", ")", ")", "{", "char", "character", "=", "reader", ".", "peekCharacter", "(", ")",...
Parses attributes block.
[ "Parses", "attributes", "block", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java#L118-L150
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java
LssParser.addAttributeName
protected void addAttributeName() { if (Strings.isNotEmpty(builder)) { attribute = builder.toString(); Strings.clearBuilder(builder); } }
java
protected void addAttributeName() { if (Strings.isNotEmpty(builder)) { attribute = builder.toString(); Strings.clearBuilder(builder); } }
[ "protected", "void", "addAttributeName", "(", ")", "{", "if", "(", "Strings", ".", "isNotEmpty", "(", "builder", ")", ")", "{", "attribute", "=", "builder", ".", "toString", "(", ")", ";", "Strings", ".", "clearBuilder", "(", "builder", ")", ";", "}", ...
Caches currently parsed attribute name.
[ "Caches", "currently", "parsed", "attribute", "name", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java#L153-L158
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java
LssParser.addAttribute
protected void addAttribute() { attributes.put(attribute, builder.toString().trim()); attribute = null; Strings.clearBuilder(builder); }
java
protected void addAttribute() { attributes.put(attribute, builder.toString().trim()); attribute = null; Strings.clearBuilder(builder); }
[ "protected", "void", "addAttribute", "(", ")", "{", "attributes", ".", "put", "(", "attribute", ",", "builder", ".", "toString", "(", ")", ".", "trim", "(", ")", ")", ";", "attribute", "=", "null", ";", "Strings", ".", "clearBuilder", "(", "builder", "...
Clears attribute cache, adds default attribute value.
[ "Clears", "attribute", "cache", "adds", "default", "attribute", "value", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java#L161-L165
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java
LssParser.processAttributes
protected void processAttributes() { for (final String tag : tags) { for (final String inherit : inherits) { styleSheet.addStyles(tag, styleSheet.getStyles(inherit)); } styleSheet.addStyles(tag, attributes); } }
java
protected void processAttributes() { for (final String tag : tags) { for (final String inherit : inherits) { styleSheet.addStyles(tag, styleSheet.getStyles(inherit)); } styleSheet.addStyles(tag, attributes); } }
[ "protected", "void", "processAttributes", "(", ")", "{", "for", "(", "final", "String", "tag", ":", "tags", ")", "{", "for", "(", "final", "String", "inherit", ":", "inherits", ")", "{", "styleSheet", ".", "addStyles", "(", "tag", ",", "styleSheet", ".",...
Adds the stored attribute values to the style sheet. Resolves inherited styles.
[ "Adds", "the", "stored", "attribute", "values", "to", "the", "style", "sheet", ".", "Resolves", "inherited", "styles", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java#L168-L175
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java
LssParser.burnWhitespaces
protected void burnWhitespaces() { while (reader.hasNextCharacter()) { final char character = reader.peekCharacter(); if (Strings.isWhitespace(character) || character == commentMarker && reader.hasNextCharacter(1) && reader.peekCharacter(1) == commentSecondary) { ...
java
protected void burnWhitespaces() { while (reader.hasNextCharacter()) { final char character = reader.peekCharacter(); if (Strings.isWhitespace(character) || character == commentMarker && reader.hasNextCharacter(1) && reader.peekCharacter(1) == commentSecondary) { ...
[ "protected", "void", "burnWhitespaces", "(", ")", "{", "while", "(", "reader", ".", "hasNextCharacter", "(", ")", ")", "{", "final", "char", "character", "=", "reader", ".", "peekCharacter", "(", ")", ";", "if", "(", "Strings", ".", "isWhitespace", "(", ...
Analyzes characters, raising the index. Stops after encountering first non-whitespace character.
[ "Analyzes", "characters", "raising", "the", "index", ".", "Stops", "after", "encountering", "first", "non", "-", "whitespace", "character", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java#L178-L188
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java
LssParser.reset
public void reset() { attribute = null; tags.clear(); inherits.clear(); attributes.clear(); Strings.clearBuilder(builder); }
java
public void reset() { attribute = null; tags.clear(); inherits.clear(); attributes.clear(); Strings.clearBuilder(builder); }
[ "public", "void", "reset", "(", ")", "{", "attribute", "=", "null", ";", "tags", ".", "clear", "(", ")", ";", "inherits", ".", "clear", "(", ")", ";", "attributes", ".", "clear", "(", ")", ";", "Strings", ".", "clearBuilder", "(", "builder", ")", "...
Clears control variables.
[ "Clears", "control", "variables", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/LssParser.java#L208-L214
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/scene2d/Actors.java
Actors.addActors
public static void addActors(final Stage stage, final Iterable<Actor> actors) { if (actors != null) { for (final Actor actor : actors) { stage.addActor(actor); } } }
java
public static void addActors(final Stage stage, final Iterable<Actor> actors) { if (actors != null) { for (final Actor actor : actors) { stage.addActor(actor); } } }
[ "public", "static", "void", "addActors", "(", "final", "Stage", "stage", ",", "final", "Iterable", "<", "Actor", ">", "actors", ")", "{", "if", "(", "actors", "!=", "null", ")", "{", "for", "(", "final", "Actor", "actor", ":", "actors", ")", "{", "st...
Null-safe utility for adding multiple actors to the stage. @param stage will contain the actors. @param actors will be added to the stage. Can be null.
[ "Null", "-", "safe", "utility", "for", "adding", "multiple", "actors", "to", "the", "stage", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/scene2d/Actors.java#L41-L47
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/scene2d/Actors.java
Actors.centerActor
public static void centerActor(final Actor actor, final Stage stage) { if (actor != null && stage != null) { actor.setPosition((int) (stage.getWidth() / 2f - actor.getWidth() / 2f), (int) (stage.getHeight() / 2f - actor.getHeight() / 2f)); } }
java
public static void centerActor(final Actor actor, final Stage stage) { if (actor != null && stage != null) { actor.setPosition((int) (stage.getWidth() / 2f - actor.getWidth() / 2f), (int) (stage.getHeight() / 2f - actor.getHeight() / 2f)); } }
[ "public", "static", "void", "centerActor", "(", "final", "Actor", "actor", ",", "final", "Stage", "stage", ")", "{", "if", "(", "actor", "!=", "null", "&&", "stage", "!=", "null", ")", "{", "actor", ".", "setPosition", "(", "(", "int", ")", "(", "sta...
Null-safe position update. @param actor will be centered on the given stage according to their sizes. Can be null. @param stage can be null.
[ "Null", "-", "safe", "position", "update", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/scene2d/Actors.java#L60-L65
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/scene2d/Actors.java
Actors.setKeyboardFocus
public static void setKeyboardFocus(final Actor actor) { if (actor != null && actor.getStage() != null) { actor.getStage().setKeyboardFocus(actor); } }
java
public static void setKeyboardFocus(final Actor actor) { if (actor != null && actor.getStage() != null) { actor.getStage().setKeyboardFocus(actor); } }
[ "public", "static", "void", "setKeyboardFocus", "(", "final", "Actor", "actor", ")", "{", "if", "(", "actor", "!=", "null", "&&", "actor", ".", "getStage", "(", ")", "!=", "null", ")", "{", "actor", ".", "getStage", "(", ")", ".", "setKeyboardFocus", "...
Null-safe method for setting keyboard focus. @param actor if is not null and has a stage, will be set as stage's keyboard focused actor.
[ "Null", "-", "safe", "method", "for", "setting", "keyboard", "focus", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/scene2d/Actors.java#L134-L138
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlTemplateReader.java
DefaultLmlTemplateReader.appendSequence
protected void appendSequence(final CharSequence sequence, final String name) { if (Strings.isNotEmpty(sequence)) { queueCurrentSequence(); setCurrentSequence(new CharSequenceEntry(sequence, name)); } }
java
protected void appendSequence(final CharSequence sequence, final String name) { if (Strings.isNotEmpty(sequence)) { queueCurrentSequence(); setCurrentSequence(new CharSequenceEntry(sequence, name)); } }
[ "protected", "void", "appendSequence", "(", "final", "CharSequence", "sequence", ",", "final", "String", "name", ")", "{", "if", "(", "Strings", ".", "isNotEmpty", "(", "sequence", ")", ")", "{", "queueCurrentSequence", "(", ")", ";", "setCurrentSequence", "("...
Actual appending method, referenced by all others. @param sequence should be appended to the reader and set as currently parsed sequence. @param name name of the template for debugging purposes.
[ "Actual", "appending", "method", "referenced", "by", "all", "others", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlTemplateReader.java#L59-L64
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/processor/LmlMacroAnnotationProcessor.java
LmlMacroAnnotationProcessor.parseMacros
@Initiate(priority = AutumnActionPriority.HIGH_PRIORITY) private void parseMacros() { if (GdxArrays.isEmpty(macros)) { return; } final LmlParser parser = interfaceService.get().getParser(); for (final FileHandle macro : macros) { parser.parseTemplate(macro); ...
java
@Initiate(priority = AutumnActionPriority.HIGH_PRIORITY) private void parseMacros() { if (GdxArrays.isEmpty(macros)) { return; } final LmlParser parser = interfaceService.get().getParser(); for (final FileHandle macro : macros) { parser.parseTemplate(macro); ...
[ "@", "Initiate", "(", "priority", "=", "AutumnActionPriority", ".", "HIGH_PRIORITY", ")", "private", "void", "parseMacros", "(", ")", "{", "if", "(", "GdxArrays", ".", "isEmpty", "(", "macros", ")", ")", "{", "return", ";", "}", "final", "LmlParser", "pars...
Parses all collected macros one by one.
[ "Parses", "all", "collected", "macros", "one", "by", "one", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/processor/LmlMacroAnnotationProcessor.java#L66-L75
train
czyzby/gdx-lml
lml-uedi/src/main/java/com/github/czyzby/lml/uedi/music/MusicService.java
MusicService.fadeOutCurrentTheme
protected void fadeOutCurrentTheme() { if (currentTheme != null && currentTheme.isPlaying()) { currentTheme.setOnCompletionListener(null); stage.addAction(Actions.sequence( VolumeAction.setVolume(currentTheme, currentTheme.getVolume(), 0f, duration, Interpolation.fade...
java
protected void fadeOutCurrentTheme() { if (currentTheme != null && currentTheme.isPlaying()) { currentTheme.setOnCompletionListener(null); stage.addAction(Actions.sequence( VolumeAction.setVolume(currentTheme, currentTheme.getVolume(), 0f, duration, Interpolation.fade...
[ "protected", "void", "fadeOutCurrentTheme", "(", ")", "{", "if", "(", "currentTheme", "!=", "null", "&&", "currentTheme", ".", "isPlaying", "(", ")", ")", "{", "currentTheme", ".", "setOnCompletionListener", "(", "null", ")", ";", "stage", ".", "addAction", ...
Smoothly fades out current theme.
[ "Smoothly", "fades", "out", "current", "theme", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml-uedi/src/main/java/com/github/czyzby/lml/uedi/music/MusicService.java#L218-L226
train
czyzby/gdx-lml
lml-uedi/src/main/java/com/github/czyzby/lml/uedi/music/MusicService.java
MusicService.fadeInCurrentTheme
protected void fadeInCurrentTheme() { if (currentTheme != null) { currentTheme.setLooping(false); currentTheme.setVolume(0f); currentTheme.setOnCompletionListener(listener); stage.addAction( VolumeAction.setVolume(currentTheme, 0f, musicVolume....
java
protected void fadeInCurrentTheme() { if (currentTheme != null) { currentTheme.setLooping(false); currentTheme.setVolume(0f); currentTheme.setOnCompletionListener(listener); stage.addAction( VolumeAction.setVolume(currentTheme, 0f, musicVolume....
[ "protected", "void", "fadeInCurrentTheme", "(", ")", "{", "if", "(", "currentTheme", "!=", "null", ")", "{", "currentTheme", ".", "setLooping", "(", "false", ")", ";", "currentTheme", ".", "setVolume", "(", "0f", ")", ";", "currentTheme", ".", "setOnCompleti...
Smoothly fades in current theme.
[ "Smoothly", "fades", "in", "current", "theme", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml-uedi/src/main/java/com/github/czyzby/lml/uedi/music/MusicService.java#L229-L238
train
czyzby/gdx-lml
lml-uedi/src/main/java/com/github/czyzby/lml/uedi/music/MusicService.java
MusicService.changeTheme
protected void changeTheme() { currentTheme = getNextTheme(currentTheme); if (currentTheme != null) { currentTheme.setLooping(false); currentTheme.setOnCompletionListener(listener); currentTheme.setVolume(musicVolume.getPercent()); currentTheme.play(); ...
java
protected void changeTheme() { currentTheme = getNextTheme(currentTheme); if (currentTheme != null) { currentTheme.setLooping(false); currentTheme.setOnCompletionListener(listener); currentTheme.setVolume(musicVolume.getPercent()); currentTheme.play(); ...
[ "protected", "void", "changeTheme", "(", ")", "{", "currentTheme", "=", "getNextTheme", "(", "currentTheme", ")", ";", "if", "(", "currentTheme", "!=", "null", ")", "{", "currentTheme", ".", "setLooping", "(", "false", ")", ";", "currentTheme", ".", "setOnCo...
Forces a change of current theme. Assumes a theme was already played - there are no smooth fade ins of any kind.
[ "Forces", "a", "change", "of", "current", "theme", ".", "Assumes", "a", "theme", "was", "already", "played", "-", "there", "are", "no", "smooth", "fade", "ins", "of", "any", "kind", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml-uedi/src/main/java/com/github/czyzby/lml/uedi/music/MusicService.java#L242-L250
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/GdxUtilities.java
GdxUtilities.clearScreen
public static void clearScreen(final float r, final float g, final float b) { Gdx.gl.glClearColor(r, g, b, 1f); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); }
java
public static void clearScreen(final float r, final float g, final float b) { Gdx.gl.glClearColor(r, g, b, 1f); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); }
[ "public", "static", "void", "clearScreen", "(", "final", "float", "r", ",", "final", "float", "g", ",", "final", "float", "b", ")", "{", "Gdx", ".", "gl", ".", "glClearColor", "(", "r", ",", "g", ",", "b", ",", "1f", ")", ";", "Gdx", ".", "gl", ...
Clears the screen with the selected color. @param r red color value. @param g green color value. @param b blue color value.
[ "Clears", "the", "screen", "with", "the", "selected", "color", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/GdxUtilities.java#L32-L35
train
czyzby/gdx-lml
autumn/src/main/java/com/github/czyzby/autumn/context/impl/method/MethodInvocation.java
MethodInvocation.invoke
public Object invoke() { try { return Reflection.invokeMethod(method, methodOwner, parameters); } catch (final Exception exception) { throw new GdxRuntimeException("Unable to invoke method: " + method.getName() + " of type: " + methodOwner + " with parameters:...
java
public Object invoke() { try { return Reflection.invokeMethod(method, methodOwner, parameters); } catch (final Exception exception) { throw new GdxRuntimeException("Unable to invoke method: " + method.getName() + " of type: " + methodOwner + " with parameters:...
[ "public", "Object", "invoke", "(", ")", "{", "try", "{", "return", "Reflection", ".", "invokeMethod", "(", "method", ",", "methodOwner", ",", "parameters", ")", ";", "}", "catch", "(", "final", "Exception", "exception", ")", "{", "throw", "new", "GdxRuntim...
Invokes the stored method with the chosen arguments. @return result of the invoked method.
[ "Invokes", "the", "stored", "method", "with", "the", "chosen", "arguments", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/autumn/src/main/java/com/github/czyzby/autumn/context/impl/method/MethodInvocation.java#L45-L52
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/viewport/LetterboxingViewport.java
LetterboxingViewport.updateScale
public void updateScale() { scaleX = targetPpiX / Gdx.graphics.getPpiX(); scaleY = targetPpiY / Gdx.graphics.getPpiY(); }
java
public void updateScale() { scaleX = targetPpiX / Gdx.graphics.getPpiX(); scaleY = targetPpiY / Gdx.graphics.getPpiY(); }
[ "public", "void", "updateScale", "(", ")", "{", "scaleX", "=", "targetPpiX", "/", "Gdx", ".", "graphics", ".", "getPpiX", "(", ")", ";", "scaleY", "=", "targetPpiY", "/", "Gdx", ".", "graphics", ".", "getPpiY", "(", ")", ";", "}" ]
Forces update of current pixel per unit ratio according to screen density. @see com.badlogic.gdx.Graphics#getDensity() @see com.badlogic.gdx.Graphics#getPpiX() @see com.badlogic.gdx.Graphics#getPpiY()
[ "Forces", "update", "of", "current", "pixel", "per", "unit", "ratio", "according", "to", "screen", "density", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/viewport/LetterboxingViewport.java#L69-L72
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/viewport/LetterboxingViewport.java
LetterboxingViewport.updateWorldSize
private void updateWorldSize(final int screenWidth, final int screenHeight) { final float width = screenWidth * scaleX; final float height = screenHeight * scaleY; final float fitHeight = width / aspectRatio; if (fitHeight > height) { setWorldSize(height * aspectRatio, height...
java
private void updateWorldSize(final int screenWidth, final int screenHeight) { final float width = screenWidth * scaleX; final float height = screenHeight * scaleY; final float fitHeight = width / aspectRatio; if (fitHeight > height) { setWorldSize(height * aspectRatio, height...
[ "private", "void", "updateWorldSize", "(", "final", "int", "screenWidth", ",", "final", "int", "screenHeight", ")", "{", "final", "float", "width", "=", "screenWidth", "*", "scaleX", ";", "final", "float", "height", "=", "screenHeight", "*", "scaleY", ";", "...
Forces update of current world size according to window size. Will try to keep the set aspect ratio. @param screenWidth current screen width. @param screenHeight current screen height.
[ "Forces", "update", "of", "current", "world", "size", "according", "to", "window", "size", ".", "Will", "try", "to", "keep", "the", "set", "aspect", "ratio", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/viewport/LetterboxingViewport.java#L89-L98
train
czyzby/gdx-lml
lml-uedi/src/main/java/com/github/czyzby/lml/uedi/LmlApplication.java
LmlApplication.setLocale
public void setLocale(final Locale locale) { if (!localePreference.isCurrent(locale)) { setView(getCurrentView(), new Action() { private boolean reloaded = false; @Override public boolean act(final float delta) { if (!reloaded) { ...
java
public void setLocale(final Locale locale) { if (!localePreference.isCurrent(locale)) { setView(getCurrentView(), new Action() { private boolean reloaded = false; @Override public boolean act(final float delta) { if (!reloaded) { ...
[ "public", "void", "setLocale", "(", "final", "Locale", "locale", ")", "{", "if", "(", "!", "localePreference", ".", "isCurrent", "(", "locale", ")", ")", "{", "setView", "(", "getCurrentView", "(", ")", ",", "new", "Action", "(", ")", "{", "private", "...
Also available as "setLocale" action in LML views. Will extract locale from actor's ID. @param locale will be set as the current application's locale. If is not equal to the current locale, will hide current view, reload all referenced {@link com.badlogic.gdx.utils.I18NBundle i18n bundles}, recreate all views and resh...
[ "Also", "available", "as", "setLocale", "action", "in", "LML", "views", ".", "Will", "extract", "locale", "from", "actor", "s", "ID", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml-uedi/src/main/java/com/github/czyzby/lml/uedi/LmlApplication.java#L156-L173
train
czyzby/gdx-lml
lml-uedi/src/main/java/com/github/czyzby/lml/uedi/LmlApplication.java
LmlApplication.addDefaultComponents
protected void addDefaultComponents() { // Creating components manually to speed up the start-up. final boolean mapSuper = context.isMapSuperTypes(); context.setMapSuperTypes(false); // Assets: final AssetManagerProvider assetManagerProvider = new AssetManagerProvider(); ...
java
protected void addDefaultComponents() { // Creating components manually to speed up the start-up. final boolean mapSuper = context.isMapSuperTypes(); context.setMapSuperTypes(false); // Assets: final AssetManagerProvider assetManagerProvider = new AssetManagerProvider(); ...
[ "protected", "void", "addDefaultComponents", "(", ")", "{", "// Creating components manually to speed up the start-up.", "final", "boolean", "mapSuper", "=", "context", ".", "isMapSuperTypes", "(", ")", ";", "context", ".", "setMapSuperTypes", "(", "false", ")", ";", ...
Registers multiple providers and singletons that produce LibGDX-related object instances.
[ "Registers", "multiple", "providers", "and", "singletons", "that", "produce", "LibGDX", "-", "related", "object", "instances", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml-uedi/src/main/java/com/github/czyzby/lml/uedi/LmlApplication.java#L181-L239
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/collection/pooled/PooledList.java
PooledList.clear
public void clear() { Node<T> node = head.next, next; size = 0; head.reset(); // Clearing references. tail = head; iterator.currentNode = head; while (node != null) { next = node.next; node.free(pool); node = next; } }
java
public void clear() { Node<T> node = head.next, next; size = 0; head.reset(); // Clearing references. tail = head; iterator.currentNode = head; while (node != null) { next = node.next; node.free(pool); node = next; } }
[ "public", "void", "clear", "(", ")", "{", "Node", "<", "T", ">", "node", "=", "head", ".", "next", ",", "next", ";", "size", "=", "0", ";", "head", ".", "reset", "(", ")", ";", "// Clearing references.", "tail", "=", "head", ";", "iterator", ".", ...
Removes all elements of the list. Frees all nodes to the pool.
[ "Removes", "all", "elements", "of", "the", "list", ".", "Frees", "all", "nodes", "to", "the", "pool", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/collection/pooled/PooledList.java#L345-L356
train
czyzby/gdx-lml
autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java
ContextInitializer.destroyInitializer
private void destroyInitializer() { GdxMaps.clearAll(fieldProcessors, methodProcessors, typeProcessors); GdxArrays.clearAll(scannedMetaAnnotations, scannedAnnotations, processors, delayedConstructions, manuallyAddedComponents, manuallyAddedProcessors); }
java
private void destroyInitializer() { GdxMaps.clearAll(fieldProcessors, methodProcessors, typeProcessors); GdxArrays.clearAll(scannedMetaAnnotations, scannedAnnotations, processors, delayedConstructions, manuallyAddedComponents, manuallyAddedProcessors); }
[ "private", "void", "destroyInitializer", "(", ")", "{", "GdxMaps", ".", "clearAll", "(", "fieldProcessors", ",", "methodProcessors", ",", "typeProcessors", ")", ";", "GdxArrays", ".", "clearAll", "(", "scannedMetaAnnotations", ",", "scannedAnnotations", ",", "proces...
Clears meta-data collections.
[ "Clears", "meta", "-", "data", "collections", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java#L389-L393
train
czyzby/gdx-lml
autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java
ContextInitializer.processType
@SuppressWarnings({ "rawtypes", "unchecked" }) // Using correct types, but wildcards fail to see that. private void processType(final Object component, final Context context, final ContextDestroyer contextDestroyer) { final com.badlogic.gdx.utils.reflect.Annotation[] annotations = getAnnotations(component.g...
java
@SuppressWarnings({ "rawtypes", "unchecked" }) // Using correct types, but wildcards fail to see that. private void processType(final Object component, final Context context, final ContextDestroyer contextDestroyer) { final com.badlogic.gdx.utils.reflect.Annotation[] annotations = getAnnotations(component.g...
[ "@", "SuppressWarnings", "(", "{", "\"rawtypes\"", ",", "\"unchecked\"", "}", ")", "// Using correct types, but wildcards fail to see that.", "private", "void", "processType", "(", "final", "Object", "component", ",", "final", "Context", "context", ",", "final", "Contex...
Processes components' class annotations. @param component its class annotations will be processed. @param context used to resolve dependencies @param contextDestroyer will register destruction callbacks.
[ "Processes", "components", "class", "annotations", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java#L545-L564
train
czyzby/gdx-lml
autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java
ContextInitializer.processMethods
private void processMethods(final Object component, final Context context, final ContextDestroyer contextDestroyer) { Class<?> componentClass = component.getClass(); while (componentClass != null && !componentClass.equals(Object.class)) { final Method[] methods = ClassReflection....
java
private void processMethods(final Object component, final Context context, final ContextDestroyer contextDestroyer) { Class<?> componentClass = component.getClass(); while (componentClass != null && !componentClass.equals(Object.class)) { final Method[] methods = ClassReflection....
[ "private", "void", "processMethods", "(", "final", "Object", "component", ",", "final", "Context", "context", ",", "final", "ContextDestroyer", "contextDestroyer", ")", "{", "Class", "<", "?", ">", "componentClass", "=", "component", ".", "getClass", "(", ")", ...
Scans class tree of component to process all its methods. @param component all methods of its class tree will be processed. @param context used to resolve dependencies. @param contextDestroyer used to register destruction callbacks.
[ "Scans", "class", "tree", "of", "component", "to", "process", "all", "its", "methods", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java#L582-L592
train
czyzby/gdx-lml
autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java
ContextInitializer.processMethods
@SuppressWarnings({ "rawtypes", "unchecked" }) // Using correct types, but wildcards fail to see that. private void processMethods(final Object component, final Method[] methods, final Context context, final ContextDestroyer contextDestroyer) { for (final Method method : methods) { f...
java
@SuppressWarnings({ "rawtypes", "unchecked" }) // Using correct types, but wildcards fail to see that. private void processMethods(final Object component, final Method[] methods, final Context context, final ContextDestroyer contextDestroyer) { for (final Method method : methods) { f...
[ "@", "SuppressWarnings", "(", "{", "\"rawtypes\"", ",", "\"unchecked\"", "}", ")", "// Using correct types, but wildcards fail to see that.", "private", "void", "processMethods", "(", "final", "Object", "component", ",", "final", "Method", "[", "]", "methods", ",", "f...
Does the actual processing of found methods. @param component owner of the methods. @param methods present in one of superclasses of the component. @param context used to resolve dependencies. @param contextDestroyer used to register destruction callbacks.
[ "Does", "the", "actual", "processing", "of", "found", "methods", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java#L600-L617
train
czyzby/gdx-lml
autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java
ContextInitializer.processFields
private void processFields(final Object component, final Context context, final ContextDestroyer contextDestroyer) { Class<?> componentClass = component.getClass(); while (componentClass != null && !componentClass.equals(Object.class)) { final Field[] fields = ClassReflection.getDeclaredFiel...
java
private void processFields(final Object component, final Context context, final ContextDestroyer contextDestroyer) { Class<?> componentClass = component.getClass(); while (componentClass != null && !componentClass.equals(Object.class)) { final Field[] fields = ClassReflection.getDeclaredFiel...
[ "private", "void", "processFields", "(", "final", "Object", "component", ",", "final", "Context", "context", ",", "final", "ContextDestroyer", "contextDestroyer", ")", "{", "Class", "<", "?", ">", "componentClass", "=", "component", ".", "getClass", "(", ")", ...
Scans class tree of component to process all its fields. @param component all fields of its class tree will be processed. @param context used to resolve dependencies. @param contextDestroyer used to register destruction callbacks.
[ "Scans", "class", "tree", "of", "component", "to", "process", "all", "its", "fields", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java#L635-L644
train
czyzby/gdx-lml
autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java
ContextInitializer.processFields
@SuppressWarnings({ "rawtypes", "unchecked" }) // Using correct types, but wildcards fail to see that. private void processFields(final Object component, final Field[] fields, final Context context, final ContextDestroyer contextDestroyer) { for (final Field field : fields) { final c...
java
@SuppressWarnings({ "rawtypes", "unchecked" }) // Using correct types, but wildcards fail to see that. private void processFields(final Object component, final Field[] fields, final Context context, final ContextDestroyer contextDestroyer) { for (final Field field : fields) { final c...
[ "@", "SuppressWarnings", "(", "{", "\"rawtypes\"", ",", "\"unchecked\"", "}", ")", "// Using correct types, but wildcards fail to see that.", "private", "void", "processFields", "(", "final", "Object", "component", ",", "final", "Field", "[", "]", "fields", ",", "fina...
Does the actual processing of found fields. @param component owner of the fields. @param fields present in one of superclasses of the component. @param context used to resolve dependencies. @param contextDestroyer used to register destruction callbacks.
[ "Does", "the", "actual", "processing", "of", "found", "fields", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/autumn/src/main/java/com/github/czyzby/autumn/context/ContextInitializer.java#L652-L669
train
czyzby/gdx-lml
websocket/natives/common/src/main/java/com/github/czyzby/websocket/impl/NvWebSocket.java
NvWebSocket.dispose
protected void dispose() { final WebSocket currentWebSocket = webSocket; if (currentWebSocket != null && currentWebSocket.isOpen()) { try { currentWebSocket.disconnect(WebSocketCloseCode.AWAY.getCode()); } catch (final Exception exception) { postEr...
java
protected void dispose() { final WebSocket currentWebSocket = webSocket; if (currentWebSocket != null && currentWebSocket.isOpen()) { try { currentWebSocket.disconnect(WebSocketCloseCode.AWAY.getCode()); } catch (final Exception exception) { postEr...
[ "protected", "void", "dispose", "(", ")", "{", "final", "WebSocket", "currentWebSocket", "=", "webSocket", ";", "if", "(", "currentWebSocket", "!=", "null", "&&", "currentWebSocket", ".", "isOpen", "(", ")", ")", "{", "try", "{", "currentWebSocket", ".", "di...
Removes current web socket instance.
[ "Removes", "current", "web", "socket", "instance", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/websocket/natives/common/src/main/java/com/github/czyzby/websocket/impl/NvWebSocket.java#L33-L42
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerActorTags
protected void registerActorTags() { addTagProvider(new ActorLmlTagProvider(), "actor", "group"); addTagProvider(new ActorStorageLmlTagProvider(), "actorStorage", "isolate"); addTagProvider(new AnimatedImageLmlTagProvider(), "animatedImage"); addTagProvider(new ButtonGroupLmlTagProvider(...
java
protected void registerActorTags() { addTagProvider(new ActorLmlTagProvider(), "actor", "group"); addTagProvider(new ActorStorageLmlTagProvider(), "actorStorage", "isolate"); addTagProvider(new AnimatedImageLmlTagProvider(), "animatedImage"); addTagProvider(new ButtonGroupLmlTagProvider(...
[ "protected", "void", "registerActorTags", "(", ")", "{", "addTagProvider", "(", "new", "ActorLmlTagProvider", "(", ")", ",", "\"actor\"", ",", "\"group\"", ")", ";", "addTagProvider", "(", "new", "ActorStorageLmlTagProvider", "(", ")", ",", "\"actorStorage\"", ","...
Registers actor-based tags that create widgets. @see #registerTags()
[ "Registers", "actor", "-", "based", "tags", "that", "create", "widgets", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L286-L316
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerMacroTags
protected void registerMacroTags() { addMacroTagProvider(new ActorLmlMacroTagProvider(), "actor"); addMacroTagProvider(new AnyNotNullLmlMacroTagProvider(), "anyNotNull", "any"); addMacroTagProvider(new ArgumentLmlMacroTagProvider(), "nls", "argument", "preference"); addMacroTagProvider(n...
java
protected void registerMacroTags() { addMacroTagProvider(new ActorLmlMacroTagProvider(), "actor"); addMacroTagProvider(new AnyNotNullLmlMacroTagProvider(), "anyNotNull", "any"); addMacroTagProvider(new ArgumentLmlMacroTagProvider(), "nls", "argument", "preference"); addMacroTagProvider(n...
[ "protected", "void", "registerMacroTags", "(", ")", "{", "addMacroTagProvider", "(", "new", "ActorLmlMacroTagProvider", "(", ")", ",", "\"actor\"", ")", ";", "addMacroTagProvider", "(", "new", "AnyNotNullLmlMacroTagProvider", "(", ")", ",", "\"anyNotNull\"", ",", "\...
Registers macro tags that manipulate templates' structures. @see #registerTags()
[ "Registers", "macro", "tags", "that", "manipulate", "templates", "structures", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L330-L367
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerBuildingAttributes
protected void registerBuildingAttributes() { // Default LmlActorBuilder: addBuildingAttributeProcessor(new SkinLmlAttribute(), "skin"); addBuildingAttributeProcessor(new StyleLmlAttribute(), "style", "class"); addBuildingAttributeProcessor(new OnResultInitialLmlAttribute(), "result", "o...
java
protected void registerBuildingAttributes() { // Default LmlActorBuilder: addBuildingAttributeProcessor(new SkinLmlAttribute(), "skin"); addBuildingAttributeProcessor(new StyleLmlAttribute(), "style", "class"); addBuildingAttributeProcessor(new OnResultInitialLmlAttribute(), "result", "o...
[ "protected", "void", "registerBuildingAttributes", "(", ")", "{", "// Default LmlActorBuilder:", "addBuildingAttributeProcessor", "(", "new", "SkinLmlAttribute", "(", ")", ",", "\"skin\"", ")", ";", "addBuildingAttributeProcessor", "(", "new", "StyleLmlAttribute", "(", ")...
Attributes used during widget creation.
[ "Attributes", "used", "during", "widget", "creation", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L403-L423
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerCommonAttributes
protected void registerCommonAttributes() { addAttributeProcessor(new ActionLmlAttribute(), "action", "onShow"); addAttributeProcessor(new ColorAlphaLmlAttribute(), "alpha", "a"); // Actor addAttributeProcessor(new ColorBlueLmlAttribute(), "blue", "b"); addAttributeProcessor(new ColorGre...
java
protected void registerCommonAttributes() { addAttributeProcessor(new ActionLmlAttribute(), "action", "onShow"); addAttributeProcessor(new ColorAlphaLmlAttribute(), "alpha", "a"); // Actor addAttributeProcessor(new ColorBlueLmlAttribute(), "blue", "b"); addAttributeProcessor(new ColorGre...
[ "protected", "void", "registerCommonAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "ActionLmlAttribute", "(", ")", ",", "\"action\"", ",", "\"onShow\"", ")", ";", "addAttributeProcessor", "(", "new", "ColorAlphaLmlAttribute", "(", ")", ",", "\"alph...
Attributes applied to all actors.
[ "Attributes", "applied", "to", "all", "actors", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L426-L463
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerListenerAttributes
protected void registerListenerAttributes() { addAttributeProcessor(new ConditionLmlAttribute(), "if"); addAttributeProcessor(new KeepListenerLmlAttribute(), "keep"); addAttributeProcessor(new ListenerIdsLmlAttribute(), "ids"); // InputListener: addAttributeProcessor(new Combined...
java
protected void registerListenerAttributes() { addAttributeProcessor(new ConditionLmlAttribute(), "if"); addAttributeProcessor(new KeepListenerLmlAttribute(), "keep"); addAttributeProcessor(new ListenerIdsLmlAttribute(), "ids"); // InputListener: addAttributeProcessor(new Combined...
[ "protected", "void", "registerListenerAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "ConditionLmlAttribute", "(", ")", ",", "\"if\"", ")", ";", "addAttributeProcessor", "(", "new", "KeepListenerLmlAttribute", "(", ")", ",", "\"keep\"", ")", ";", ...
Listener tags attributes.
[ "Listener", "tags", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L466-L473
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerAnimatedImageAttributes
protected void registerAnimatedImageAttributes() { addAttributeProcessor(new AnimationDelayLmlAttribute(), "delay"); addAttributeProcessor(new AnimationMaxDelayLmlAttribute(), "maxDelay"); addAttributeProcessor(new BackwardsLmlAttribute(), "backwards"); addAttributeProcessor(new Bouncing...
java
protected void registerAnimatedImageAttributes() { addAttributeProcessor(new AnimationDelayLmlAttribute(), "delay"); addAttributeProcessor(new AnimationMaxDelayLmlAttribute(), "maxDelay"); addAttributeProcessor(new BackwardsLmlAttribute(), "backwards"); addAttributeProcessor(new Bouncing...
[ "protected", "void", "registerAnimatedImageAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "AnimationDelayLmlAttribute", "(", ")", ",", "\"delay\"", ")", ";", "addAttributeProcessor", "(", "new", "AnimationMaxDelayLmlAttribute", "(", ")", ",", "\"maxDel...
AnimatedImage widget attributes.
[ "AnimatedImage", "widget", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L486-L494
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerContainerAttributes
protected void registerContainerAttributes() { addAttributeProcessor(new ContainerAdjustPaddingLmlAttribute(), "adjustPadding"); addAttributeProcessor(new ContainerAlignLmlAttribute(), "align"); addAttributeProcessor(new ContainerBackgroundLmlAttribute(), "bg", "background"); addAttribut...
java
protected void registerContainerAttributes() { addAttributeProcessor(new ContainerAdjustPaddingLmlAttribute(), "adjustPadding"); addAttributeProcessor(new ContainerAlignLmlAttribute(), "align"); addAttributeProcessor(new ContainerBackgroundLmlAttribute(), "bg", "background"); addAttribut...
[ "protected", "void", "registerContainerAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "ContainerAdjustPaddingLmlAttribute", "(", ")", ",", "\"adjustPadding\"", ")", ";", "addAttributeProcessor", "(", "new", "ContainerAlignLmlAttribute", "(", ")", ",", ...
Container widget attributes.
[ "Container", "widget", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L504-L525
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerHorizontalGroupAttributes
protected void registerHorizontalGroupAttributes() { addAttributeProcessor(new HorizontalGroupAlignmentLmlAttribute(), "groupAlign"); addAttributeProcessor(new HorizontalGroupFillLmlAttribute(), "groupFill"); addAttributeProcessor(new HorizontalGroupPaddingBottomLmlAttribute(), "groupPadBottom")...
java
protected void registerHorizontalGroupAttributes() { addAttributeProcessor(new HorizontalGroupAlignmentLmlAttribute(), "groupAlign"); addAttributeProcessor(new HorizontalGroupFillLmlAttribute(), "groupFill"); addAttributeProcessor(new HorizontalGroupPaddingBottomLmlAttribute(), "groupPadBottom")...
[ "protected", "void", "registerHorizontalGroupAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "HorizontalGroupAlignmentLmlAttribute", "(", ")", ",", "\"groupAlign\"", ")", ";", "addAttributeProcessor", "(", "new", "HorizontalGroupFillLmlAttribute", "(", ")",...
HorizontalGroup widget attributes.
[ "HorizontalGroup", "widget", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L534-L544
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerLabelAttributes
protected void registerLabelAttributes() { addAttributeProcessor(new EllipsisLmlAttribute(), "ellipsis"); addAttributeProcessor(new LabelAlignmentLmlAttribute(), "labelAlign", "labelAlignment"); addAttributeProcessor(new LineAlignmentLmlAttribute(), "lineAlign", "lineAlignment"); addAttr...
java
protected void registerLabelAttributes() { addAttributeProcessor(new EllipsisLmlAttribute(), "ellipsis"); addAttributeProcessor(new LabelAlignmentLmlAttribute(), "labelAlign", "labelAlignment"); addAttributeProcessor(new LineAlignmentLmlAttribute(), "lineAlign", "lineAlignment"); addAttr...
[ "protected", "void", "registerLabelAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "EllipsisLmlAttribute", "(", ")", ",", "\"ellipsis\"", ")", ";", "addAttributeProcessor", "(", "new", "LabelAlignmentLmlAttribute", "(", ")", ",", "\"labelAlign\"", ","...
Label widget attributes.
[ "Label", "widget", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L553-L559
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerListAttributes
protected void registerListAttributes() { addAttributeProcessor(new MultipleLmlAttribute(), "multiple"); addAttributeProcessor(new RangeSelectLmlAttribute(), "rangeSelect"); addAttributeProcessor(new RequiredLmlAttribute(), "required"); addAttributeProcessor(new SelectedLmlAttribute(), "...
java
protected void registerListAttributes() { addAttributeProcessor(new MultipleLmlAttribute(), "multiple"); addAttributeProcessor(new RangeSelectLmlAttribute(), "rangeSelect"); addAttributeProcessor(new RequiredLmlAttribute(), "required"); addAttributeProcessor(new SelectedLmlAttribute(), "...
[ "protected", "void", "registerListAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "MultipleLmlAttribute", "(", ")", ",", "\"multiple\"", ")", ";", "addAttributeProcessor", "(", "new", "RangeSelectLmlAttribute", "(", ")", ",", "\"rangeSelect\"", ")", ...
List widget attributes.
[ "List", "widget", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L562-L569
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerScrollBarAttributes
protected void registerScrollBarAttributes() { addAttributeProcessor(new ScrollBarsOnTopLmlAttribute(), "barsOnTop", "scrollbarsOnTop"); addAttributeProcessor(new ScrollBarsPositionsLmlAttribute(), "barsPositions", "scrollBarsPositions"); addAttributeProcessor(new ScrollCancelTouchFocusLmlAttrib...
java
protected void registerScrollBarAttributes() { addAttributeProcessor(new ScrollBarsOnTopLmlAttribute(), "barsOnTop", "scrollbarsOnTop"); addAttributeProcessor(new ScrollBarsPositionsLmlAttribute(), "barsPositions", "scrollBarsPositions"); addAttributeProcessor(new ScrollCancelTouchFocusLmlAttrib...
[ "protected", "void", "registerScrollBarAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "ScrollBarsOnTopLmlAttribute", "(", ")", ",", "\"barsOnTop\"", ",", "\"scrollbarsOnTop\"", ")", ";", "addAttributeProcessor", "(", "new", "ScrollBarsPositionsLmlAttribute...
ScrollBar widget attributes.
[ "ScrollBar", "widget", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L578-L606
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerTableAttributes
protected void registerTableAttributes() { addAttributeProcessor(new OneColumnLmlAttribute(), "oneColumn"); addAttributeProcessor(new TableAlignLmlAttribute(), "tableAlign"); addAttributeProcessor(new TableBackgroundLmlAttribute(), "bg", "background"); addAttributeProcessor(new TablePadB...
java
protected void registerTableAttributes() { addAttributeProcessor(new OneColumnLmlAttribute(), "oneColumn"); addAttributeProcessor(new TableAlignLmlAttribute(), "tableAlign"); addAttributeProcessor(new TableBackgroundLmlAttribute(), "bg", "background"); addAttributeProcessor(new TablePadB...
[ "protected", "void", "registerTableAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "OneColumnLmlAttribute", "(", ")", ",", "\"oneColumn\"", ")", ";", "addAttributeProcessor", "(", "new", "TableAlignLmlAttribute", "(", ")", ",", "\"tableAlign\"", ")", ...
Table widget attributes.
[ "Table", "widget", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L621-L632
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerCellAttributes
protected void registerCellAttributes() { addCellAttributeProcessor(new CellAlignLmlAttribute(), "align"); addCellAttributeProcessor(new CellColspanLmlAttribute(), "colspan"); addCellAttributeProcessor(new CellExpandLmlAttribute(), "expand"); addCellAttributeProcessor(new CellExpandXLmlA...
java
protected void registerCellAttributes() { addCellAttributeProcessor(new CellAlignLmlAttribute(), "align"); addCellAttributeProcessor(new CellColspanLmlAttribute(), "colspan"); addCellAttributeProcessor(new CellExpandLmlAttribute(), "expand"); addCellAttributeProcessor(new CellExpandXLmlA...
[ "protected", "void", "registerCellAttributes", "(", ")", "{", "addCellAttributeProcessor", "(", "new", "CellAlignLmlAttribute", "(", ")", ",", "\"align\"", ")", ";", "addCellAttributeProcessor", "(", "new", "CellColspanLmlAttribute", "(", ")", ",", "\"colspan\"", ")",...
Attributes available to children tags of a Table parent.
[ "Attributes", "available", "to", "children", "tags", "of", "a", "Table", "parent", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L635-L673
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerTextFieldAttributes
protected void registerTextFieldAttributes() { addAttributeProcessor(new BlinkTimeLmlAttribute(), "blink", "blinkTime"); addAttributeProcessor(new CursorLmlAttribute(), "cursor", "cursorPosition"); addAttributeProcessor(new DigitsOnlyLmlAttribute(), "digitsOnly", "numeric"); addAttribute...
java
protected void registerTextFieldAttributes() { addAttributeProcessor(new BlinkTimeLmlAttribute(), "blink", "blinkTime"); addAttributeProcessor(new CursorLmlAttribute(), "cursor", "cursorPosition"); addAttributeProcessor(new DigitsOnlyLmlAttribute(), "digitsOnly", "numeric"); addAttribute...
[ "protected", "void", "registerTextFieldAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "BlinkTimeLmlAttribute", "(", ")", ",", "\"blink\"", ",", "\"blinkTime\"", ")", ";", "addAttributeProcessor", "(", "new", "CursorLmlAttribute", "(", ")", ",", "\"...
TextField widget attributes.
[ "TextField", "widget", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L688-L701
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerVerticalGroupAttributes
protected void registerVerticalGroupAttributes() { addAttributeProcessor(new VerticalGroupAlignmentLmlAttribute(), "groupAlign"); addAttributeProcessor(new VerticalGroupFillLmlAttribute(), "groupFill"); addAttributeProcessor(new VerticalGroupPaddingBottomLmlAttribute(), "groupPadBottom"); ...
java
protected void registerVerticalGroupAttributes() { addAttributeProcessor(new VerticalGroupAlignmentLmlAttribute(), "groupAlign"); addAttributeProcessor(new VerticalGroupFillLmlAttribute(), "groupFill"); addAttributeProcessor(new VerticalGroupPaddingBottomLmlAttribute(), "groupPadBottom"); ...
[ "protected", "void", "registerVerticalGroupAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "VerticalGroupAlignmentLmlAttribute", "(", ")", ",", "\"groupAlign\"", ")", ";", "addAttributeProcessor", "(", "new", "VerticalGroupFillLmlAttribute", "(", ")", ","...
VerticalGroup widget attributes.
[ "VerticalGroup", "widget", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L725-L735
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java
DefaultLmlSyntax.registerWindowAttributes
protected void registerWindowAttributes() { addAttributeProcessor(new KeepWithinStageLmlAttribute(), "keepWithinStage", "keepWithin"); addAttributeProcessor(new ModalLmlAttribute(), "modal"); addAttributeProcessor(new MovableLmlAttribute(), "movable"); addAttributeProcessor(new Resizeabl...
java
protected void registerWindowAttributes() { addAttributeProcessor(new KeepWithinStageLmlAttribute(), "keepWithinStage", "keepWithin"); addAttributeProcessor(new ModalLmlAttribute(), "modal"); addAttributeProcessor(new MovableLmlAttribute(), "movable"); addAttributeProcessor(new Resizeabl...
[ "protected", "void", "registerWindowAttributes", "(", ")", "{", "addAttributeProcessor", "(", "new", "KeepWithinStageLmlAttribute", "(", ")", ",", "\"keepWithinStage\"", ",", "\"keepWithin\"", ")", ";", "addAttributeProcessor", "(", "new", "ModalLmlAttribute", "(", ")",...
Window widget attributes.
[ "Window", "widget", "attributes", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/DefaultLmlSyntax.java#L738-L746
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/reflection/Reflection.java
Reflection.getAnnotation
public static <Type extends Annotation> Type getAnnotation(final Field field, final Class<Type> annotationType) { if (isAnnotationPresent(field, annotationType)) { return field.getDeclaredAnnotation(annotationType).getAnnotation(annotationType); } return null; }
java
public static <Type extends Annotation> Type getAnnotation(final Field field, final Class<Type> annotationType) { if (isAnnotationPresent(field, annotationType)) { return field.getDeclaredAnnotation(annotationType).getAnnotation(annotationType); } return null; }
[ "public", "static", "<", "Type", "extends", "Annotation", ">", "Type", "getAnnotation", "(", "final", "Field", "field", ",", "final", "Class", "<", "Type", ">", "annotationType", ")", "{", "if", "(", "isAnnotationPresent", "(", "field", ",", "annotationType", ...
Utility method that allows to extract actual annotation from field, bypassing LibGDX annotation wrapper. Returns null if annotation is not present. @param field might be annotated. @param annotationType class of the annotation. @return an instance of the annotation if the field is annotated or null if not. @param <Typ...
[ "Utility", "method", "that", "allows", "to", "extract", "actual", "annotation", "from", "field", "bypassing", "LibGDX", "annotation", "wrapper", ".", "Returns", "null", "if", "annotation", "is", "not", "present", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/reflection/Reflection.java#L68-L73
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/reflection/Reflection.java
Reflection.getAnnotation
public static <Type extends Annotation> Type getAnnotation(final Class<?> fromClass, final Class<Type> annotationType) { if (ClassReflection.isAnnotationPresent(fromClass, annotationType)) { return ClassReflection.getDeclaredAnnotation(fromClass, annotationType).getAnnotation(annotationT...
java
public static <Type extends Annotation> Type getAnnotation(final Class<?> fromClass, final Class<Type> annotationType) { if (ClassReflection.isAnnotationPresent(fromClass, annotationType)) { return ClassReflection.getDeclaredAnnotation(fromClass, annotationType).getAnnotation(annotationT...
[ "public", "static", "<", "Type", "extends", "Annotation", ">", "Type", "getAnnotation", "(", "final", "Class", "<", "?", ">", "fromClass", ",", "final", "Class", "<", "Type", ">", "annotationType", ")", "{", "if", "(", "ClassReflection", ".", "isAnnotationPr...
Utility method that allows to extract actual annotation from class, bypassing LibGDX annotation wrapper. Returns null if annotation is not present. @param fromClass class that might be annotated. @param annotationType class of the annotation. @return an instance of the annotation if the class is annotated or null if n...
[ "Utility", "method", "that", "allows", "to", "extract", "actual", "annotation", "from", "class", "bypassing", "LibGDX", "annotation", "wrapper", ".", "Returns", "null", "if", "annotation", "is", "not", "present", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/reflection/Reflection.java#L91-L97
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/reflection/Reflection.java
Reflection.getAnnotation
public static <Type extends Annotation> Type getAnnotation(final Method method, final Class<Type> annotationType) { if (isAnnotationPresent(method, annotationType)) { return method.getDeclaredAnnotation(annotationType).getAnnotation(annotationType); } return null; }
java
public static <Type extends Annotation> Type getAnnotation(final Method method, final Class<Type> annotationType) { if (isAnnotationPresent(method, annotationType)) { return method.getDeclaredAnnotation(annotationType).getAnnotation(annotationType); } return null; }
[ "public", "static", "<", "Type", "extends", "Annotation", ">", "Type", "getAnnotation", "(", "final", "Method", "method", ",", "final", "Class", "<", "Type", ">", "annotationType", ")", "{", "if", "(", "isAnnotationPresent", "(", "method", ",", "annotationType...
Utility method that allows to extract actual annotation from method, bypassing LibGDX annotation wrapper. Returns null if annotation is not present. @param method method that might be annotated. @param annotationType class of the annotation. @return an instance of the annotation if the method is annotated or null if n...
[ "Utility", "method", "that", "allows", "to", "extract", "actual", "annotation", "from", "method", "bypassing", "LibGDX", "annotation", "wrapper", ".", "Returns", "null", "if", "annotation", "is", "not", "present", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/reflection/Reflection.java#L106-L111
train
czyzby/gdx-lml
lml-uedi/src/main/java/com/github/czyzby/lml/uedi/views/View.java
View.show
@Override public void show() { final Stage stage = getStage(); stage.getRoot().clearChildren(); LmlUtilities.appendActorsToStage(stage, actors); }
java
@Override public void show() { final Stage stage = getStage(); stage.getRoot().clearChildren(); LmlUtilities.appendActorsToStage(stage, actors); }
[ "@", "Override", "public", "void", "show", "(", ")", "{", "final", "Stage", "stage", "=", "getStage", "(", ")", ";", "stage", ".", "getRoot", "(", ")", ".", "clearChildren", "(", ")", ";", "LmlUtilities", ".", "appendActorsToStage", "(", "stage", ",", ...
Invoked after previous view is hidden and this view is about to show. Might be called when the view is being reloaded. Clears previous stage actors and adds managed actor to stage. If overridden, call super.
[ "Invoked", "after", "previous", "view", "is", "hidden", "and", "this", "view", "is", "about", "to", "show", ".", "Might", "be", "called", "when", "the", "view", "is", "being", "reloaded", ".", "Clears", "previous", "stage", "actors", "and", "adds", "manage...
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml-uedi/src/main/java/com/github/czyzby/lml/uedi/views/View.java#L88-L93
train
czyzby/gdx-lml
kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/scene2d/range/ColorRange.java
ColorRange.invalidate
public void invalidate() { if (transitionLength <= 0f) { currentColor.set(targetColor); redNeedsUpdate = greenNeedsUpdate = blueNeedsUpdate = alphaNeedsUpdate = false; transitionInProgress = false; } else { redNeedsUpdate = initialColor.r != targetColor.r;...
java
public void invalidate() { if (transitionLength <= 0f) { currentColor.set(targetColor); redNeedsUpdate = greenNeedsUpdate = blueNeedsUpdate = alphaNeedsUpdate = false; transitionInProgress = false; } else { redNeedsUpdate = initialColor.r != targetColor.r;...
[ "public", "void", "invalidate", "(", ")", "{", "if", "(", "transitionLength", "<=", "0f", ")", "{", "currentColor", ".", "set", "(", "targetColor", ")", ";", "redNeedsUpdate", "=", "greenNeedsUpdate", "=", "blueNeedsUpdate", "=", "alphaNeedsUpdate", "=", "fals...
Reschedules color updates. Should be called upon manual color modifications.
[ "Reschedules", "color", "updates", ".", "Should", "be", "called", "upon", "manual", "color", "modifications", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/kiwi/src/main/java/com/github/czyzby/kiwi/util/gdx/scene2d/range/ColorRange.java#L153-L172
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/tag/macro/TableCellLmlMacroTag.java
TableCellLmlMacroTag.processCell
protected void processCell() { final ObjectMap<String, String> attributes = getNamedAttributes(); if (GdxMaps.isEmpty(attributes)) { processCellWithNoAttributes(getTable()); return; } final LmlActorBuilder builder = new LmlActorBuilder(); // Used to determine tabl...
java
protected void processCell() { final ObjectMap<String, String> attributes = getNamedAttributes(); if (GdxMaps.isEmpty(attributes)) { processCellWithNoAttributes(getTable()); return; } final LmlActorBuilder builder = new LmlActorBuilder(); // Used to determine tabl...
[ "protected", "void", "processCell", "(", ")", "{", "final", "ObjectMap", "<", "String", ",", "String", ">", "attributes", "=", "getNamedAttributes", "(", ")", ";", "if", "(", "GdxMaps", ".", "isEmpty", "(", "attributes", ")", ")", "{", "processCellWithNoAttr...
This method is invoked when the tag is closed. Extracts a cell from the table.
[ "This", "method", "is", "invoked", "when", "the", "tag", "is", "closed", ".", "Extracts", "a", "cell", "from", "the", "table", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/tag/macro/TableCellLmlMacroTag.java#L73-L85
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/tag/macro/TableCellLmlMacroTag.java
TableCellLmlMacroTag.processBuildingAttributeToDetermineTable
protected void processBuildingAttributeToDetermineTable(final ObjectMap<String, String> attributes, final ObjectSet<String> processedAttributes, final LmlActorBuilder builder) { final LmlSyntax syntax = getParser().getSyntax(); for (final Entry<String, String> attribute : attributes) { ...
java
protected void processBuildingAttributeToDetermineTable(final ObjectMap<String, String> attributes, final ObjectSet<String> processedAttributes, final LmlActorBuilder builder) { final LmlSyntax syntax = getParser().getSyntax(); for (final Entry<String, String> attribute : attributes) { ...
[ "protected", "void", "processBuildingAttributeToDetermineTable", "(", "final", "ObjectMap", "<", "String", ",", "String", ">", "attributes", ",", "final", "ObjectSet", "<", "String", ">", "processedAttributes", ",", "final", "LmlActorBuilder", "builder", ")", "{", "...
This is meant to handle toButtonTable, toTitleTable, toDialogTable to choose which table should have a row appended. @param attributes named attributes of the macro. @param processedAttributes should contain processed building attributes after this method invocation. @param builder used to process named attributes.
[ "This", "is", "meant", "to", "handle", "toButtonTable", "toTitleTable", "toDialogTable", "to", "choose", "which", "table", "should", "have", "a", "row", "appended", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/tag/macro/TableCellLmlMacroTag.java#L125-L136
train
czyzby/gdx-lml
lml/src/main/java/com/github/czyzby/lml/parser/impl/tag/macro/TableCellLmlMacroTag.java
TableCellLmlMacroTag.processCellAttributes
protected void processCellAttributes(final ObjectMap<String, String> attributes, final ObjectSet<String> processedAttributes, final Table table, final Cell<?> cell) { final LmlSyntax syntax = getParser().getSyntax(); for (final Entry<String, String> attribute : attributes) { if (...
java
protected void processCellAttributes(final ObjectMap<String, String> attributes, final ObjectSet<String> processedAttributes, final Table table, final Cell<?> cell) { final LmlSyntax syntax = getParser().getSyntax(); for (final Entry<String, String> attribute : attributes) { if (...
[ "protected", "void", "processCellAttributes", "(", "final", "ObjectMap", "<", "String", ",", "String", ">", "attributes", ",", "final", "ObjectSet", "<", "String", ">", "processedAttributes", ",", "final", "Table", "table", ",", "final", "Cell", "<", "?", ">",...
This is meant to handle cell attributes that will modify the extracted cell. @param attributes named attributes of the macro. @param processedAttributes already processed attributes. Should be ignored. @param table owner of the cell. @param cell cell of the row. Should have its defaults set.
[ "This", "is", "meant", "to", "handle", "cell", "attributes", "that", "will", "modify", "the", "extracted", "cell", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml/src/main/java/com/github/czyzby/lml/parser/impl/tag/macro/TableCellLmlMacroTag.java#L144-L163
train
czyzby/gdx-lml
lml-vis/src/main/java/com/github/czyzby/lml/vis/ui/reflected/action/TabShowingAction.java
TabShowingAction.show
public TabShowingAction show(final Tab tabToShow, final LmlTabbedPaneListener listener) { this.tabToShow = tabToShow; this.listener = listener; shown = false; return this; }
java
public TabShowingAction show(final Tab tabToShow, final LmlTabbedPaneListener listener) { this.tabToShow = tabToShow; this.listener = listener; shown = false; return this; }
[ "public", "TabShowingAction", "show", "(", "final", "Tab", "tabToShow", ",", "final", "LmlTabbedPaneListener", "listener", ")", "{", "this", ".", "tabToShow", "=", "tabToShow", ";", "this", ".", "listener", "=", "listener", ";", "shown", "=", "false", ";", "...
Chaining action for pooling utility. @param tabToShow will be shown. @param listener manages tabs. @return this for chaining.
[ "Chaining", "action", "for", "pooling", "utility", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/lml-vis/src/main/java/com/github/czyzby/lml/vis/ui/reflected/action/TabShowingAction.java#L21-L26
train
czyzby/gdx-lml
mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/processor/SkinAssetAnnotationProcessor.java
SkinAssetAnnotationProcessor.injectFields
@SuppressWarnings("unchecked") @OnMessage(AutumnMessage.SKINS_LOADED) public boolean injectFields(final InterfaceService interfaceService) { for (final Entry<Pair<String, String>, Array<Pair<Field, Object>>> entry : fieldsToInject) { final Skin skin = interfaceService.getParser().getData().g...
java
@SuppressWarnings("unchecked") @OnMessage(AutumnMessage.SKINS_LOADED) public boolean injectFields(final InterfaceService interfaceService) { for (final Entry<Pair<String, String>, Array<Pair<Field, Object>>> entry : fieldsToInject) { final Skin skin = interfaceService.getParser().getData().g...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "OnMessage", "(", "AutumnMessage", ".", "SKINS_LOADED", ")", "public", "boolean", "injectFields", "(", "final", "InterfaceService", "interfaceService", ")", "{", "for", "(", "final", "Entry", "<", "Pair", ...
Invoked when all skins are loaded. Injects skin assets. @param interfaceService used to retrieve skins. @return {@link OnMessage#REMOVE}.
[ "Invoked", "when", "all", "skins", "are", "loaded", ".", "Injects", "skin", "assets", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/mvc/src/main/java/com/github/czyzby/autumn/mvc/component/ui/processor/SkinAssetAnnotationProcessor.java#L52-L75
train
czyzby/gdx-lml
examples/gdx-lml-vis-websocket/core/src/com/github/czyzby/views/container/WebSocketButtons.java
WebSocketButtons.onConnect
public void onConnect() { input.setDisabled(false); sendingButton.setDisabled(false); connectingButton.setDisabled(true); disconnectingButton.setDisabled(false); }
java
public void onConnect() { input.setDisabled(false); sendingButton.setDisabled(false); connectingButton.setDisabled(true); disconnectingButton.setDisabled(false); }
[ "public", "void", "onConnect", "(", ")", "{", "input", ".", "setDisabled", "(", "false", ")", ";", "sendingButton", ".", "setDisabled", "(", "false", ")", ";", "connectingButton", ".", "setDisabled", "(", "true", ")", ";", "disconnectingButton", ".", "setDis...
Enables sending widgets. Disables connecting widgets.
[ "Enables", "sending", "widgets", ".", "Disables", "connecting", "widgets", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/examples/gdx-lml-vis-websocket/core/src/com/github/czyzby/views/container/WebSocketButtons.java#L21-L26
train
czyzby/gdx-lml
examples/gdx-lml-vis-websocket/core/src/com/github/czyzby/views/container/WebSocketButtons.java
WebSocketButtons.onDisconnect
public void onDisconnect() { input.setDisabled(true); sendingButton.setDisabled(true); connectingButton.setDisabled(false); disconnectingButton.setDisabled(true); }
java
public void onDisconnect() { input.setDisabled(true); sendingButton.setDisabled(true); connectingButton.setDisabled(false); disconnectingButton.setDisabled(true); }
[ "public", "void", "onDisconnect", "(", ")", "{", "input", ".", "setDisabled", "(", "true", ")", ";", "sendingButton", ".", "setDisabled", "(", "true", ")", ";", "connectingButton", ".", "setDisabled", "(", "false", ")", ";", "disconnectingButton", ".", "setD...
Disables sending widgets. Enables connecting widgets.
[ "Disables", "sending", "widgets", ".", "Enables", "connecting", "widgets", "." ]
7623b322e6afe49ad4dd636c80c230150a1cfa4e
https://github.com/czyzby/gdx-lml/blob/7623b322e6afe49ad4dd636c80c230150a1cfa4e/examples/gdx-lml-vis-websocket/core/src/com/github/czyzby/views/container/WebSocketButtons.java#L29-L34
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Semver.java
Semver.satisfies
public boolean satisfies(String requirement) { Requirement req; switch (this.type) { case STRICT: req = Requirement.buildStrict(requirement); break; case LOOSE: req = Requirement.buildLoose(requirement); break; ...
java
public boolean satisfies(String requirement) { Requirement req; switch (this.type) { case STRICT: req = Requirement.buildStrict(requirement); break; case LOOSE: req = Requirement.buildLoose(requirement); break; ...
[ "public", "boolean", "satisfies", "(", "String", "requirement", ")", "{", "Requirement", "req", ";", "switch", "(", "this", ".", "type", ")", "{", "case", "STRICT", ":", "req", "=", "Requirement", ".", "buildStrict", "(", "requirement", ")", ";", "break", ...
Check if the version satisfies a requirement @param requirement the requirement @return true if the version satisfies the requirement
[ "Check", "if", "the", "version", "satisfies", "a", "requirement" ]
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Semver.java#L157-L179
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Semver.java
Semver.isGreaterThan
public boolean isGreaterThan(Semver version) { // Compare the main part if (this.getMajor() > version.getMajor()) return true; else if (this.getMajor() < version.getMajor()) return false; int otherMinor = version.getMinor() != null ? version.getMinor() : 0; if (this.getMinor() !...
java
public boolean isGreaterThan(Semver version) { // Compare the main part if (this.getMajor() > version.getMajor()) return true; else if (this.getMajor() < version.getMajor()) return false; int otherMinor = version.getMinor() != null ? version.getMinor() : 0; if (this.getMinor() !...
[ "public", "boolean", "isGreaterThan", "(", "Semver", "version", ")", "{", "// Compare the main part", "if", "(", "this", ".", "getMajor", "(", ")", ">", "version", ".", "getMajor", "(", ")", ")", "return", "true", ";", "else", "if", "(", "this", ".", "ge...
Checks if the version is greater than another version @param version the version to compare @return true if the current version is greater than the provided version
[ "Checks", "if", "the", "version", "is", "greater", "than", "another", "version" ]
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Semver.java#L195-L236
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Semver.java
Semver.isEquivalentTo
public boolean isEquivalentTo(Semver version) { // Get versions without build Semver sem1 = this.getBuild() == null ? this : new Semver(this.getValue().replace("+" + this.getBuild(), "")); Semver sem2 = version.getBuild() == null ? version : new Semver(version.getValue().replace("+" + version.ge...
java
public boolean isEquivalentTo(Semver version) { // Get versions without build Semver sem1 = this.getBuild() == null ? this : new Semver(this.getValue().replace("+" + this.getBuild(), "")); Semver sem2 = version.getBuild() == null ? version : new Semver(version.getValue().replace("+" + version.ge...
[ "public", "boolean", "isEquivalentTo", "(", "Semver", "version", ")", "{", "// Get versions without build", "Semver", "sem1", "=", "this", ".", "getBuild", "(", ")", "==", "null", "?", "this", ":", "new", "Semver", "(", "this", ".", "getValue", "(", ")", "...
Checks if the version equals another version, without taking the build into account. @param version the version to compare @return true if the current version equals the provided version (build excluded)
[ "Checks", "if", "the", "version", "equals", "another", "version", "without", "taking", "the", "build", "into", "account", "." ]
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Semver.java#L306-L312
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Semver.java
Semver.diff
public VersionDiff diff(Semver version) { if (!Objects.equals(this.major, version.getMajor())) return VersionDiff.MAJOR; if (!Objects.equals(this.minor, version.getMinor())) return VersionDiff.MINOR; if (!Objects.equals(this.patch, version.getPatch())) return VersionDiff.PATCH; if (!areS...
java
public VersionDiff diff(Semver version) { if (!Objects.equals(this.major, version.getMajor())) return VersionDiff.MAJOR; if (!Objects.equals(this.minor, version.getMinor())) return VersionDiff.MINOR; if (!Objects.equals(this.patch, version.getPatch())) return VersionDiff.PATCH; if (!areS...
[ "public", "VersionDiff", "diff", "(", "Semver", "version", ")", "{", "if", "(", "!", "Objects", ".", "equals", "(", "this", ".", "major", ",", "version", ".", "getMajor", "(", ")", ")", ")", "return", "VersionDiff", ".", "MAJOR", ";", "if", "(", "!",...
Returns the greatest difference between 2 versions. For example, if the current version is "1.2.3" and compared version is "1.3.0", the biggest difference is the 'MINOR' number. @param version the version to compare @return the greatest difference
[ "Returns", "the", "greatest", "difference", "between", "2", "versions", ".", "For", "example", "if", "the", "current", "version", "is", "1", ".", "2", ".", "3", "and", "compared", "version", "is", "1", ".", "3", ".", "0", "the", "biggest", "difference", ...
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Semver.java#L359-L366
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Requirement.java
Requirement.buildNPM
public static Requirement buildNPM(String requirement) { if (requirement.isEmpty()) { requirement = "*"; } return buildWithTokenizer(requirement, Semver.SemverType.NPM); }
java
public static Requirement buildNPM(String requirement) { if (requirement.isEmpty()) { requirement = "*"; } return buildWithTokenizer(requirement, Semver.SemverType.NPM); }
[ "public", "static", "Requirement", "buildNPM", "(", "String", "requirement", ")", "{", "if", "(", "requirement", ".", "isEmpty", "(", ")", ")", "{", "requirement", "=", "\"*\"", ";", "}", "return", "buildWithTokenizer", "(", "requirement", ",", "Semver", "."...
Builds a requirement following the rules of NPM. @param requirement the requirement as a string @return the generated requirement
[ "Builds", "a", "requirement", "following", "the", "rules", "of", "NPM", "." ]
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Requirement.java#L96-L101
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Requirement.java
Requirement.addParentheses
private static List<Token> addParentheses(List<Token> tokens) { List<Token> result = new ArrayList<Token>(); result.add(new Token(TokenType.OPENING, "(")); for (Token token : tokens) { if (token.type == TokenType.OR) { result.add(new Token(TokenType.CLOSING, ")")); ...
java
private static List<Token> addParentheses(List<Token> tokens) { List<Token> result = new ArrayList<Token>(); result.add(new Token(TokenType.OPENING, "(")); for (Token token : tokens) { if (token.type == TokenType.OR) { result.add(new Token(TokenType.CLOSING, ")")); ...
[ "private", "static", "List", "<", "Token", ">", "addParentheses", "(", "List", "<", "Token", ">", "tokens", ")", "{", "List", "<", "Token", ">", "result", "=", "new", "ArrayList", "<", "Token", ">", "(", ")", ";", "result", ".", "add", "(", "new", ...
Return parenthesized expression, giving lowest priority to OR operator @param tokens the tokens contained in the requirement string @return the tokens with parenthesis
[ "Return", "parenthesized", "expression", "giving", "lowest", "priority", "to", "OR", "operator" ]
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Requirement.java#L194-L208
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Requirement.java
Requirement.toReversePolishNotation
private static List<Tokenizer.Token> toReversePolishNotation(List<Tokenizer.Token> tokens) { LinkedList<Tokenizer.Token> queue = new LinkedList<Tokenizer.Token>(); Stack<Tokenizer.Token> stack = new Stack<Tokenizer.Token>(); for (int i = 0; i < tokens.size(); i++) { Tokenizer.Token ...
java
private static List<Tokenizer.Token> toReversePolishNotation(List<Tokenizer.Token> tokens) { LinkedList<Tokenizer.Token> queue = new LinkedList<Tokenizer.Token>(); Stack<Tokenizer.Token> stack = new Stack<Tokenizer.Token>(); for (int i = 0; i < tokens.size(); i++) { Tokenizer.Token ...
[ "private", "static", "List", "<", "Tokenizer", ".", "Token", ">", "toReversePolishNotation", "(", "List", "<", "Tokenizer", ".", "Token", ">", "tokens", ")", "{", "LinkedList", "<", "Tokenizer", ".", "Token", ">", "queue", "=", "new", "LinkedList", "<", "T...
Adaptation of the shutting yard algorithm
[ "Adaptation", "of", "the", "shutting", "yard", "algorithm" ]
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Requirement.java#L263-L300
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Requirement.java
Requirement.evaluateReversePolishNotation
private static Requirement evaluateReversePolishNotation(Iterator<Tokenizer.Token> iterator, Semver.SemverType type) { try { Tokenizer.Token token = iterator.next(); if (token.type == Tokenizer.TokenType.VERSION) { if ("*".equals(token.value) || (type == Semver.SemverTyp...
java
private static Requirement evaluateReversePolishNotation(Iterator<Tokenizer.Token> iterator, Semver.SemverType type) { try { Tokenizer.Token token = iterator.next(); if (token.type == Tokenizer.TokenType.VERSION) { if ("*".equals(token.value) || (type == Semver.SemverTyp...
[ "private", "static", "Requirement", "evaluateReversePolishNotation", "(", "Iterator", "<", "Tokenizer", ".", "Token", ">", "iterator", ",", "Semver", ".", "SemverType", "type", ")", "{", "try", "{", "Tokenizer", ".", "Token", "token", "=", "iterator", ".", "ne...
Evaluates a reverse polish notation token list
[ "Evaluates", "a", "reverse", "polish", "notation", "token", "list" ]
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Requirement.java#L305-L377
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Requirement.java
Requirement.hyphenRequirement
protected static Requirement hyphenRequirement(String lowerVersion, String upperVersion, Semver.SemverType type) { if (type != Semver.SemverType.NPM) { throw new SemverException("The hyphen requirements are only compatible with NPM."); } Semver lower = extrapolateVersion(new Semver(l...
java
protected static Requirement hyphenRequirement(String lowerVersion, String upperVersion, Semver.SemverType type) { if (type != Semver.SemverType.NPM) { throw new SemverException("The hyphen requirements are only compatible with NPM."); } Semver lower = extrapolateVersion(new Semver(l...
[ "protected", "static", "Requirement", "hyphenRequirement", "(", "String", "lowerVersion", ",", "String", "upperVersion", ",", "Semver", ".", "SemverType", "type", ")", "{", "if", "(", "type", "!=", "Semver", ".", "SemverType", ".", "NPM", ")", "{", "throw", ...
Creates a requirement that satisfies "x1.y1.z1 - x2.y2.z2".
[ "Creates", "a", "requirement", "that", "satisfies", "x1", ".", "y1", ".", "z1", "-", "x2", ".", "y2", ".", "z2", "." ]
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Requirement.java#L453-L473
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Requirement.java
Requirement.extrapolateVersion
private static Semver extrapolateVersion(Semver semver) { StringBuilder sb = new StringBuilder() .append(semver.getMajor()) .append(".") .append(semver.getMinor() == null ? 0 : semver.getMinor()) .append(".") .append(semver.getPatch...
java
private static Semver extrapolateVersion(Semver semver) { StringBuilder sb = new StringBuilder() .append(semver.getMajor()) .append(".") .append(semver.getMinor() == null ? 0 : semver.getMinor()) .append(".") .append(semver.getPatch...
[ "private", "static", "Semver", "extrapolateVersion", "(", "Semver", "semver", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ".", "append", "(", "semver", ".", "getMajor", "(", ")", ")", ".", "append", "(", "\".\"", ")", ".", "ap...
Extrapolates the optional minor and patch numbers. - 1 = 1.0.0 - 1.2 = 1.2.0 - 1.2.3 = 1.2.3 @param semver the original semver @return a semver with the extrapolated minor and patch numbers
[ "Extrapolates", "the", "optional", "minor", "and", "patch", "numbers", ".", "-", "1", "=", "1", ".", "0", ".", "0", "-", "1", ".", "2", "=", "1", ".", "2", ".", "0", "-", "1", ".", "2", ".", "3", "=", "1", ".", "2", ".", "3" ]
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Requirement.java#L485-L506
train
vdurmont/semver4j
src/main/java/com/vdurmont/semver4j/Requirement.java
Requirement.isSatisfiedBy
public boolean isSatisfiedBy(Semver version) { if (this.range != null) { // We are on a leaf return this.range.isSatisfiedBy(version); } else { // We have several sub-requirements switch (this.op) { case AND: try { ...
java
public boolean isSatisfiedBy(Semver version) { if (this.range != null) { // We are on a leaf return this.range.isSatisfiedBy(version); } else { // We have several sub-requirements switch (this.op) { case AND: try { ...
[ "public", "boolean", "isSatisfiedBy", "(", "Semver", "version", ")", "{", "if", "(", "this", ".", "range", "!=", "null", ")", "{", "// We are on a leaf", "return", "this", ".", "range", ".", "isSatisfiedBy", "(", "version", ")", ";", "}", "else", "{", "/...
Checks if the requirement is satisfied by a version. @param version the version that will be checked @return true if the version satisfies the requirement
[ "Checks", "if", "the", "requirement", "is", "satisfied", "by", "a", "version", "." ]
3f0266e4985ac29e9da482e04001ed15fad6c3e2
https://github.com/vdurmont/semver4j/blob/3f0266e4985ac29e9da482e04001ed15fad6c3e2/src/main/java/com/vdurmont/semver4j/Requirement.java#L526-L573
train
cocoahero/android-geojson
androidgeojson/src/main/java/com/cocoahero/android/geojson/GeoJSONObject.java
GeoJSONObject.toJSON
public JSONObject toJSON() throws JSONException { JSONObject json = new JSONObject(); json.put(JSON_TYPE, this.getType()); return json; }
java
public JSONObject toJSON() throws JSONException { JSONObject json = new JSONObject(); json.put(JSON_TYPE, this.getType()); return json; }
[ "public", "JSONObject", "toJSON", "(", ")", "throws", "JSONException", "{", "JSONObject", "json", "=", "new", "JSONObject", "(", ")", ";", "json", ".", "put", "(", "JSON_TYPE", ",", "this", ".", "getType", "(", ")", ")", ";", "return", "json", ";", "}"...
Formats the object's attributes as GeoJSON. @return A GeoJSON formatted {@link JSONObject} @throws JSONException
[ "Formats", "the", "object", "s", "attributes", "as", "GeoJSON", "." ]
eec45c0a5429d5c8fb0c2536e135084f87aa958a
https://github.com/cocoahero/android-geojson/blob/eec45c0a5429d5c8fb0c2536e135084f87aa958a/androidgeojson/src/main/java/com/cocoahero/android/geojson/GeoJSONObject.java#L96-L102
train
cocoahero/android-geojson
androidgeojson/src/main/java/com/cocoahero/android/geojson/FeatureCollection.java
FeatureCollection.setFeatures
public void setFeatures(List<Feature> features) { this.mFeatures.clear(); if (features != null) { this.mFeatures.addAll(features); } }
java
public void setFeatures(List<Feature> features) { this.mFeatures.clear(); if (features != null) { this.mFeatures.addAll(features); } }
[ "public", "void", "setFeatures", "(", "List", "<", "Feature", ">", "features", ")", "{", "this", ".", "mFeatures", ".", "clear", "(", ")", ";", "if", "(", "features", "!=", "null", ")", "{", "this", ".", "mFeatures", ".", "addAll", "(", "features", "...
Sets the list of features contained within this feature collection. All previously existing features are removed as a result of setting this property. @param features
[ "Sets", "the", "list", "of", "features", "contained", "within", "this", "feature", "collection", ".", "All", "previously", "existing", "features", "are", "removed", "as", "a", "result", "of", "setting", "this", "property", "." ]
eec45c0a5429d5c8fb0c2536e135084f87aa958a
https://github.com/cocoahero/android-geojson/blob/eec45c0a5429d5c8fb0c2536e135084f87aa958a/androidgeojson/src/main/java/com/cocoahero/android/geojson/FeatureCollection.java#L112-L117
train