id
int32
0
165k
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
102,500
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
102,501
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
102,502
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
102,503
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
102,504
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
102,505
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
102,506
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
102,507
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
102,508
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
102,509
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
102,510
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
102,511
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
102,512
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
102,513
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
102,514
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
102,515
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
102,516
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
102,517
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
102,518
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
102,519
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
102,520
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
102,521
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
102,522
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
102,523
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
102,524
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
102,525
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
102,526
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
102,527
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
102,528
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
102,529
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
102,530
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
102,531
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
102,532
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
102,533
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
102,534
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
102,535
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
102,536
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
102,537
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
102,538
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
102,539
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
102,540
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
102,541
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
102,542
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
102,543
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
102,544
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
102,545
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
102,546
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
102,547
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
102,548
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
102,549
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
102,550
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
102,551
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
102,552
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
102,553
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
102,554
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
102,555
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
102,556
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
102,557
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
102,558
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
102,559
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
102,560
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
102,561
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
102,562
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
102,563
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
102,564
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
102,565
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
102,566
cocoahero/android-geojson
androidgeojson/src/main/java/com/cocoahero/android/geojson/GeometryCollection.java
GeometryCollection.setGeometries
public void setGeometries(List<Geometry> geometries) { this.mGeometries.clear(); if (geometries != null) { this.mGeometries.addAll(geometries); } }
java
public void setGeometries(List<Geometry> geometries) { this.mGeometries.clear(); if (geometries != null) { this.mGeometries.addAll(geometries); } }
[ "public", "void", "setGeometries", "(", "List", "<", "Geometry", ">", "geometries", ")", "{", "this", ".", "mGeometries", ".", "clear", "(", ")", ";", "if", "(", "geometries", "!=", "null", ")", "{", "this", ".", "mGeometries", ".", "addAll", "(", "geo...
Sets the list of geometries contained within this geometry collection. All previously existing geometries are removed as a result of setting this property. @param geometries
[ "Sets", "the", "list", "of", "geometries", "contained", "within", "this", "geometry", "collection", ".", "All", "previously", "existing", "geometries", "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/GeometryCollection.java#L112-L117
102,567
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/cluster/DistributedTreeUtil.java
DistributedTreeUtil.parent
public static String parent(String node) { final int index = node.lastIndexOf('/'); if (index < 0) return null; return node.substring(0, index); }
java
public static String parent(String node) { final int index = node.lastIndexOf('/'); if (index < 0) return null; return node.substring(0, index); }
[ "public", "static", "String", "parent", "(", "String", "node", ")", "{", "final", "int", "index", "=", "node", ".", "lastIndexOf", "(", "'", "'", ")", ";", "if", "(", "index", "<", "0", ")", "return", "null", ";", "return", "node", ".", "substring", ...
Returns the parent tree node of a given node. @param node A tree node's full path. @return The full path of the given node's parent.
[ "Returns", "the", "parent", "tree", "node", "of", "a", "given", "node", "." ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/cluster/DistributedTreeUtil.java#L29-L34
102,568
puniverse/galaxy
src/main/java/co/paralleluniverse/common/spring/Service.java
Service.addDependency
public void addDependency(Service service) { assertDuringInitialization(); LOG.info("Adding a dependency on {} to {}", service.getName(), getName()); addDependsOn(service); service.addDependedBy(this); }
java
public void addDependency(Service service) { assertDuringInitialization(); LOG.info("Adding a dependency on {} to {}", service.getName(), getName()); addDependsOn(service); service.addDependedBy(this); }
[ "public", "void", "addDependency", "(", "Service", "service", ")", "{", "assertDuringInitialization", "(", ")", ";", "LOG", ".", "info", "(", "\"Adding a dependency on {} to {}\"", ",", "service", ".", "getName", "(", ")", ",", "getName", "(", ")", ")", ";", ...
Adds a service this service depends on. @param service The service this service depends on.
[ "Adds", "a", "service", "this", "service", "depends", "on", "." ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/common/spring/Service.java#L59-L64
102,569
puniverse/galaxy
src/main/java/co/paralleluniverse/common/spring/Service.java
Service.setReady
protected void setReady(boolean ready) { synchronized (SERVICE_AVILABILITY_LOCK) { LOG.info("Service {} is now {}", getName(), ready ? "READY" : "NOT READY"); this.ready = ready; checkAvailability(); } runAvailableMethod(); // call outside lock }
java
protected void setReady(boolean ready) { synchronized (SERVICE_AVILABILITY_LOCK) { LOG.info("Service {} is now {}", getName(), ready ? "READY" : "NOT READY"); this.ready = ready; checkAvailability(); } runAvailableMethod(); // call outside lock }
[ "protected", "void", "setReady", "(", "boolean", "ready", ")", "{", "synchronized", "(", "SERVICE_AVILABILITY_LOCK", ")", "{", "LOG", ".", "info", "(", "\"Service {} is now {}\"", ",", "getName", "(", ")", ",", "ready", "?", "\"READY\"", ":", "\"NOT READY\"", ...
Sets the readiness of this service. If this service is ready and all its dependencies are available, than this service becomes available. @param ready
[ "Sets", "the", "readiness", "of", "this", "service", ".", "If", "this", "service", "is", "ready", "and", "all", "its", "dependencies", "are", "available", "than", "this", "service", "becomes", "available", "." ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/common/spring/Service.java#L164-L171
102,570
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/jgroups/ReplicatedTree.java
ReplicatedTree.create
public void create(String fqn, boolean ephemeral) { awaitRunning(); try { LOG.trace("Creating {} {}", fqn, ephemeral ? "(ephemeral)" : ""); channel.send(new Message(null, new Request(Request.CREATE, fqn, ephemeral))); synchronized (updateCondition) { w...
java
public void create(String fqn, boolean ephemeral) { awaitRunning(); try { LOG.trace("Creating {} {}", fqn, ephemeral ? "(ephemeral)" : ""); channel.send(new Message(null, new Request(Request.CREATE, fqn, ephemeral))); synchronized (updateCondition) { w...
[ "public", "void", "create", "(", "String", "fqn", ",", "boolean", "ephemeral", ")", "{", "awaitRunning", "(", ")", ";", "try", "{", "LOG", ".", "trace", "(", "\"Creating {} {}\"", ",", "fqn", ",", "ephemeral", "?", "\"(ephemeral)\"", ":", "\"\"", ")", ";...
Adds a new node to the tree. If the node does not exist yet, it will be created. Also, parent nodes will be created if non-existent. If the node already exists, this is a no-op, it's status as ephemeral may change. @param fqn The fully qualified name of the new node @param data The new data. May be null if no data sho...
[ "Adds", "a", "new", "node", "to", "the", "tree", ".", "If", "the", "node", "does", "not", "exist", "yet", "it", "will", "be", "created", ".", "Also", "parent", "nodes", "will", "be", "created", "if", "non", "-", "existent", ".", "If", "the", "node", ...
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/jgroups/ReplicatedTree.java#L135-L147
102,571
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/jgroups/ReplicatedTree.java
ReplicatedTree.get
public byte[] get(String fqn) { final Node n = findNode(fqn); if (n == null) return null; final byte[] buffer = n.getData(); if (buffer == null) return null; return Arrays.copyOf(buffer, buffer.length); }
java
public byte[] get(String fqn) { final Node n = findNode(fqn); if (n == null) return null; final byte[] buffer = n.getData(); if (buffer == null) return null; return Arrays.copyOf(buffer, buffer.length); }
[ "public", "byte", "[", "]", "get", "(", "String", "fqn", ")", "{", "final", "Node", "n", "=", "findNode", "(", "fqn", ")", ";", "if", "(", "n", "==", "null", ")", "return", "null", ";", "final", "byte", "[", "]", "buffer", "=", "n", ".", "getDa...
Finds a node given its name and returns the data associated with it. Returns null if the node was not found in the tree or the data is null. @param fqn The fully qualified name of the node. @return The data associated with the node, or <code>null</code> if none or node is nonexistent.
[ "Finds", "a", "node", "given", "its", "name", "and", "returns", "the", "data", "associated", "with", "it", ".", "Returns", "null", "if", "the", "node", "was", "not", "found", "in", "the", "tree", "or", "the", "data", "is", "null", "." ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/jgroups/ReplicatedTree.java#L208-L216
102,572
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/jgroups/ReplicatedTree.java
ReplicatedTree.getChildren
public List<String> getChildren(String fqn) { final Node n = findNode(fqn); if (n == null) return null; final Set<String> names = n.getChildrenNames(); return new ArrayList<String>(names); }
java
public List<String> getChildren(String fqn) { final Node n = findNode(fqn); if (n == null) return null; final Set<String> names = n.getChildrenNames(); return new ArrayList<String>(names); }
[ "public", "List", "<", "String", ">", "getChildren", "(", "String", "fqn", ")", "{", "final", "Node", "n", "=", "findNode", "(", "fqn", ")", ";", "if", "(", "n", "==", "null", ")", "return", "null", ";", "final", "Set", "<", "String", ">", "names",...
Returns all children of a given node. @param fqn The fully qualified name of the node @return A list of child names (as Strings)
[ "Returns", "all", "children", "of", "a", "given", "node", "." ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/jgroups/ReplicatedTree.java#L235-L241
102,573
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/objects/DistributedReference.java
DistributedReference.write
@Override public void write(ByteBuffer buffer) { // if (obj instanceof Persistable) // ((Persistable) obj).write(buffer); // else { if (obj != null) buffer.put(getSerialized()); tmpBuffer = null; // } }
java
@Override public void write(ByteBuffer buffer) { // if (obj instanceof Persistable) // ((Persistable) obj).write(buffer); // else { if (obj != null) buffer.put(getSerialized()); tmpBuffer = null; // } }
[ "@", "Override", "public", "void", "write", "(", "ByteBuffer", "buffer", ")", "{", "// if (obj instanceof Persistable)", "// ((Persistable) obj).write(buffer);", "// else {", "if", "(", "obj", "!=", "null", ")", "buffer", ".", "put", "(", "getSe...
This method is not thread safe!
[ "This", "method", "is", "not", "thread", "safe!" ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/objects/DistributedReference.java#L98-L107
102,574
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/netty/OneToOneCodec.java
OneToOneCodec.handleDownstream
@Override public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent evt) throws Exception { if (!(evt instanceof MessageEvent)) { ctx.sendDownstream(evt); return; } final MessageEvent e = (MessageEvent) evt; final Object originalMessage = e.getMess...
java
@Override public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent evt) throws Exception { if (!(evt instanceof MessageEvent)) { ctx.sendDownstream(evt); return; } final MessageEvent e = (MessageEvent) evt; final Object originalMessage = e.getMess...
[ "@", "Override", "public", "void", "handleDownstream", "(", "ChannelHandlerContext", "ctx", ",", "ChannelEvent", "evt", ")", "throws", "Exception", "{", "if", "(", "!", "(", "evt", "instanceof", "MessageEvent", ")", ")", "{", "ctx", ".", "sendDownstream", "(",...
Code copied from org.jboss.netty.handler.codec.oneone.OneToOneEncoder and org.jboss.netty.handler.codec.oneone.OneToOneDecoder
[ "Code", "copied", "from", "org", ".", "jboss", ".", "netty", ".", "handler", ".", "codec", ".", "oneone", ".", "OneToOneEncoder", "and", "org", ".", "jboss", ".", "netty", ".", "handler", ".", "codec", ".", "oneone", ".", "OneToOneDecoder" ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/netty/OneToOneCodec.java#L34-L48
102,575
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/core/AbstractCluster.java
AbstractCluster.postInit
@Override protected void postInit() throws Exception { if (controlTree == null) { throw new RuntimeException("controlTree not set"); } controlTree.create(NODES, false); controlTree.create(LEADERS, false); if (controlTree.exists(myNodeInfo.treeNodePath)) { ...
java
@Override protected void postInit() throws Exception { if (controlTree == null) { throw new RuntimeException("controlTree not set"); } controlTree.create(NODES, false); controlTree.create(LEADERS, false); if (controlTree.exists(myNodeInfo.treeNodePath)) { ...
[ "@", "Override", "protected", "void", "postInit", "(", ")", "throws", "Exception", "{", "if", "(", "controlTree", "==", "null", ")", "{", "throw", "new", "RuntimeException", "(", "\"controlTree not set\"", ")", ";", "}", "controlTree", ".", "create", "(", "N...
This is perhaps ugly, but overriding implementations must call this method at the end, or, at least, after calling setControlTree @throws Exception
[ "This", "is", "perhaps", "ugly", "but", "overriding", "implementations", "must", "call", "this", "method", "at", "the", "end", "or", "at", "least", "after", "calling", "setControlTree" ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/core/AbstractCluster.java#L173-L251
102,576
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/netty/UDPComm.java
UDPComm.sendToNode
@Override protected void sendToNode(Message message, short node, InetSocketAddress address) { try { if (LOG.isDebugEnabled()) LOG.debug("Sending to node {} ({}): {}", new Object[]{node, address, message}); message.cloneDataBuffers(); // important, as we're going ...
java
@Override protected void sendToNode(Message message, short node, InetSocketAddress address) { try { if (LOG.isDebugEnabled()) LOG.debug("Sending to node {} ({}): {}", new Object[]{node, address, message}); message.cloneDataBuffers(); // important, as we're going ...
[ "@", "Override", "protected", "void", "sendToNode", "(", "Message", "message", ",", "short", "node", ",", "InetSocketAddress", "address", ")", "{", "try", "{", "if", "(", "LOG", ".", "isDebugEnabled", "(", ")", ")", "LOG", ".", "debug", "(", "\"Sending to ...
Can block if buffer is full
[ "Can", "block", "if", "buffer", "is", "full" ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/netty/UDPComm.java#L399-L418
102,577
puniverse/galaxy
src/main/java/co/paralleluniverse/common/util/Exceptions.java
Exceptions.unwrap
public static Throwable unwrap(Throwable t) { for (;;) { if (t == null) throw new NullPointerException(); if (t instanceof java.util.concurrent.ExecutionException) t = t.getCause(); else if (t instanceof java.lang.reflect.InvocationTargetExcep...
java
public static Throwable unwrap(Throwable t) { for (;;) { if (t == null) throw new NullPointerException(); if (t instanceof java.util.concurrent.ExecutionException) t = t.getCause(); else if (t instanceof java.lang.reflect.InvocationTargetExcep...
[ "public", "static", "Throwable", "unwrap", "(", "Throwable", "t", ")", "{", "for", "(", ";", ";", ")", "{", "if", "(", "t", "==", "null", ")", "throw", "new", "NullPointerException", "(", ")", ";", "if", "(", "t", "instanceof", "java", ".", "util", ...
Unwraps several common wrapper exceptions and returns the underlying cause. @param t @return
[ "Unwraps", "several", "common", "wrapper", "exceptions", "and", "returns", "the", "underlying", "cause", "." ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/common/util/Exceptions.java#L35-L49
102,578
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/core/Message.java
Message.read
public void read(ByteBuffer buffer) { Persistables.persistable(streamableNoBuffers()).read(buffer); final int n = getNumDataBuffers(); int lengthsPosition = buffer.position(); buffer.position(buffer.position() + 2 * n); // skip positions for (int i = 0; i < n; i++) { ...
java
public void read(ByteBuffer buffer) { Persistables.persistable(streamableNoBuffers()).read(buffer); final int n = getNumDataBuffers(); int lengthsPosition = buffer.position(); buffer.position(buffer.position() + 2 * n); // skip positions for (int i = 0; i < n; i++) { ...
[ "public", "void", "read", "(", "ByteBuffer", "buffer", ")", "{", "Persistables", ".", "persistable", "(", "streamableNoBuffers", "(", ")", ")", ".", "read", "(", "buffer", ")", ";", "final", "int", "n", "=", "getNumDataBuffers", "(", ")", ";", "int", "le...
Note that you cannot use this method to read a buffer wrapping the array returned from toByteArray as the internal representation is different! @param buffer
[ "Note", "that", "you", "cannot", "use", "this", "method", "to", "read", "a", "buffer", "wrapping", "the", "array", "returned", "from", "toByteArray", "as", "the", "internal", "representation", "is", "different!" ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/core/Message.java#L558-L571
102,579
puniverse/galaxy
src/main/java/co/paralleluniverse/common/io/Streamables.java
Streamables.calcUtfLength
public static int calcUtfLength(String str) { final int strlen = str.length(); int utflen = 0; for (int i = 0; i < strlen; i++) { int c = str.charAt(i); if ((c >= 0x0001) && (c <= 0x007F)) { utflen++; } else if (c > 0x07FF) { ...
java
public static int calcUtfLength(String str) { final int strlen = str.length(); int utflen = 0; for (int i = 0; i < strlen; i++) { int c = str.charAt(i); if ((c >= 0x0001) && (c <= 0x007F)) { utflen++; } else if (c > 0x07FF) { ...
[ "public", "static", "int", "calcUtfLength", "(", "String", "str", ")", "{", "final", "int", "strlen", "=", "str", ".", "length", "(", ")", ";", "int", "utflen", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "strlen", ";", "i", ...
Returns the length in bytes of a string's UTF-8 encoding. @param str The string to measure. @return The length in bytes of a string's UTF-8 encoding.
[ "Returns", "the", "length", "in", "bytes", "of", "a", "string", "s", "UTF", "-", "8", "encoding", "." ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/common/io/Streamables.java#L124-L138
102,580
puniverse/galaxy
src/main/java/co/paralleluniverse/common/spring/SpringContainerHelper.java
SpringContainerHelper.createBeanFactory
private static DefaultListableBeanFactory createBeanFactory() { return new DefaultListableBeanFactory() { { final InstantiationStrategy is = getInstantiationStrategy(); setInstantiationStrategy(new InstantiationStrategy() { @Override ...
java
private static DefaultListableBeanFactory createBeanFactory() { return new DefaultListableBeanFactory() { { final InstantiationStrategy is = getInstantiationStrategy(); setInstantiationStrategy(new InstantiationStrategy() { @Override ...
[ "private", "static", "DefaultListableBeanFactory", "createBeanFactory", "(", ")", "{", "return", "new", "DefaultListableBeanFactory", "(", ")", "{", "{", "final", "InstantiationStrategy", "is", "=", "getInstantiationStrategy", "(", ")", ";", "setInstantiationStrategy", ...
adds hooks to capture autowired constructor args and add them as dependencies @return
[ "adds", "hooks", "to", "capture", "autowired", "constructor", "args", "and", "add", "them", "as", "dependencies" ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/common/spring/SpringContainerHelper.java#L193-L230
102,581
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/core/Cache.java
Cache.doOp
private Object doOp(Op op) throws TimeoutException { try { if (op.txn != null) op.txn.add(op); Object result = runOp(op); if (result == PENDING) return op.getResult(timeout, TimeUnit.MILLISECONDS); else if (result == null && op.isCa...
java
private Object doOp(Op op) throws TimeoutException { try { if (op.txn != null) op.txn.add(op); Object result = runOp(op); if (result == PENDING) return op.getResult(timeout, TimeUnit.MILLISECONDS); else if (result == null && op.isCa...
[ "private", "Object", "doOp", "(", "Op", "op", ")", "throws", "TimeoutException", "{", "try", "{", "if", "(", "op", ".", "txn", "!=", "null", ")", "op", ".", "txn", ".", "add", "(", "op", ")", ";", "Object", "result", "=", "runOp", "(", "op", ")",...
This one blocks! @param op @return
[ "This", "one", "blocks!" ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/core/Cache.java#L564-L586
102,582
puniverse/galaxy
src/main/java/co/paralleluniverse/galaxy/core/Cache.java
Cache.handleMessageMessengerMsg
private boolean handleMessageMessengerMsg(Message.MSG message) { if (!message.isMessenger()) return false; if (receiver == null) return true; setOwnerClockPut(message); if (message.getLine() == -1) { receiver.receive(message); if (message...
java
private boolean handleMessageMessengerMsg(Message.MSG message) { if (!message.isMessenger()) return false; if (receiver == null) return true; setOwnerClockPut(message); if (message.getLine() == -1) { receiver.receive(message); if (message...
[ "private", "boolean", "handleMessageMessengerMsg", "(", "Message", ".", "MSG", "message", ")", "{", "if", "(", "!", "message", ".", "isMessenger", "(", ")", ")", "return", "false", ";", "if", "(", "receiver", "==", "null", ")", "return", "true", ";", "se...
Special handling for msg.
[ "Special", "handling", "for", "msg", "." ]
1d077532c4a5bcd6c52ff670770c31e98420ff63
https://github.com/puniverse/galaxy/blob/1d077532c4a5bcd6c52ff670770c31e98420ff63/src/main/java/co/paralleluniverse/galaxy/core/Cache.java#L910-L942
102,583
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/predicate/PropertyReference.java
PropertyReference.propertyRef
public static P<Object> propertyRef(Compare p,String columnName){ return new RefP(p, new PropertyReference(columnName)); }
java
public static P<Object> propertyRef(Compare p,String columnName){ return new RefP(p, new PropertyReference(columnName)); }
[ "public", "static", "P", "<", "Object", ">", "propertyRef", "(", "Compare", "p", ",", "String", "columnName", ")", "{", "return", "new", "RefP", "(", "p", ",", "new", "PropertyReference", "(", "columnName", ")", ")", ";", "}" ]
build a predicate from a compare operation and a column name @param p @param columnName @return
[ "build", "a", "predicate", "from", "a", "compare", "operation", "and", "a", "column", "name" ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/predicate/PropertyReference.java#L39-L41
102,584
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java
SchemaTableTree.constructDuplicatePathSql
private String constructDuplicatePathSql(SqlgGraph sqlgGraph, List<LinkedList<SchemaTableTree>> subQueryLinkedLists, Set<SchemaTableTree> leftJoinOn) { StringBuilder singlePathSql = new StringBuilder("\nFROM ("); int count = 1; SchemaTableTree lastOfPrevious = null; for (LinkedList<Schem...
java
private String constructDuplicatePathSql(SqlgGraph sqlgGraph, List<LinkedList<SchemaTableTree>> subQueryLinkedLists, Set<SchemaTableTree> leftJoinOn) { StringBuilder singlePathSql = new StringBuilder("\nFROM ("); int count = 1; SchemaTableTree lastOfPrevious = null; for (LinkedList<Schem...
[ "private", "String", "constructDuplicatePathSql", "(", "SqlgGraph", "sqlgGraph", ",", "List", "<", "LinkedList", "<", "SchemaTableTree", ">", ">", "subQueryLinkedLists", ",", "Set", "<", "SchemaTableTree", ">", "leftJoinOn", ")", "{", "StringBuilder", "singlePathSql",...
Construct a sql statement for one original path to a leaf node. As the path contains the same label more than once its been split into a List of Stacks.
[ "Construct", "a", "sql", "statement", "for", "one", "original", "path", "to", "a", "leaf", "node", ".", "As", "the", "path", "contains", "the", "same", "label", "more", "than", "once", "its", "been", "split", "into", "a", "List", "of", "Stacks", "." ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java#L523-L560
102,585
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java
SchemaTableTree.constructSinglePathSql
private String constructSinglePathSql( SqlgGraph sqlgGraph, boolean partOfDuplicateQuery, LinkedList<SchemaTableTree> distinctQueryStack, SchemaTableTree lastOfPrevious, SchemaTableTree firstOfNextStack, Set<SchemaTableTree> leftJoinOn, ...
java
private String constructSinglePathSql( SqlgGraph sqlgGraph, boolean partOfDuplicateQuery, LinkedList<SchemaTableTree> distinctQueryStack, SchemaTableTree lastOfPrevious, SchemaTableTree firstOfNextStack, Set<SchemaTableTree> leftJoinOn, ...
[ "private", "String", "constructSinglePathSql", "(", "SqlgGraph", "sqlgGraph", ",", "boolean", "partOfDuplicateQuery", ",", "LinkedList", "<", "SchemaTableTree", ">", "distinctQueryStack", ",", "SchemaTableTree", "lastOfPrevious", ",", "SchemaTableTree", "firstOfNextStack", ...
Constructs a sql select statement from the SchemaTableTree call stack. The SchemaTableTree is not used as a tree. It is used only as as SchemaTable with a direction. first and last is needed to facilitate generating the from statement. If both first and last is true then the gremlin does not contain duplicate labels in...
[ "Constructs", "a", "sql", "select", "statement", "from", "the", "SchemaTableTree", "call", "stack", ".", "The", "SchemaTableTree", "is", "not", "used", "as", "a", "tree", ".", "It", "is", "used", "only", "as", "as", "SchemaTable", "with", "a", "direction", ...
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java#L766-L783
102,586
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java
SchemaTableTree.duplicatesInStack
public boolean duplicatesInStack(LinkedList<SchemaTableTree> distinctQueryStack) { Set<SchemaTable> alreadyVisited = new HashSet<>(); for (SchemaTableTree schemaTableTree : distinctQueryStack) { if (!alreadyVisited.contains(schemaTableTree.getSchemaTable())) { alreadyVisited....
java
public boolean duplicatesInStack(LinkedList<SchemaTableTree> distinctQueryStack) { Set<SchemaTable> alreadyVisited = new HashSet<>(); for (SchemaTableTree schemaTableTree : distinctQueryStack) { if (!alreadyVisited.contains(schemaTableTree.getSchemaTable())) { alreadyVisited....
[ "public", "boolean", "duplicatesInStack", "(", "LinkedList", "<", "SchemaTableTree", ">", "distinctQueryStack", ")", "{", "Set", "<", "SchemaTable", ">", "alreadyVisited", "=", "new", "HashSet", "<>", "(", ")", ";", "for", "(", "SchemaTableTree", "schemaTableTree"...
Checks if the stack has the same element more than once. @param distinctQueryStack @return true is there are duplicates else false
[ "Checks", "if", "the", "stack", "has", "the", "same", "element", "more", "than", "once", "." ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java#L1573-L1583
102,587
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java
SchemaTableTree.constructEmitFromClause
private static void constructEmitFromClause(LinkedList<SchemaTableTree> distinctQueryStack, ColumnList cols) { int count = 1; for (SchemaTableTree schemaTableTree : distinctQueryStack) { if (count > 1) { if (!schemaTableTree.getSchemaTable().isEdgeTable() && schemaTableTree.i...
java
private static void constructEmitFromClause(LinkedList<SchemaTableTree> distinctQueryStack, ColumnList cols) { int count = 1; for (SchemaTableTree schemaTableTree : distinctQueryStack) { if (count > 1) { if (!schemaTableTree.getSchemaTable().isEdgeTable() && schemaTableTree.i...
[ "private", "static", "void", "constructEmitFromClause", "(", "LinkedList", "<", "SchemaTableTree", ">", "distinctQueryStack", ",", "ColumnList", "cols", ")", "{", "int", "count", "=", "1", ";", "for", "(", "SchemaTableTree", "schemaTableTree", ":", "distinctQuerySta...
If emit is true then the edge id also needs to be printed. This is required when there are multiple edges to the same vertex. Only by having access to the edge id can on tell if the vertex needs to be emitted.
[ "If", "emit", "is", "true", "then", "the", "edge", "id", "also", "needs", "to", "be", "printed", ".", "This", "is", "required", "when", "there", "are", "multiple", "edges", "to", "the", "same", "vertex", ".", "Only", "by", "having", "access", "to", "th...
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java#L1818-L1829
102,588
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java
SchemaTableTree.removeOrTransformHasContainers
private void removeOrTransformHasContainers(final SchemaTableTree schemaTableTree) { Set<HasContainer> toRemove = new HashSet<>(); Set<HasContainer> toAdd = new HashSet<>(); for (HasContainer hasContainer : schemaTableTree.hasContainers) { if (hasContainer.getKey().equals(label.getAc...
java
private void removeOrTransformHasContainers(final SchemaTableTree schemaTableTree) { Set<HasContainer> toRemove = new HashSet<>(); Set<HasContainer> toAdd = new HashSet<>(); for (HasContainer hasContainer : schemaTableTree.hasContainers) { if (hasContainer.getKey().equals(label.getAc...
[ "private", "void", "removeOrTransformHasContainers", "(", "final", "SchemaTableTree", "schemaTableTree", ")", "{", "Set", "<", "HasContainer", ">", "toRemove", "=", "new", "HashSet", "<>", "(", ")", ";", "Set", "<", "HasContainer", ">", "toAdd", "=", "new", "H...
remove "has" containers that are not valid anymore transform "has" containers that are equivalent to simpler statements. @param schemaTableTree the current table tree
[ "remove", "has", "containers", "that", "are", "not", "valid", "anymore", "transform", "has", "containers", "that", "are", "equivalent", "to", "simpler", "statements", "." ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java#L2329-L2354
102,589
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java
SchemaTableTree.invalidateByHas
@SuppressWarnings("unchecked") private boolean invalidateByHas(SchemaTableTree schemaTableTree) { for (HasContainer hasContainer : schemaTableTree.hasContainers) { if (!hasContainer.getKey().equals(TopologyStrategy.TOPOLOGY_SELECTION_SQLG_SCHEMA) && !hasContainer.getKey().equals(TopologyStrategy...
java
@SuppressWarnings("unchecked") private boolean invalidateByHas(SchemaTableTree schemaTableTree) { for (HasContainer hasContainer : schemaTableTree.hasContainers) { if (!hasContainer.getKey().equals(TopologyStrategy.TOPOLOGY_SELECTION_SQLG_SCHEMA) && !hasContainer.getKey().equals(TopologyStrategy...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "boolean", "invalidateByHas", "(", "SchemaTableTree", "schemaTableTree", ")", "{", "for", "(", "HasContainer", "hasContainer", ":", "schemaTableTree", ".", "hasContainers", ")", "{", "if", "(", "!", "h...
verify the "has" containers we have are valid with the schema table tree given @param schemaTableTree @return true if any has container does NOT match, false if everything is fine
[ "verify", "the", "has", "containers", "we", "have", "are", "valid", "with", "the", "schema", "table", "tree", "given" ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java#L2386-L2435
102,590
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java
SchemaTableTree.shouldSelectProperty
public boolean shouldSelectProperty(String property) { // no restriction if (getRoot().eagerLoad || restrictedProperties == null) { return true; } // explicit restriction if (getRoot().eagerLoad || restrictedProperties.contains(property)) { return true; ...
java
public boolean shouldSelectProperty(String property) { // no restriction if (getRoot().eagerLoad || restrictedProperties == null) { return true; } // explicit restriction if (getRoot().eagerLoad || restrictedProperties.contains(property)) { return true; ...
[ "public", "boolean", "shouldSelectProperty", "(", "String", "property", ")", "{", "// no restriction", "if", "(", "getRoot", "(", ")", ".", "eagerLoad", "||", "restrictedProperties", "==", "null", ")", "{", "return", "true", ";", "}", "// explicit restriction", ...
should we select the given property? @param property the property name @return true if the property should be part of the select clause, false otherwise
[ "should", "we", "select", "the", "given", "property?" ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java#L2736-L2746
102,591
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java
SchemaTableTree.calculatePropertyRestrictions
private void calculatePropertyRestrictions() { if (restrictedProperties == null) { return; } // we use aliases for ordering, so we need the property in the select clause for (org.javatuples.Pair<Traversal.Admin<?, ?>, Comparator<?>> comparator : this.getDbComparators()) { ...
java
private void calculatePropertyRestrictions() { if (restrictedProperties == null) { return; } // we use aliases for ordering, so we need the property in the select clause for (org.javatuples.Pair<Traversal.Admin<?, ?>, Comparator<?>> comparator : this.getDbComparators()) { ...
[ "private", "void", "calculatePropertyRestrictions", "(", ")", "{", "if", "(", "restrictedProperties", "==", "null", ")", "{", "return", ";", "}", "// we use aliases for ordering, so we need the property in the select clause", "for", "(", "org", ".", "javatuples", ".", "...
calculate property restrictions from explicit restrictions and required properties
[ "calculate", "property", "restrictions", "from", "explicit", "restrictions", "and", "required", "properties" ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/SchemaTableTree.java#L2751-L2782
102,592
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/ReplacedStepTree.java
ReplacedStepTree.orderByHasSelectOneStepAndForLabelNotInTree
public boolean orderByHasSelectOneStepAndForLabelNotInTree() { Set<String> labels = new HashSet<>(); for (ReplacedStep<?, ?> replacedStep : linearPathToLeafNode()) { for (String label : labels) { labels.add(SqlgUtil.originalLabel(label)); } for (Pair<T...
java
public boolean orderByHasSelectOneStepAndForLabelNotInTree() { Set<String> labels = new HashSet<>(); for (ReplacedStep<?, ?> replacedStep : linearPathToLeafNode()) { for (String label : labels) { labels.add(SqlgUtil.originalLabel(label)); } for (Pair<T...
[ "public", "boolean", "orderByHasSelectOneStepAndForLabelNotInTree", "(", ")", "{", "Set", "<", "String", ">", "labels", "=", "new", "HashSet", "<>", "(", ")", ";", "for", "(", "ReplacedStep", "<", "?", ",", "?", ">", "replacedStep", ":", "linearPathToLeafNode"...
This happens when a SqlgVertexStep has a SelectOne step where the label is for an element on the path that is before the current optimized steps. @return
[ "This", "happens", "when", "a", "SqlgVertexStep", "has", "a", "SelectOne", "step", "where", "the", "label", "is", "for", "an", "element", "on", "the", "path", "that", "is", "before", "the", "current", "optimized", "steps", "." ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/ReplacedStepTree.java#L126-L152
102,593
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/structure/topology/TopologyManager.java
TopologyManager.updateGraph
public static String updateGraph(SqlgGraph sqlgGraph, String version) { Connection conn = sqlgGraph.tx().getConnection(); try { DatabaseMetaData metadata = conn.getMetaData(); GraphTraversalSource traversalSource = sqlgGraph.topology(); List<Vertex> graphVertices = tr...
java
public static String updateGraph(SqlgGraph sqlgGraph, String version) { Connection conn = sqlgGraph.tx().getConnection(); try { DatabaseMetaData metadata = conn.getMetaData(); GraphTraversalSource traversalSource = sqlgGraph.topology(); List<Vertex> graphVertices = tr...
[ "public", "static", "String", "updateGraph", "(", "SqlgGraph", "sqlgGraph", ",", "String", "version", ")", "{", "Connection", "conn", "=", "sqlgGraph", ".", "tx", "(", ")", ".", "getConnection", "(", ")", ";", "try", "{", "DatabaseMetaData", "metadata", "=",...
Updates sqlg_schema.V_graph's version to the new version and returns the old version. @param sqlgGraph The graph. @param version The new version. @return The old version.
[ "Updates", "sqlg_schema", ".", "V_graph", "s", "version", "to", "the", "new", "version", "and", "returns", "the", "old", "version", "." ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/structure/topology/TopologyManager.java#L58-L76
102,594
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/structure/topology/TopologyManager.java
TopologyManager.addIndex
public static void addIndex(SqlgGraph sqlgGraph, String schema, String label, boolean vertex, String index, IndexType indexType, List<String> properties) { BatchManager.BatchModeType batchModeType = flushAndSetTxToNone(sqlgGraph); try { //get the abstractLabel's vertex GraphTrave...
java
public static void addIndex(SqlgGraph sqlgGraph, String schema, String label, boolean vertex, String index, IndexType indexType, List<String> properties) { BatchManager.BatchModeType batchModeType = flushAndSetTxToNone(sqlgGraph); try { //get the abstractLabel's vertex GraphTrave...
[ "public", "static", "void", "addIndex", "(", "SqlgGraph", "sqlgGraph", ",", "String", "schema", ",", "String", "label", ",", "boolean", "vertex", ",", "String", "index", ",", "IndexType", "indexType", ",", "List", "<", "String", ">", "properties", ")", "{", ...
add an index from information schema @param sqlgGraph the graph @param schema the schema name @param label the label name @param vertex is it a vertex or an edge label? @param index the index name @param indexType index type @param properties the column names
[ "add", "an", "index", "from", "information", "schema" ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/structure/topology/TopologyManager.java#L966-L1029
102,595
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/structure/topology/TopologyManager.java
TopologyManager.addSubPartition
public static void addSubPartition(SqlgGraph sqlgGraph, Partition partition) { AbstractLabel abstractLabel = partition.getAbstractLabel(); addSubPartition( sqlgGraph, partition.getParentPartition().getParentPartition() != null, abstractLabel instanceof Ver...
java
public static void addSubPartition(SqlgGraph sqlgGraph, Partition partition) { AbstractLabel abstractLabel = partition.getAbstractLabel(); addSubPartition( sqlgGraph, partition.getParentPartition().getParentPartition() != null, abstractLabel instanceof Ver...
[ "public", "static", "void", "addSubPartition", "(", "SqlgGraph", "sqlgGraph", ",", "Partition", "partition", ")", "{", "AbstractLabel", "abstractLabel", "=", "partition", ".", "getAbstractLabel", "(", ")", ";", "addSubPartition", "(", "sqlgGraph", ",", "partition", ...
Adds the partition to a partition. A new Vertex with label Partition is added and in linked to its parent with the SQLG_SCHEMA_PARTITION_PARTITION_EDGE edge label. @param sqlgGraph
[ "Adds", "the", "partition", "to", "a", "partition", ".", "A", "new", "Vertex", "with", "label", "Partition", "is", "added", "and", "in", "linked", "to", "its", "parent", "with", "the", "SQLG_SCHEMA_PARTITION_PARTITION_EDGE", "edge", "label", "." ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/structure/topology/TopologyManager.java#L1215-L1232
102,596
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/structure/TransactionCache.java
TransactionCache.putVertexIfAbsent
SqlgVertex putVertexIfAbsent(SqlgGraph sqlgGraph, String schema, String table, Long id) { RecordId recordId = RecordId.from(SchemaTable.of(schema, table), id); SqlgVertex sqlgVertex; if (this.cacheVertices) { sqlgVertex = this.vertexCache.get(recordId); if (sqlgVertex == ...
java
SqlgVertex putVertexIfAbsent(SqlgGraph sqlgGraph, String schema, String table, Long id) { RecordId recordId = RecordId.from(SchemaTable.of(schema, table), id); SqlgVertex sqlgVertex; if (this.cacheVertices) { sqlgVertex = this.vertexCache.get(recordId); if (sqlgVertex == ...
[ "SqlgVertex", "putVertexIfAbsent", "(", "SqlgGraph", "sqlgGraph", ",", "String", "schema", ",", "String", "table", ",", "Long", "id", ")", "{", "RecordId", "recordId", "=", "RecordId", ".", "from", "(", "SchemaTable", ".", "of", "(", "schema", ",", "table", ...
The recordId is not referenced in the SqlgVertex. It is important that the value of the WeakHashMap does not reference the key. @param sqlgGraph The graph @return the vertex. If cacheVertices is true and the vertex is cached then the cached vertex will be returned else a the vertex will be instantiated.
[ "The", "recordId", "is", "not", "referenced", "in", "the", "SqlgVertex", ".", "It", "is", "important", "that", "the", "value", "of", "the", "WeakHashMap", "does", "not", "reference", "the", "key", "." ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/structure/TransactionCache.java#L105-L119
102,597
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/structure/topology/GlobalUniqueIndex.java
GlobalUniqueIndex.toJson
private JsonNode toJson(){ ObjectNode result = new ObjectNode(Topology.OBJECT_MAPPER.getNodeFactory()); ArrayNode propertyArrayNode = new ArrayNode(Topology.OBJECT_MAPPER.getNodeFactory()); for (PropertyColumn property : this.properties) { ObjectNode objectNode = property.toNotifyJson()...
java
private JsonNode toJson(){ ObjectNode result = new ObjectNode(Topology.OBJECT_MAPPER.getNodeFactory()); ArrayNode propertyArrayNode = new ArrayNode(Topology.OBJECT_MAPPER.getNodeFactory()); for (PropertyColumn property : this.properties) { ObjectNode objectNode = property.toNotifyJson()...
[ "private", "JsonNode", "toJson", "(", ")", "{", "ObjectNode", "result", "=", "new", "ObjectNode", "(", "Topology", ".", "OBJECT_MAPPER", ".", "getNodeFactory", "(", ")", ")", ";", "ArrayNode", "propertyArrayNode", "=", "new", "ArrayNode", "(", "Topology", ".",...
JSON representation of committed state @return
[ "JSON", "representation", "of", "committed", "state" ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/structure/topology/GlobalUniqueIndex.java#L154-L166
102,598
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/ReplacedStep.java
ReplacedStep.from
public static ReplacedStep from(Topology topology) { ReplacedStep replacedStep = new ReplacedStep<>(); replacedStep.step = null; replacedStep.labels = new HashSet<>(); replacedStep.topology = topology; replacedStep.fake = true; return replacedStep; }
java
public static ReplacedStep from(Topology topology) { ReplacedStep replacedStep = new ReplacedStep<>(); replacedStep.step = null; replacedStep.labels = new HashSet<>(); replacedStep.topology = topology; replacedStep.fake = true; return replacedStep; }
[ "public", "static", "ReplacedStep", "from", "(", "Topology", "topology", ")", "{", "ReplacedStep", "replacedStep", "=", "new", "ReplacedStep", "<>", "(", ")", ";", "replacedStep", ".", "step", "=", "null", ";", "replacedStep", ".", "labels", "=", "new", "Has...
Used for SqlgVertexStepStrategy. It is a fake ReplacedStep to simulate the incoming vertex from which the traversal continues. @param topology @return
[ "Used", "for", "SqlgVertexStepStrategy", ".", "It", "is", "a", "fake", "ReplacedStep", "to", "simulate", "the", "incoming", "vertex", "from", "which", "the", "traversal", "continues", "." ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/ReplacedStep.java#L88-L95
102,599
pietermartin/sqlg
sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/ReplacedStep.java
ReplacedStep.groupIdsBySchemaTable
private Map<SchemaTable, List<Multimap<BiPredicate, RecordId>>> groupIdsBySchemaTable() { Map<SchemaTable, List<Multimap<BiPredicate, RecordId>>> result = new HashMap<>(); for (HasContainer idHasContainer : this.idHasContainers) { Map<SchemaTable, Boolean> newHasContainerMap = new HashMap<>...
java
private Map<SchemaTable, List<Multimap<BiPredicate, RecordId>>> groupIdsBySchemaTable() { Map<SchemaTable, List<Multimap<BiPredicate, RecordId>>> result = new HashMap<>(); for (HasContainer idHasContainer : this.idHasContainers) { Map<SchemaTable, Boolean> newHasContainerMap = new HashMap<>...
[ "private", "Map", "<", "SchemaTable", ",", "List", "<", "Multimap", "<", "BiPredicate", ",", "RecordId", ">", ">", ">", "groupIdsBySchemaTable", "(", ")", "{", "Map", "<", "SchemaTable", ",", "List", "<", "Multimap", "<", "BiPredicate", ",", "RecordId", ">...
Groups the idHasContainers by SchemaTable. Each SchemaTable has a list representing the idHasContainers with the relevant BiPredicate and RecordId @return
[ "Groups", "the", "idHasContainers", "by", "SchemaTable", ".", "Each", "SchemaTable", "has", "a", "list", "representing", "the", "idHasContainers", "with", "the", "relevant", "BiPredicate", "and", "RecordId" ]
c1845a1b31328a5ffda646873b0369ee72af56a7
https://github.com/pietermartin/sqlg/blob/c1845a1b31328a5ffda646873b0369ee72af56a7/sqlg-core/src/main/java/org/umlg/sqlg/sql/parse/ReplacedStep.java#L592-L637