repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/Array.java
Array.getLong
@Override public long getLong(int index) { synchronized (lock) { return CBLConverter.asLong(getMValue(internalArray, index), internalArray); } }
java
@Override public long getLong(int index) { synchronized (lock) { return CBLConverter.asLong(getMValue(internalArray, index), internalArray); } }
[ "@", "Override", "public", "long", "getLong", "(", "int", "index", ")", "{", "synchronized", "(", "lock", ")", "{", "return", "CBLConverter", ".", "asLong", "(", "getMValue", "(", "internalArray", ",", "index", ")", ",", "internalArray", ")", ";", "}", "...
Gets value at the given index as an long. Floating point values will be rounded. The value `true` is returned as 1, `false` as 0. Returns 0 if the value doesn't exist or does not have a numeric value. @param index the index. This value must not exceed the bounds of the array. @return the long value.
[ "Gets", "value", "at", "the", "given", "index", "as", "an", "long", ".", "Floating", "point", "values", "will", "be", "rounded", ".", "The", "value", "true", "is", "returned", "as", "1", "false", "as", "0", ".", "Returns", "0", "if", "the", "value", ...
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/Array.java#L173-L178
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/Array.java
Array.getFloat
@Override public float getFloat(int index) { synchronized (lock) { return CBLConverter.asFloat(getMValue(internalArray, index), internalArray); } }
java
@Override public float getFloat(int index) { synchronized (lock) { return CBLConverter.asFloat(getMValue(internalArray, index), internalArray); } }
[ "@", "Override", "public", "float", "getFloat", "(", "int", "index", ")", "{", "synchronized", "(", "lock", ")", "{", "return", "CBLConverter", ".", "asFloat", "(", "getMValue", "(", "internalArray", ",", "index", ")", ",", "internalArray", ")", ";", "}", ...
Gets value at the given index as an float. Integers will be converted to float. The value `true` is returned as 1.0, `false` as 0.0. Returns 0.0 if the value doesn't exist or does not have a numeric value. @param index the index. This value must not exceed the bounds of the array. @return the float value.
[ "Gets", "value", "at", "the", "given", "index", "as", "an", "float", ".", "Integers", "will", "be", "converted", "to", "float", ".", "The", "value", "true", "is", "returned", "as", "1", ".", "0", "false", "as", "0", ".", "0", ".", "Returns", "0", "...
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/Array.java#L188-L193
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/Array.java
Array.getDouble
@Override public double getDouble(int index) { synchronized (lock) { return CBLConverter.asDouble(getMValue(internalArray, index), internalArray); } }
java
@Override public double getDouble(int index) { synchronized (lock) { return CBLConverter.asDouble(getMValue(internalArray, index), internalArray); } }
[ "@", "Override", "public", "double", "getDouble", "(", "int", "index", ")", "{", "synchronized", "(", "lock", ")", "{", "return", "CBLConverter", ".", "asDouble", "(", "getMValue", "(", "internalArray", ",", "index", ")", ",", "internalArray", ")", ";", "}...
Gets value at the given index as an double. Integers will be converted to double. The value `true` is returned as 1.0, `false` as 0.0. Returns 0.0 if the property doesn't exist or does not have a numeric value. @param index the index. This value must not exceed the bounds of the array. @return the double value.
[ "Gets", "value", "at", "the", "given", "index", "as", "an", "double", ".", "Integers", "will", "be", "converted", "to", "double", ".", "The", "value", "true", "is", "returned", "as", "1", ".", "0", "false", "as", "0", ".", "0", ".", "Returns", "0", ...
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/Array.java#L203-L208
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/Array.java
Array.getBoolean
@Override public boolean getBoolean(int index) { synchronized (lock) { return CBLConverter.asBoolean(getMValue(internalArray, index).asNative(internalArray)); } }
java
@Override public boolean getBoolean(int index) { synchronized (lock) { return CBLConverter.asBoolean(getMValue(internalArray, index).asNative(internalArray)); } }
[ "@", "Override", "public", "boolean", "getBoolean", "(", "int", "index", ")", "{", "synchronized", "(", "lock", ")", "{", "return", "CBLConverter", ".", "asBoolean", "(", "getMValue", "(", "internalArray", ",", "index", ")", ".", "asNative", "(", "internalAr...
Gets value at the given index as a boolean. @param index the index. This value must not exceed the bounds of the array. @return the boolean value.
[ "Gets", "value", "at", "the", "given", "index", "as", "a", "boolean", "." ]
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/Array.java#L216-L221
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/Array.java
Array.getBlob
@Override public Blob getBlob(int index) { synchronized (lock) { return (Blob) getMValue(internalArray, index).asNative(internalArray); } }
java
@Override public Blob getBlob(int index) { synchronized (lock) { return (Blob) getMValue(internalArray, index).asNative(internalArray); } }
[ "@", "Override", "public", "Blob", "getBlob", "(", "int", "index", ")", "{", "synchronized", "(", "lock", ")", "{", "return", "(", "Blob", ")", "getMValue", "(", "internalArray", ",", "index", ")", ".", "asNative", "(", "internalArray", ")", ";", "}", ...
Gets value at the given index as a Blob. Returns null if the value doesn't exist, or its value is not a Blob. @param index the index. This value must not exceed the bounds of the array. @return the Blob value or null.
[ "Gets", "value", "at", "the", "given", "index", "as", "a", "Blob", ".", "Returns", "null", "if", "the", "value", "doesn", "t", "exist", "or", "its", "value", "is", "not", "a", "Blob", "." ]
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/Array.java#L230-L235
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/Array.java
Array.getArray
@Override public Array getArray(int index) { synchronized (lock) { final Object obj = getMValue(internalArray, index).asNative(internalArray); return obj instanceof Array ? (Array) obj : null; } }
java
@Override public Array getArray(int index) { synchronized (lock) { final Object obj = getMValue(internalArray, index).asNative(internalArray); return obj instanceof Array ? (Array) obj : null; } }
[ "@", "Override", "public", "Array", "getArray", "(", "int", "index", ")", "{", "synchronized", "(", "lock", ")", "{", "final", "Object", "obj", "=", "getMValue", "(", "internalArray", ",", "index", ")", ".", "asNative", "(", "internalArray", ")", ";", "r...
Gets a Array at the given index. Return null if the value is not an array. @param index the index. This value must not exceed the bounds of the array. @return the Array object.
[ "Gets", "a", "Array", "at", "the", "given", "index", ".", "Return", "null", "if", "the", "value", "is", "not", "an", "array", "." ]
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/Array.java#L259-L265
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/Array.java
Array.getDictionary
@Override public Dictionary getDictionary(int index) { synchronized (lock) { final Object obj = getMValue(internalArray, index).asNative(internalArray); return obj instanceof Dictionary ? (Dictionary) obj : null; } }
java
@Override public Dictionary getDictionary(int index) { synchronized (lock) { final Object obj = getMValue(internalArray, index).asNative(internalArray); return obj instanceof Dictionary ? (Dictionary) obj : null; } }
[ "@", "Override", "public", "Dictionary", "getDictionary", "(", "int", "index", ")", "{", "synchronized", "(", "lock", ")", "{", "final", "Object", "obj", "=", "getMValue", "(", "internalArray", ",", "index", ")", ".", "asNative", "(", "internalArray", ")", ...
Gets a Dictionary at the given index. Return null if the value is not an dictionary. @param index the index. This value must not exceed the bounds of the array. @return the Dictionary object.
[ "Gets", "a", "Dictionary", "at", "the", "given", "index", ".", "Return", "null", "if", "the", "value", "is", "not", "an", "dictionary", "." ]
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/Array.java#L273-L279
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/Array.java
Array.toList
@NonNull @Override public List<Object> toList() { synchronized (lock) { final int count = (int) internalArray.count(); final List<Object> result = new ArrayList<>(count); for (int index = 0; index < count; index++) { result.add(Fleece.toObject(getMValu...
java
@NonNull @Override public List<Object> toList() { synchronized (lock) { final int count = (int) internalArray.count(); final List<Object> result = new ArrayList<>(count); for (int index = 0; index < count; index++) { result.add(Fleece.toObject(getMValu...
[ "@", "NonNull", "@", "Override", "public", "List", "<", "Object", ">", "toList", "(", ")", "{", "synchronized", "(", "lock", ")", "{", "final", "int", "count", "=", "(", "int", ")", "internalArray", ".", "count", "(", ")", ";", "final", "List", "<", ...
Gets content of the current object as an List. The values contained in the returned List object are all JSON based values. @return the List object representing the content of the current object in the JSON format.
[ "Gets", "content", "of", "the", "current", "object", "as", "an", "List", ".", "The", "values", "contained", "in", "the", "returned", "List", "object", "are", "all", "JSON", "based", "values", "." ]
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/Array.java#L291-L302
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/internal/core/C4Document.java
C4Document.update
public C4Document update(byte[] body, int flags) throws LiteCoreException { return new C4Document(update(handle, body, flags)); }
java
public C4Document update(byte[] body, int flags) throws LiteCoreException { return new C4Document(update(handle, body, flags)); }
[ "public", "C4Document", "update", "(", "byte", "[", "]", "body", ",", "int", "flags", ")", "throws", "LiteCoreException", "{", "return", "new", "C4Document", "(", "update", "(", "handle", ",", "body", ",", "flags", ")", ")", ";", "}" ]
- Purging and Expiration
[ "-", "Purging", "and", "Expiration" ]
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/internal/core/C4Document.java#L282-L284
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/internal/core/C4Query.java
C4Query.run
public C4QueryEnumerator run(C4QueryOptions options, AllocSlice parameters) throws LiteCoreException { if (parameters == null) { parameters = new AllocSlice(null); } return new C4QueryEnumerator(run(handle, options.isRankFullText(), parameters.getHandle())); }
java
public C4QueryEnumerator run(C4QueryOptions options, AllocSlice parameters) throws LiteCoreException { if (parameters == null) { parameters = new AllocSlice(null); } return new C4QueryEnumerator(run(handle, options.isRankFullText(), parameters.getHandle())); }
[ "public", "C4QueryEnumerator", "run", "(", "C4QueryOptions", "options", ",", "AllocSlice", "parameters", ")", "throws", "LiteCoreException", "{", "if", "(", "parameters", "==", "null", ")", "{", "parameters", "=", "new", "AllocSlice", "(", "null", ")", ";", "}...
- Creates a database index, to speed up subsequent queries.
[ "-", "Creates", "a", "database", "index", "to", "speed", "up", "subsequent", "queries", "." ]
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/internal/core/C4Query.java#L134-L138
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/internal/replicator/AbstractCBLWebSocket.java
AbstractCBLWebSocket.socket_open
@SuppressWarnings({"MethodName", "PMD.MethodNamingConventions"}) public static void socket_open( long socket, Object socketFactoryContext, String scheme, String hostname, int port, String path, byte[] optionsFleece) { Log.e(TAG, "CBLWebSocket.socket_op...
java
@SuppressWarnings({"MethodName", "PMD.MethodNamingConventions"}) public static void socket_open( long socket, Object socketFactoryContext, String scheme, String hostname, int port, String path, byte[] optionsFleece) { Log.e(TAG, "CBLWebSocket.socket_op...
[ "@", "SuppressWarnings", "(", "{", "\"MethodName\"", ",", "\"PMD.MethodNamingConventions\"", "}", ")", "public", "static", "void", "socket_open", "(", "long", "socket", ",", "Object", "socketFactoryContext", ",", "String", "scheme", ",", "String", "hostname", ",", ...
!! Called by reflection! Don't change the name.
[ "!!", "Called", "by", "reflection!", "Don", "t", "change", "the", "name", "." ]
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/internal/replicator/AbstractCBLWebSocket.java#L219-L252
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/AbstractReplicator.java
AbstractReplicator.start
public void start() { synchronized (lock) { Log.i(DOMAIN, "Replicator is starting ....."); if (c4repl != null) { Log.i(DOMAIN, "%s has already started", this); return; } Log.i(DOMAIN, "%s: Starting", this); retryCount =...
java
public void start() { synchronized (lock) { Log.i(DOMAIN, "Replicator is starting ....."); if (c4repl != null) { Log.i(DOMAIN, "%s has already started", this); return; } Log.i(DOMAIN, "%s: Starting", this); retryCount =...
[ "public", "void", "start", "(", ")", "{", "synchronized", "(", "lock", ")", "{", "Log", ".", "i", "(", "DOMAIN", ",", "\"Replicator is starting .....\"", ")", ";", "if", "(", "c4repl", "!=", "null", ")", "{", "Log", ".", "i", "(", "DOMAIN", ",", "\"%...
Starts the replicator. This method returns immediately; the replicator runs asynchronously and will report its progress throuh the replicator change notification.
[ "Starts", "the", "replicator", ".", "This", "method", "returns", "immediately", ";", "the", "replicator", "runs", "asynchronously", "and", "will", "report", "its", "progress", "throuh", "the", "replicator", "change", "notification", "." ]
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/AbstractReplicator.java#L330-L342
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/AbstractReplicator.java
AbstractReplicator.stop
public void stop() { synchronized (lock) { Log.i(DOMAIN, "%s: Replicator is stopping ...", this); if (c4repl != null) { c4repl.stop(); // this is async; status will change when repl actually stops } else { Log.i(DOMAIN, "%s: Replicator has been sto...
java
public void stop() { synchronized (lock) { Log.i(DOMAIN, "%s: Replicator is stopping ...", this); if (c4repl != null) { c4repl.stop(); // this is async; status will change when repl actually stops } else { Log.i(DOMAIN, "%s: Replicator has been sto...
[ "public", "void", "stop", "(", ")", "{", "synchronized", "(", "lock", ")", "{", "Log", ".", "i", "(", "DOMAIN", ",", "\"%s: Replicator is stopping ...\"", ",", "this", ")", ";", "if", "(", "c4repl", "!=", "null", ")", "{", "c4repl", ".", "stop", "(", ...
Stops a running replicator. This method returns immediately; when the replicator actually stops, the replicator will change its status's activity level to `kCBLStopped` and the replicator change notification will be notified accordingly.
[ "Stops", "a", "running", "replicator", ".", "This", "method", "returns", "immediately", ";", "when", "the", "replicator", "actually", "stops", "the", "replicator", "will", "change", "its", "status", "s", "activity", "level", "to", "kCBLStopped", "and", "the", ...
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/AbstractReplicator.java#L349-L367
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/AbstractReplicator.java
AbstractReplicator.resetCheckpoint
public void resetCheckpoint() { synchronized (lock) { if (c4ReplStatus != null && c4ReplStatus .getActivityLevel() != C4ReplicatorStatus.ActivityLevel.STOPPED) { throw new IllegalStateException( "Replicator is not stopped. Resetting checkpoint is o...
java
public void resetCheckpoint() { synchronized (lock) { if (c4ReplStatus != null && c4ReplStatus .getActivityLevel() != C4ReplicatorStatus.ActivityLevel.STOPPED) { throw new IllegalStateException( "Replicator is not stopped. Resetting checkpoint is o...
[ "public", "void", "resetCheckpoint", "(", ")", "{", "synchronized", "(", "lock", ")", "{", "if", "(", "c4ReplStatus", "!=", "null", "&&", "c4ReplStatus", ".", "getActivityLevel", "(", ")", "!=", "C4ReplicatorStatus", ".", "ActivityLevel", ".", "STOPPED", ")", ...
Resets the local checkpoint of the replicator, meaning that it will read all changes since the beginning of time from the remote database. This can only be called when the replicator is in a stopped state.
[ "Resets", "the", "local", "checkpoint", "of", "the", "replicator", "meaning", "that", "it", "will", "read", "all", "changes", "since", "the", "beginning", "of", "time", "from", "the", "remote", "database", ".", "This", "can", "only", "be", "called", "when", ...
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/AbstractReplicator.java#L465-L475
train
couchbase/couchbase-lite-java
src/main/java/com/couchbase/lite/AbstractQuery.java
AbstractQuery.setParameters
@Override public void setParameters(Parameters parameters) { final LiveQuery liveQuery; synchronized (lock) { this.parameters = parameters != null ? parameters.readonlyCopy() : null; liveQuery = this.query; } // https://github.com/couchbase/couchbase-lite-and...
java
@Override public void setParameters(Parameters parameters) { final LiveQuery liveQuery; synchronized (lock) { this.parameters = parameters != null ? parameters.readonlyCopy() : null; liveQuery = this.query; } // https://github.com/couchbase/couchbase-lite-and...
[ "@", "Override", "public", "void", "setParameters", "(", "Parameters", "parameters", ")", "{", "final", "LiveQuery", "liveQuery", ";", "synchronized", "(", "lock", ")", "{", "this", ".", "parameters", "=", "parameters", "!=", "null", "?", "parameters", ".", ...
Set parameters should copy the given parameters. Set a new parameter will also re-execute the query if there is at least one listener listening for changes.
[ "Set", "parameters", "should", "copy", "the", "given", "parameters", ".", "Set", "a", "new", "parameter", "will", "also", "re", "-", "execute", "the", "query", "if", "there", "is", "at", "least", "one", "listener", "listening", "for", "changes", "." ]
cb72c44186456e6191a9ad0a7feb310011d0b081
https://github.com/couchbase/couchbase-lite-java/blob/cb72c44186456e6191a9ad0a7feb310011d0b081/src/main/java/com/couchbase/lite/AbstractQuery.java#L95-L106
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/transport/ServletHelper.java
ServletHelper.initServiceEndpoint
private static Endpoint initServiceEndpoint(EndpointRegistry epRegistry, String contextPath, String servletName) { if (contextPath.startsWith("/")) contextPath = contextPath.substring(1); final ObjectName oname = ObjectNameFactory.create(Endpoint.SEPID_DOMAIN + ":" + Endpoint.SEPID_PROPERTY_CON...
java
private static Endpoint initServiceEndpoint(EndpointRegistry epRegistry, String contextPath, String servletName) { if (contextPath.startsWith("/")) contextPath = contextPath.substring(1); final ObjectName oname = ObjectNameFactory.create(Endpoint.SEPID_DOMAIN + ":" + Endpoint.SEPID_PROPERTY_CON...
[ "private", "static", "Endpoint", "initServiceEndpoint", "(", "EndpointRegistry", "epRegistry", ",", "String", "contextPath", ",", "String", "servletName", ")", "{", "if", "(", "contextPath", ".", "startsWith", "(", "\"/\"", ")", ")", "contextPath", "=", "contextPa...
Initialize the service endpoint
[ "Initialize", "the", "service", "endpoint" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/transport/ServletHelper.java#L72-L89
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/BusHolder.java
BusHolder.createServerConfigurer
public Configurer createServerConfigurer(BindingCustomization customization, WSDLFilePublisher wsdlPublisher, ArchiveDeployment dep) { ServerBeanCustomizer customizer = new ServerBeanCustomizer(); customizer.setBindingCustomization(customization); customizer.setWsdlPublisher(wsdlPublisher); c...
java
public Configurer createServerConfigurer(BindingCustomization customization, WSDLFilePublisher wsdlPublisher, ArchiveDeployment dep) { ServerBeanCustomizer customizer = new ServerBeanCustomizer(); customizer.setBindingCustomization(customization); customizer.setWsdlPublisher(wsdlPublisher); c...
[ "public", "Configurer", "createServerConfigurer", "(", "BindingCustomization", "customization", ",", "WSDLFilePublisher", "wsdlPublisher", ",", "ArchiveDeployment", "dep", ")", "{", "ServerBeanCustomizer", "customizer", "=", "new", "ServerBeanCustomizer", "(", ")", ";", "...
A convenient method for getting a jbossws cxf server configurer @param customization The binding customization to set in the configurer, if any @param wsdlPublisher The wsdl file publisher to set in the configurer, if any @param dep The deployment @return The new jbossws cxf configurer
[ "A", "convenient", "method", "for", "getting", "a", "jbossws", "cxf", "server", "configurer" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/BusHolder.java#L342-L349
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SoapAddressRewriteHelper.java
SoapAddressRewriteHelper.rewriteSoapAddress
private static String rewriteSoapAddress(SOAPAddressRewriteMetadata sarm, String origAddress, String newAddress, String uriScheme) { try { URL url = new URL(newAddress); String path = url.getPath(); String host = sarm.getWebServiceHost(); String port = getDotPortNumber...
java
private static String rewriteSoapAddress(SOAPAddressRewriteMetadata sarm, String origAddress, String newAddress, String uriScheme) { try { URL url = new URL(newAddress); String path = url.getPath(); String host = sarm.getWebServiceHost(); String port = getDotPortNumber...
[ "private", "static", "String", "rewriteSoapAddress", "(", "SOAPAddressRewriteMetadata", "sarm", ",", "String", "origAddress", ",", "String", "newAddress", ",", "String", "uriScheme", ")", "{", "try", "{", "URL", "url", "=", "new", "URL", "(", "newAddress", ")", ...
Rewrite the provided address according to the current server configuration and always using the specified uriScheme. @param sarm The deployment SOAPAddressRewriteMetadata @param origAddress The source address @param newAddress The new (candidate) address @param uriScheme The uriScheme to use for ...
[ "Rewrite", "the", "provided", "address", "according", "to", "the", "current", "server", "configuration", "and", "always", "using", "the", "specified", "uriScheme", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SoapAddressRewriteHelper.java#L173-L204
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/MapToBeanConverter.java
MapToBeanConverter.attributesByBeanRef
protected Map<String, String> attributesByBeanRef(String beanRef) { Map<String, String> result = null; for (Entry<String, String> e : map.entrySet()) { final String k = e.getKey(); if (k.startsWith(beanRef) && k.startsWith(DOT, beanRef.length())) { if (result == null) { ...
java
protected Map<String, String> attributesByBeanRef(String beanRef) { Map<String, String> result = null; for (Entry<String, String> e : map.entrySet()) { final String k = e.getKey(); if (k.startsWith(beanRef) && k.startsWith(DOT, beanRef.length())) { if (result == null) { ...
[ "protected", "Map", "<", "String", ",", "String", ">", "attributesByBeanRef", "(", "String", "beanRef", ")", "{", "Map", "<", "String", ",", "String", ">", "result", "=", "null", ";", "for", "(", "Entry", "<", "String", ",", "String", ">", "e", ":", ...
Return an attribute name to attribute value map @param beanRef @return
[ "Return", "an", "attribute", "name", "to", "attribute", "value", "map" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/MapToBeanConverter.java#L111-L127
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/SecurityActions.java
SecurityActions.getSystemProperty
static String getSystemProperty(final String name, final String defaultValue) { PrivilegedAction<String> action = new PrivilegedAction<String>() { public String run() { return System.getProperty(name, defaultValue); } }; return AccessController.doPrivile...
java
static String getSystemProperty(final String name, final String defaultValue) { PrivilegedAction<String> action = new PrivilegedAction<String>() { public String run() { return System.getProperty(name, defaultValue); } }; return AccessController.doPrivile...
[ "static", "String", "getSystemProperty", "(", "final", "String", "name", ",", "final", "String", "defaultValue", ")", "{", "PrivilegedAction", "<", "String", ">", "action", "=", "new", "PrivilegedAction", "<", "String", ">", "(", ")", "{", "public", "String", ...
Return the current value of the specified system property @param name @param defaultValue @return
[ "Return", "the", "current", "value", "of", "the", "specified", "system", "property" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/SecurityActions.java#L90-L100
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/SecurityActions.java
SecurityActions.loadClass
static Class<?> loadClass(final ClassLoader cl, final String name) throws PrivilegedActionException, ClassNotFoundException { SecurityManager sm = System.getSecurityManager(); if (sm == null) { return cl.loadClass(name); } else { return AccessController.doPrivile...
java
static Class<?> loadClass(final ClassLoader cl, final String name) throws PrivilegedActionException, ClassNotFoundException { SecurityManager sm = System.getSecurityManager(); if (sm == null) { return cl.loadClass(name); } else { return AccessController.doPrivile...
[ "static", "Class", "<", "?", ">", "loadClass", "(", "final", "ClassLoader", "cl", ",", "final", "String", "name", ")", "throws", "PrivilegedActionException", ",", "ClassNotFoundException", "{", "SecurityManager", "sm", "=", "System", ".", "getSecurityManager", "("...
Load a class using the provided classloader @param name @return @throws PrivilegedActionException
[ "Load", "a", "class", "using", "the", "provided", "classloader" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/SecurityActions.java#L190-L213
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/JBossWSInvoker.java
JBossWSInvoker.invoke
@Override public Object invoke(Exchange exchange, Object o) { BindingOperationInfo bop = exchange.getBindingOperationInfo(); MethodDispatcher md = (MethodDispatcher) exchange.getService().get(MethodDispatcher.class.getName()); List<Object> params = null; if (o instanceof List) { p...
java
@Override public Object invoke(Exchange exchange, Object o) { BindingOperationInfo bop = exchange.getBindingOperationInfo(); MethodDispatcher md = (MethodDispatcher) exchange.getService().get(MethodDispatcher.class.getName()); List<Object> params = null; if (o instanceof List) { p...
[ "@", "Override", "public", "Object", "invoke", "(", "Exchange", "exchange", ",", "Object", "o", ")", "{", "BindingOperationInfo", "bop", "=", "exchange", ".", "getBindingOperationInfo", "(", ")", ";", "MethodDispatcher", "md", "=", "(", "MethodDispatcher", ")", ...
This overrides org.apache.cxf.jaxws.AbstractInvoker in order for using the JBoss AS target bean and simplifying the business method matching
[ "This", "overrides", "org", ".", "apache", ".", "cxf", ".", "jaxws", ".", "AbstractInvoker", "in", "order", "for", "using", "the", "JBoss", "AS", "target", "bean", "and", "simplifying", "the", "business", "method", "matching" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/JBossWSInvoker.java#L127-L147
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/JBossWSInvoker.java
JBossWSInvoker.performInvocation
@Override protected Object performInvocation(Exchange exchange, final Object serviceObject, Method m, Object[] paramArray) throws Exception { Endpoint ep = exchange.get(Endpoint.class); final InvocationHandler invHandler = ep.getInvocationHandler(); final Invocation inv = createInvocati...
java
@Override protected Object performInvocation(Exchange exchange, final Object serviceObject, Method m, Object[] paramArray) throws Exception { Endpoint ep = exchange.get(Endpoint.class); final InvocationHandler invHandler = ep.getInvocationHandler(); final Invocation inv = createInvocati...
[ "@", "Override", "protected", "Object", "performInvocation", "(", "Exchange", "exchange", ",", "final", "Object", "serviceObject", ",", "Method", "m", ",", "Object", "[", "]", "paramArray", ")", "throws", "Exception", "{", "Endpoint", "ep", "=", "exchange", "....
This overrides org.apache.cxf.jaxws.AbstractInvoker in order for using the JBossWS integration logic to invoke the JBoss AS target bean.
[ "This", "overrides", "org", ".", "apache", ".", "cxf", ".", "jaxws", ".", "AbstractInvoker", "in", "order", "for", "using", "the", "JBossWS", "integration", "logic", "to", "invoke", "the", "JBoss", "AS", "target", "bean", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/JBossWSInvoker.java#L153-L178
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/metadata/MetadataBuilder.java
MetadataBuilder.getTypeNamespace
private static String getTypeNamespace(String packageName) { StringBuilder sb = new StringBuilder("http://"); //Generate tokens with '.' as delimiter StringTokenizer st = new StringTokenizer(packageName, "."); //Have a LIFO queue for the tokens Stack<String> stk = new Stack<String>();...
java
private static String getTypeNamespace(String packageName) { StringBuilder sb = new StringBuilder("http://"); //Generate tokens with '.' as delimiter StringTokenizer st = new StringTokenizer(packageName, "."); //Have a LIFO queue for the tokens Stack<String> stk = new Stack<String>();...
[ "private", "static", "String", "getTypeNamespace", "(", "String", "packageName", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "\"http://\"", ")", ";", "//Generate tokens with '.' as delimiter", "StringTokenizer", "st", "=", "new", "StringTokenizer"...
Extracts the typeNS given the package name Algorithm is based on the one specified in JAXWS v2.0 spec
[ "Extracts", "the", "typeNS", "given", "the", "package", "name", "Algorithm", "is", "based", "on", "the", "one", "specified", "in", "JAXWS", "v2", ".", "0", "spec" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/metadata/MetadataBuilder.java#L330-L356
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/EndpointImpl.java
EndpointImpl.publishContractToFilesystem
protected void publishContractToFilesystem() { // Publish wsdl after endpoint deployment, as required by JSR-109, section 8.2 if (wsdlPublisher != null) { Endpoint endpoint = getServer().getEndpoint(); Service service = endpoint.getService(); try { St...
java
protected void publishContractToFilesystem() { // Publish wsdl after endpoint deployment, as required by JSR-109, section 8.2 if (wsdlPublisher != null) { Endpoint endpoint = getServer().getEndpoint(); Service service = endpoint.getService(); try { St...
[ "protected", "void", "publishContractToFilesystem", "(", ")", "{", "// Publish wsdl after endpoint deployment, as required by JSR-109, section 8.2", "if", "(", "wsdlPublisher", "!=", "null", ")", "{", "Endpoint", "endpoint", "=", "getServer", "(", ")", ".", "getEndpoint", ...
Publish the contract to a file using the configured wsdl publisher
[ "Publish", "the", "contract", "to", "a", "file", "using", "the", "configured", "wsdl", "publisher" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/EndpointImpl.java#L133-L159
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/EndpointImpl.java
EndpointImpl.updateSoapAddress
private void updateSoapAddress() { final SOAPAddressRewriteMetadata metadata = getSOAPAddressRewriteMetadata(); if (metadata.isModifySOAPAddress()) { //- code-first handling List<ServiceInfo> sevInfos = getServer().getEndpoint().getService().getServiceInfos(); for (ServiceInfo si:...
java
private void updateSoapAddress() { final SOAPAddressRewriteMetadata metadata = getSOAPAddressRewriteMetadata(); if (metadata.isModifySOAPAddress()) { //- code-first handling List<ServiceInfo> sevInfos = getServer().getEndpoint().getService().getServiceInfos(); for (ServiceInfo si:...
[ "private", "void", "updateSoapAddress", "(", ")", "{", "final", "SOAPAddressRewriteMetadata", "metadata", "=", "getSOAPAddressRewriteMetadata", "(", ")", ";", "if", "(", "metadata", ".", "isModifySOAPAddress", "(", ")", ")", "{", "//- code-first handling", "List", "...
For both code-first and wsdl-first scenarios, reset the endpoint address so that it is written to the generated wsdl file.
[ "For", "both", "code", "-", "first", "and", "wsdl", "-", "first", "scenarios", "reset", "the", "endpoint", "address", "so", "that", "it", "is", "written", "to", "the", "generated", "wsdl", "file", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/EndpointImpl.java#L210-L231
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/RequestHandlerImpl.java
RequestHandlerImpl.findDestination
private AbstractHTTPDestination findDestination(HttpServletRequest req, Bus bus) throws ServletException { // Find destination based on request URI String requestURI = req.getRequestURI(); DestinationRegistry destRegistry = getDestinationRegistryFromBus(bus); if (destRegistry == null) {...
java
private AbstractHTTPDestination findDestination(HttpServletRequest req, Bus bus) throws ServletException { // Find destination based on request URI String requestURI = req.getRequestURI(); DestinationRegistry destRegistry = getDestinationRegistryFromBus(bus); if (destRegistry == null) {...
[ "private", "AbstractHTTPDestination", "findDestination", "(", "HttpServletRequest", "req", ",", "Bus", "bus", ")", "throws", "ServletException", "{", "// Find destination based on request URI", "String", "requestURI", "=", "req", ".", "getRequestURI", "(", ")", ";", "De...
Finds destination based on request URI @param requestURI to be recognized @return destination associated with the request URI @throws ServletException when destination wasn't found
[ "Finds", "destination", "based", "on", "request", "URI" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/RequestHandlerImpl.java#L138-L179
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SEDProcessor.java
SEDProcessor.getRegexp
private static String getRegexp(SedArguments args) { if (args.isRegexpSet()) { return args.getRegexp(); } if (args.isString1Set()) { return args.getString1(); } return ""; }
java
private static String getRegexp(SedArguments args) { if (args.isRegexpSet()) { return args.getRegexp(); } if (args.isString1Set()) { return args.getString1(); } return ""; }
[ "private", "static", "String", "getRegexp", "(", "SedArguments", "args", ")", "{", "if", "(", "args", ".", "isRegexpSet", "(", ")", ")", "{", "return", "args", ".", "getRegexp", "(", ")", ";", "}", "if", "(", "args", ".", "isString1Set", "(", ")", ")...
Returns the regexp operand from args, either called "regexp" or "string1". If none of the two is set, an empty string is returned. @param args the args with operand values @return the regexp argument from "regexp" or "string1" or an empty string of none of the two operands is set
[ "Returns", "the", "regexp", "operand", "from", "args", "either", "called", "regexp", "or", "string1", ".", "If", "none", "of", "the", "two", "is", "set", "an", "empty", "string", "is", "returned", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SEDProcessor.java#L84-L95
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SEDProcessor.java
SEDProcessor.getReplacement
private static String getReplacement(SedArguments args) { if (args.isReplacementSet()) { return args.getReplacement(); } if (args.isString2Set()) { return args.getString2(); } return ""; }
java
private static String getReplacement(SedArguments args) { if (args.isReplacementSet()) { return args.getReplacement(); } if (args.isString2Set()) { return args.getString2(); } return ""; }
[ "private", "static", "String", "getReplacement", "(", "SedArguments", "args", ")", "{", "if", "(", "args", ".", "isReplacementSet", "(", ")", ")", "{", "return", "args", ".", "getReplacement", "(", ")", ";", "}", "if", "(", "args", ".", "isString2Set", "...
Returns the replacement operand from args, either called "replacement" or "string2". If none of the two is set, an empty string is returned. @param args the args with operand values @return the replacement argument from "replacement" or "string2" or an empty string of none of the two operands is set
[ "Returns", "the", "replacement", "operand", "from", "args", "either", "called", "replacement", "or", "string2", ".", "If", "none", "of", "the", "two", "is", "set", "an", "empty", "string", "is", "returned", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SEDProcessor.java#L106-L117
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SEDProcessor.java
SEDProcessor.findStartTrimWhitespace
private static int findStartTrimWhitespace(CharSequence s) { final int len = s.length(); for (int i = 0; i < len; i++) { if (!Character.isWhitespace(s.charAt(i))) { return i; } } return len; }
java
private static int findStartTrimWhitespace(CharSequence s) { final int len = s.length(); for (int i = 0; i < len; i++) { if (!Character.isWhitespace(s.charAt(i))) { return i; } } return len; }
[ "private", "static", "int", "findStartTrimWhitespace", "(", "CharSequence", "s", ")", "{", "final", "int", "len", "=", "s", ".", "length", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "{", "if", "(",...
Finds and returns the start of the given sequence after trimming whitespace characters from the left. @param s the character sequence @return the index containing the first non-whitespace character, or the length of the character sequence if all characters are blank
[ "Finds", "and", "returns", "the", "start", "of", "the", "given", "sequence", "after", "trimming", "whitespace", "characters", "from", "the", "left", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SEDProcessor.java#L356-L367
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SEDProcessor.java
SEDProcessor.findWhitespace
private static int findWhitespace(CharSequence s, int start) { final int len = s.length(); for (int i = start; i < len; i++) { if (Character.isWhitespace(s.charAt(i))) { return i; } } return len; }
java
private static int findWhitespace(CharSequence s, int start) { final int len = s.length(); for (int i = start; i < len; i++) { if (Character.isWhitespace(s.charAt(i))) { return i; } } return len; }
[ "private", "static", "int", "findWhitespace", "(", "CharSequence", "s", ",", "int", "start", ")", "{", "final", "int", "len", "=", "s", ".", "length", "(", ")", ";", "for", "(", "int", "i", "=", "start", ";", "i", "<", "len", ";", "i", "++", ")",...
Finds and returns the first whitespace character in the given sequence at or after start. Returns the length of the string if no whitespace is found. @param s the character sequence @param start the first index to consider in the char sequence @return the index containing the first whitespace character at or after sta...
[ "Finds", "and", "returns", "the", "first", "whitespace", "character", "in", "the", "given", "sequence", "at", "or", "after", "start", ".", "Returns", "the", "length", "of", "the", "string", "if", "no", "whitespace", "is", "found", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/addressRewrite/SEDProcessor.java#L382-L393
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/JBossWSBusFactory.java
JBossWSBusFactory.getClassLoaderDefaultBus
public static Bus getClassLoaderDefaultBus(final ClassLoader classloader, final ClientBusSelector clientBusSelector) { Bus classLoaderBus; synchronized (classLoaderBusses) { classLoaderBus = classLoaderBusses.get(classloader); if (classLoaderBus == null) { classLoaderBus = clie...
java
public static Bus getClassLoaderDefaultBus(final ClassLoader classloader, final ClientBusSelector clientBusSelector) { Bus classLoaderBus; synchronized (classLoaderBusses) { classLoaderBus = classLoaderBusses.get(classloader); if (classLoaderBus == null) { classLoaderBus = clie...
[ "public", "static", "Bus", "getClassLoaderDefaultBus", "(", "final", "ClassLoader", "classloader", ",", "final", "ClientBusSelector", "clientBusSelector", ")", "{", "Bus", "classLoaderBus", ";", "synchronized", "(", "classLoaderBusses", ")", "{", "classLoaderBus", "=", ...
Gets the default bus for the given classloader; if a new Bus is needed, the creation is delegated to the specified ClientBusSelector instance. @param classloader @param clientBusSelector @return
[ "Gets", "the", "default", "bus", "for", "the", "given", "classloader", ";", "if", "a", "new", "Bus", "is", "needed", "the", "creation", "is", "delegated", "to", "the", "specified", "ClientBusSelector", "instance", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/JBossWSBusFactory.java#L114-L127
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/JBossWSBusFactory.java
JBossWSBusFactory.getClassLoaderDefaultBus
public static Bus getClassLoaderDefaultBus(final ClassLoader classloader) { Bus classLoaderBus; synchronized (classLoaderBusses) { classLoaderBus = classLoaderBusses.get(classloader); if (classLoaderBus == null) { classLoaderBus = new JBossWSBusFactory().createBus(); ...
java
public static Bus getClassLoaderDefaultBus(final ClassLoader classloader) { Bus classLoaderBus; synchronized (classLoaderBusses) { classLoaderBus = classLoaderBusses.get(classloader); if (classLoaderBus == null) { classLoaderBus = new JBossWSBusFactory().createBus(); ...
[ "public", "static", "Bus", "getClassLoaderDefaultBus", "(", "final", "ClassLoader", "classloader", ")", "{", "Bus", "classLoaderBus", ";", "synchronized", "(", "classLoaderBusses", ")", "{", "classLoaderBus", "=", "classLoaderBusses", ".", "get", "(", "classloader", ...
Gets the default bus for the given classloader @param classloader @return
[ "Gets", "the", "default", "bus", "for", "the", "given", "classloader" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/JBossWSBusFactory.java#L135-L148
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/JBossWSBusFactory.java
JBossWSBusFactory.clearDefaultBusForAnyClassLoader
public static void clearDefaultBusForAnyClassLoader(final Bus bus) { synchronized (classLoaderBusses) { for (final Iterator<Bus> iterator = classLoaderBusses.values().iterator(); iterator.hasNext();) { Bus itBus = iterator.next(); if (bus == null || itBus == null|| ...
java
public static void clearDefaultBusForAnyClassLoader(final Bus bus) { synchronized (classLoaderBusses) { for (final Iterator<Bus> iterator = classLoaderBusses.values().iterator(); iterator.hasNext();) { Bus itBus = iterator.next(); if (bus == null || itBus == null|| ...
[ "public", "static", "void", "clearDefaultBusForAnyClassLoader", "(", "final", "Bus", "bus", ")", "{", "synchronized", "(", "classLoaderBusses", ")", "{", "for", "(", "final", "Iterator", "<", "Bus", ">", "iterator", "=", "classLoaderBusses", ".", "values", "(", ...
Removes a bus from being the default bus for any classloader @param bus
[ "Removes", "a", "bus", "from", "being", "the", "default", "bus", "for", "any", "classloader" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/JBossWSBusFactory.java#L155-L165
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ProviderImpl.java
ProviderImpl.checkAndFixContextClassLoader
static boolean checkAndFixContextClassLoader(ClassLoader origClassLoader) { try { origClassLoader.loadClass(ProviderImpl.class.getName()); } catch (Exception e) { //[JBWS-3223] On AS7 the TCCL that's set for basic (non-ws-endpoint) servlet/ejb3 //apps doesn't ...
java
static boolean checkAndFixContextClassLoader(ClassLoader origClassLoader) { try { origClassLoader.loadClass(ProviderImpl.class.getName()); } catch (Exception e) { //[JBWS-3223] On AS7 the TCCL that's set for basic (non-ws-endpoint) servlet/ejb3 //apps doesn't ...
[ "static", "boolean", "checkAndFixContextClassLoader", "(", "ClassLoader", "origClassLoader", ")", "{", "try", "{", "origClassLoader", ".", "loadClass", "(", "ProviderImpl", ".", "class", ".", "getName", "(", ")", ")", ";", "}", "catch", "(", "Exception", "e", ...
Ensure the current context classloader can load this ProviderImpl class. @return true if the TCCL has been changed, false otherwise
[ "Ensure", "the", "current", "context", "classloader", "can", "load", "this", "ProviderImpl", "class", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ProviderImpl.java#L347-L375
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/Jdk9PlusJBossModulesAwareCompiler.java
Jdk9PlusJBossModulesAwareCompiler.compileFiles
@Override public boolean compileFiles(String[] files) { JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); if (compiler == null) { throw new IllegalStateException( "No compiler detected, make sure you are running on top of a JDK instead of a JRE."); } S...
java
@Override public boolean compileFiles(String[] files) { JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); if (compiler == null) { throw new IllegalStateException( "No compiler detected, make sure you are running on top of a JDK instead of a JRE."); } S...
[ "@", "Override", "public", "boolean", "compileFiles", "(", "String", "[", "]", "files", ")", "{", "JavaCompiler", "compiler", "=", "ToolProvider", ".", "getSystemJavaCompiler", "(", ")", ";", "if", "(", "compiler", "==", "null", ")", "{", "throw", "new", "...
unix file separator
[ "unix", "file", "separator" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/tools/Jdk9PlusJBossModulesAwareCompiler.java#L57-L71
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/transport/JBossWSDestinationRegistryImpl.java
JBossWSDestinationRegistryImpl.getTrimmedPath
@Override public String getTrimmedPath(String path) { if (path == null) { return "/"; } if (!path.startsWith("/")) { try { path = new URL(path).getPath(); } catch (MalformedURLException ex) { // ignore ...
java
@Override public String getTrimmedPath(String path) { if (path == null) { return "/"; } if (!path.startsWith("/")) { try { path = new URL(path).getPath(); } catch (MalformedURLException ex) { // ignore ...
[ "@", "Override", "public", "String", "getTrimmedPath", "(", "String", "path", ")", "{", "if", "(", "path", "==", "null", ")", "{", "return", "\"/\"", ";", "}", "if", "(", "!", "path", ".", "startsWith", "(", "\"/\"", ")", ")", "{", "try", "{", "pat...
Return a real path value, removing the protocol, host and port if specified. @param path @return trimmed path
[ "Return", "a", "real", "path", "value", "removing", "the", "protocol", "host", "and", "port", "if", "specified", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/transport/JBossWSDestinationRegistryImpl.java#L47-L70
train
jbossws/jbossws-cxf
modules/addons/transports/http/undertow/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/undertow/UndertowServerEngineFactory.java
UndertowServerEngineFactory.setBus
@Resource(name = "cxf") public final void setBus(Bus bus) { assert this.bus == null || this.bus == bus; this.bus = bus; if (bus != null) { bus.setExtension(this, UndertowServerEngineFactory.class); lifeCycleManager = bus.getExtension(BusLifeCycleManager.class); i...
java
@Resource(name = "cxf") public final void setBus(Bus bus) { assert this.bus == null || this.bus == bus; this.bus = bus; if (bus != null) { bus.setExtension(this, UndertowServerEngineFactory.class); lifeCycleManager = bus.getExtension(BusLifeCycleManager.class); i...
[ "@", "Resource", "(", "name", "=", "\"cxf\"", ")", "public", "final", "void", "setBus", "(", "Bus", "bus", ")", "{", "assert", "this", ".", "bus", "==", "null", "||", "this", ".", "bus", "==", "bus", ";", "this", ".", "bus", "=", "bus", ";", "if"...
This call is used to set the bus. It should only be called once. @param bus
[ "This", "call", "is", "used", "to", "set", "the", "bus", ".", "It", "should", "only", "be", "called", "once", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/addons/transports/http/undertow/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/undertow/UndertowServerEngineFactory.java#L60-L74
train
jbossws/jbossws-cxf
modules/addons/transports/http/undertow/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/undertow/UndertowServerEngineFactory.java
UndertowServerEngineFactory.retrieveHttpServerEngine
public synchronized UndertowServerEngine retrieveHttpServerEngine(int port) { UndertowServerEngine engine = null; synchronized(portMap) { engine = portMap.get(port); } return engine; }
java
public synchronized UndertowServerEngine retrieveHttpServerEngine(int port) { UndertowServerEngine engine = null; synchronized(portMap) { engine = portMap.get(port); } return engine; }
[ "public", "synchronized", "UndertowServerEngine", "retrieveHttpServerEngine", "(", "int", "port", ")", "{", "UndertowServerEngine", "engine", "=", "null", ";", "synchronized", "(", "portMap", ")", "{", "engine", "=", "portMap", ".", "get", "(", "port", ")", ";",...
Retrieve a previously configured HttpServerEngine for the given port. If none exists, this call returns null.
[ "Retrieve", "a", "previously", "configured", "HttpServerEngine", "for", "the", "given", "port", ".", "If", "none", "exists", "this", "call", "returns", "null", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/addons/transports/http/undertow/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/undertow/UndertowServerEngineFactory.java#L85-L93
train
jbossws/jbossws-cxf
modules/addons/transports/http/undertow/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/undertow/UndertowServerEngineFactory.java
UndertowServerEngineFactory.destroyForPort
public synchronized void destroyForPort(int port) { synchronized(portMap) { UndertowServerEngine ref = portMap.remove(port); if (ref != null) { if (LOG.isDebugEnabled()) { LOG.debug("Stopping HttpServer Engine on port " + port + "."); ...
java
public synchronized void destroyForPort(int port) { synchronized(portMap) { UndertowServerEngine ref = portMap.remove(port); if (ref != null) { if (LOG.isDebugEnabled()) { LOG.debug("Stopping HttpServer Engine on port " + port + "."); ...
[ "public", "synchronized", "void", "destroyForPort", "(", "int", "port", ")", "{", "synchronized", "(", "portMap", ")", "{", "UndertowServerEngine", "ref", "=", "portMap", ".", "remove", "(", "port", ")", ";", "if", "(", "ref", "!=", "null", ")", "{", "if...
This method removes the Server Engine from the port map and stops it.
[ "This", "method", "removes", "the", "Server", "Engine", "from", "the", "port", "map", "and", "stops", "it", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/addons/transports/http/undertow/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/undertow/UndertowServerEngineFactory.java#L124-L145
train
jbossws/jbossws-cxf
modules/addons/transports/http/undertow/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/undertow/UndertowServerEngine.java
UndertowServerEngine.shutdown
public synchronized void shutdown() { if (factory != null && handlerCount == 0) { factory.destroyForPort(port); } else { LOG.warnv("Failed to shutdown Undertow server on port {0,number,####0} because it is still in use", port); } }
java
public synchronized void shutdown() { if (factory != null && handlerCount == 0) { factory.destroyForPort(port); } else { LOG.warnv("Failed to shutdown Undertow server on port {0,number,####0} because it is still in use", port); } }
[ "public", "synchronized", "void", "shutdown", "(", ")", "{", "if", "(", "factory", "!=", "null", "&&", "handlerCount", "==", "0", ")", "{", "factory", ".", "destroyForPort", "(", "port", ")", ";", "}", "else", "{", "LOG", ".", "warnv", "(", "\"Failed t...
This method will shut down the server engine and remove it from the factory's cache.
[ "This", "method", "will", "shut", "down", "the", "server", "engine", "and", "remove", "it", "from", "the", "factory", "s", "cache", "." ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/addons/transports/http/undertow/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/undertow/UndertowServerEngine.java#L129-L139
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/BeanCustomizer.java
BeanCustomizer.configureEndpointFactory
protected void configureEndpointFactory(AbstractWSDLBasedEndpointFactory factory) { //Configure binding customization if (customization != null) { ReflectionServiceFactoryBean serviceFactory = factory.getServiceFactory(); //customize default databinding (early pulls in ServiceFact...
java
protected void configureEndpointFactory(AbstractWSDLBasedEndpointFactory factory) { //Configure binding customization if (customization != null) { ReflectionServiceFactoryBean serviceFactory = factory.getServiceFactory(); //customize default databinding (early pulls in ServiceFact...
[ "protected", "void", "configureEndpointFactory", "(", "AbstractWSDLBasedEndpointFactory", "factory", ")", "{", "//Configure binding customization", "if", "(", "customization", "!=", "null", ")", "{", "ReflectionServiceFactoryBean", "serviceFactory", "=", "factory", ".", "ge...
Configure the endpoint factory @param factory
[ "Configure", "the", "endpoint", "factory" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/BeanCustomizer.java#L59-L82
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/extensions/addressing/map/CXFMAPBuilder.java
CXFMAPBuilder.inboundMap
public MAP inboundMap(Map<String, Object> ctx) { AddressingProperties implementation = (AddressingProperties)ctx.get(CXFMAPConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND); return newMap(implementation); }
java
public MAP inboundMap(Map<String, Object> ctx) { AddressingProperties implementation = (AddressingProperties)ctx.get(CXFMAPConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND); return newMap(implementation); }
[ "public", "MAP", "inboundMap", "(", "Map", "<", "String", ",", "Object", ">", "ctx", ")", "{", "AddressingProperties", "implementation", "=", "(", "AddressingProperties", ")", "ctx", ".", "get", "(", "CXFMAPConstants", ".", "SERVER_ADDRESSING_PROPERTIES_INBOUND", ...
retrieve the inbound server message address properties attached to a message context @param ctx the server message context @return
[ "retrieve", "the", "inbound", "server", "message", "address", "properties", "attached", "to", "a", "message", "context" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/extensions/addressing/map/CXFMAPBuilder.java#L71-L75
train
jbossws/jbossws-cxf
modules/client/src/main/java/org/jboss/wsf/stack/cxf/extensions/addressing/map/CXFMAPBuilder.java
CXFMAPBuilder.outboundMap
public MAP outboundMap(Map<String, Object> ctx) { AddressingProperties implementation = (AddressingProperties)ctx.get(CXFMAPConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND); if (implementation == null) { implementation = new AddressingProperties(); ctx.put(CXFMAPConstants.CLIENT_A...
java
public MAP outboundMap(Map<String, Object> ctx) { AddressingProperties implementation = (AddressingProperties)ctx.get(CXFMAPConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND); if (implementation == null) { implementation = new AddressingProperties(); ctx.put(CXFMAPConstants.CLIENT_A...
[ "public", "MAP", "outboundMap", "(", "Map", "<", "String", ",", "Object", ">", "ctx", ")", "{", "AddressingProperties", "implementation", "=", "(", "AddressingProperties", ")", "ctx", ".", "get", "(", "CXFMAPConstants", ".", "CLIENT_ADDRESSING_PROPERTIES_OUTBOUND", ...
retrieve the outbound client message address properties attached to a message request map @param ctx the client request properties map @return
[ "retrieve", "the", "outbound", "client", "message", "address", "properties", "attached", "to", "a", "message", "request", "map" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/client/src/main/java/org/jboss/wsf/stack/cxf/extensions/addressing/map/CXFMAPBuilder.java#L82-L92
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/WSDLFilePublisher.java
WSDLFilePublisher.publishWsdlFiles
public void publishWsdlFiles(QName serviceName, String wsdlLocation, Bus bus, List<ServiceInfo> serviceInfos) throws IOException { String deploymentName = dep.getCanonicalName(); File wsdlFile = getPublishLocation(serviceName.getLocalPart(), deploymentName, wsdlLocation); if (wsdlFile == null) retu...
java
public void publishWsdlFiles(QName serviceName, String wsdlLocation, Bus bus, List<ServiceInfo> serviceInfos) throws IOException { String deploymentName = dep.getCanonicalName(); File wsdlFile = getPublishLocation(serviceName.getLocalPart(), deploymentName, wsdlLocation); if (wsdlFile == null) retu...
[ "public", "void", "publishWsdlFiles", "(", "QName", "serviceName", ",", "String", "wsdlLocation", ",", "Bus", "bus", ",", "List", "<", "ServiceInfo", ">", "serviceInfos", ")", "throws", "IOException", "{", "String", "deploymentName", "=", "dep", ".", "getCanonic...
Publish the deployed wsdl file to the data directory
[ "Publish", "the", "deployed", "wsdl", "file", "to", "the", "data", "directory" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/WSDLFilePublisher.java#L74-L117
train
jbossws/jbossws-cxf
modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/WSDLFilePublisher.java
WSDLFilePublisher.getPublishLocation
private File getPublishLocation(String serviceName, String archiveName, String wsdlLocation) throws IOException { if (wsdlLocation == null && serviceName == null) { Loggers.DEPLOYMENT_LOGGER.cannotGetWsdlPublishLocation(); return null; } //JBWS-2829: windows issue if ...
java
private File getPublishLocation(String serviceName, String archiveName, String wsdlLocation) throws IOException { if (wsdlLocation == null && serviceName == null) { Loggers.DEPLOYMENT_LOGGER.cannotGetWsdlPublishLocation(); return null; } //JBWS-2829: windows issue if ...
[ "private", "File", "getPublishLocation", "(", "String", "serviceName", ",", "String", "archiveName", ",", "String", "wsdlLocation", ")", "throws", "IOException", "{", "if", "(", "wsdlLocation", "==", "null", "&&", "serviceName", "==", "null", ")", "{", "Loggers"...
Get the file publish location
[ "Get", "the", "file", "publish", "location" ]
e1d5df3664cbc2482ebc83cafd355a4d60d12150
https://github.com/jbossws/jbossws-cxf/blob/e1d5df3664cbc2482ebc83cafd355a4d60d12150/modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/WSDLFilePublisher.java#L182-L216
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/core/AbstractServiceConfigProcessor.java
AbstractServiceConfigProcessor.processAfterStartup
public MessageBroker processAfterStartup(MessageBroker broker) { // Eagerly detect possible problems with the Service Service service = broker.getServiceByType(getServiceClassName()); Assert.notNull(service, "The MessageBroker with id '" + broker.getId() + "' does not have a service of type " + ...
java
public MessageBroker processAfterStartup(MessageBroker broker) { // Eagerly detect possible problems with the Service Service service = broker.getServiceByType(getServiceClassName()); Assert.notNull(service, "The MessageBroker with id '" + broker.getId() + "' does not have a service of type " + ...
[ "public", "MessageBroker", "processAfterStartup", "(", "MessageBroker", "broker", ")", "{", "// Eagerly detect possible problems with the Service", "Service", "service", "=", "broker", ".", "getServiceByType", "(", "getServiceClassName", "(", ")", ")", ";", "Assert", ".",...
Error checking is done on the started MessageBroker to ensure configuration was successful. @see MessageBrokerConfigProcessor#processAfterStartup(MessageBroker)
[ "Error", "checking", "is", "done", "on", "the", "started", "MessageBroker", "to", "ensure", "configuration", "was", "successful", "." ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/core/AbstractServiceConfigProcessor.java#L57-L65
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/core/AbstractServiceConfigProcessor.java
AbstractServiceConfigProcessor.processBeforeStartup
public MessageBroker processBeforeStartup(MessageBroker broker) { Service service = broker.getServiceByType(getServiceClassName()); if (service == null) { service = broker.createService(getServiceId(), getServiceClassName()); if (getServiceAdapterId().equals(this.defaultAdapterId...
java
public MessageBroker processBeforeStartup(MessageBroker broker) { Service service = broker.getServiceByType(getServiceClassName()); if (service == null) { service = broker.createService(getServiceId(), getServiceClassName()); if (getServiceAdapterId().equals(this.defaultAdapterId...
[ "public", "MessageBroker", "processBeforeStartup", "(", "MessageBroker", "broker", ")", "{", "Service", "service", "=", "broker", ".", "getServiceByType", "(", "getServiceClassName", "(", ")", ")", ";", "if", "(", "service", "==", "null", ")", "{", "service", ...
The MessageBroker is checked to see if the Service has already been configured via the BlazeDS XML config. If no existing Service is found, one will be installed using the defined configuration properties of this class. @see MessageBrokerConfigProcessor#processBeforeStartup(MessageBroker)
[ "The", "MessageBroker", "is", "checked", "to", "see", "if", "the", "Service", "has", "already", "been", "configured", "via", "the", "BlazeDS", "XML", "config", ".", "If", "no", "existing", "Service", "is", "found", "one", "will", "be", "installed", "using", ...
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/core/AbstractServiceConfigProcessor.java#L73-L93
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/security3/SpringSecurityLoginCommand.java
SpringSecurityLoginCommand.extractPassword
@SuppressWarnings("rawtypes") protected String extractPassword(Object credentials) { String password = null; if (credentials instanceof String) { password = (String) credentials; } else if (credentials instanceof Map) { password = (String) ((Map) credentials).get(Message...
java
@SuppressWarnings("rawtypes") protected String extractPassword(Object credentials) { String password = null; if (credentials instanceof String) { password = (String) credentials; } else if (credentials instanceof Map) { password = (String) ((Map) credentials).get(Message...
[ "@", "SuppressWarnings", "(", "\"rawtypes\"", ")", "protected", "String", "extractPassword", "(", "Object", "credentials", ")", "{", "String", "password", "=", "null", ";", "if", "(", "credentials", "instanceof", "String", ")", "{", "password", "=", "(", "Stri...
Extracts the password from the Flex client credentials @param credentials the Flex client credentials @return the extracted password
[ "Extracts", "the", "password", "from", "the", "Flex", "client", "credentials" ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/security3/SpringSecurityLoginCommand.java#L230-L239
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/messaging/jms/JmsAdapter.java
JmsAdapter.handleMessage
void handleMessage(Message flexMessage) { flexMessage.setDestination(this.getDestination().getId()); MessageService messageService = (MessageService) getDestination().getService(); messageService.pushMessageToClients(flexMessage, true); messageService.sendPushMessageFromPeer(flexMessage,...
java
void handleMessage(Message flexMessage) { flexMessage.setDestination(this.getDestination().getId()); MessageService messageService = (MessageService) getDestination().getService(); messageService.pushMessageToClients(flexMessage, true); messageService.sendPushMessageFromPeer(flexMessage,...
[ "void", "handleMessage", "(", "Message", "flexMessage", ")", "{", "flexMessage", ".", "setDestination", "(", "this", ".", "getDestination", "(", ")", ".", "getId", "(", ")", ")", ";", "MessageService", "messageService", "=", "(", "MessageService", ")", "getDes...
Invoked when a Message is received from a JMS client.
[ "Invoked", "when", "a", "Message", "is", "received", "from", "a", "JMS", "client", "." ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/messaging/jms/JmsAdapter.java#L279-L284
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/messaging/MessageServiceConfigProcessor.java
MessageServiceConfigProcessor.findDefaultChannel
@Override public void findDefaultChannel(MessageBroker broker, Service service) { if (!CollectionUtils.isEmpty(broker.getDefaultChannels())) { return; } Iterator<String> channels = broker.getChannelIds().iterator(); while (channels.hasNext()) { Endpoint endpo...
java
@Override public void findDefaultChannel(MessageBroker broker, Service service) { if (!CollectionUtils.isEmpty(broker.getDefaultChannels())) { return; } Iterator<String> channels = broker.getChannelIds().iterator(); while (channels.hasNext()) { Endpoint endpo...
[ "@", "Override", "public", "void", "findDefaultChannel", "(", "MessageBroker", "broker", ",", "Service", "service", ")", "{", "if", "(", "!", "CollectionUtils", ".", "isEmpty", "(", "broker", ".", "getDefaultChannels", "(", ")", ")", ")", "{", "return", ";",...
Tries to find a sensible default AMF channel for the default MessageService If a application-level default is set on the MessageBroker, that will be used. Otherwise will use the first AMFEndpoint from services-config.xml that it finds with polling enabled. @param broker @param service
[ "Tries", "to", "find", "a", "sensible", "default", "AMF", "channel", "for", "the", "default", "MessageService" ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/messaging/MessageServiceConfigProcessor.java#L63-L79
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/core/AbstractDestinationFactory.java
AbstractDestinationFactory.configureAdapter
protected void configureAdapter(Destination destination) { String adapterId = StringUtils.hasText(this.serviceAdapter) ? this.serviceAdapter : getTargetService(this.broker).getDefaultAdapter(); if (this.beanFactory.containsBean(adapterId)) { ServiceAdapter adapter = (ServiceAdapter) this.bea...
java
protected void configureAdapter(Destination destination) { String adapterId = StringUtils.hasText(this.serviceAdapter) ? this.serviceAdapter : getTargetService(this.broker).getDefaultAdapter(); if (this.beanFactory.containsBean(adapterId)) { ServiceAdapter adapter = (ServiceAdapter) this.bea...
[ "protected", "void", "configureAdapter", "(", "Destination", "destination", ")", "{", "String", "adapterId", "=", "StringUtils", ".", "hasText", "(", "this", ".", "serviceAdapter", ")", "?", "this", ".", "serviceAdapter", ":", "getTargetService", "(", "this", "....
Configure the service adapter for the destination. <p> This implementation will first search the {@link BeanFactory} for a bean with a matching id and use it if found. Otherwise the normal <code>createAdapter</code> method on the destination will be called. <p> May be overridden by subclasses that wish to specify cus...
[ "Configure", "the", "service", "adapter", "for", "the", "destination", "." ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/core/AbstractDestinationFactory.java#L166-L174
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/config/FlexConfigurationManager.java
FlexConfigurationManager.getMessagingConfiguration
@SuppressWarnings("unchecked") public MessagingConfiguration getMessagingConfiguration(ServletConfig servletConfig) { Assert.isTrue(JdkVersion.getMajorJavaVersion() >= JdkVersion.JAVA_15, "Spring BlazeDS Integration requires a minimum of Java 1.5"); Assert.notNull(servletConfig, "FlexConfigurationMa...
java
@SuppressWarnings("unchecked") public MessagingConfiguration getMessagingConfiguration(ServletConfig servletConfig) { Assert.isTrue(JdkVersion.getMajorJavaVersion() >= JdkVersion.JAVA_15, "Spring BlazeDS Integration requires a minimum of Java 1.5"); Assert.notNull(servletConfig, "FlexConfigurationMa...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "MessagingConfiguration", "getMessagingConfiguration", "(", "ServletConfig", "servletConfig", ")", "{", "Assert", ".", "isTrue", "(", "JdkVersion", ".", "getMajorJavaVersion", "(", ")", ">=", "JdkVersion", ...
Parses the BlazeDS config files and returns a populated MessagingConfiguration @param servletConfig the servlet config for the web application
[ "Parses", "the", "BlazeDS", "config", "files", "and", "returns", "a", "populated", "MessagingConfiguration" ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/config/FlexConfigurationManager.java#L99-L124
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/core/io/SpringPropertyProxy.java
SpringPropertyProxy.proxyFor
public static SpringPropertyProxy proxyFor(Class<?> beanType, boolean useDirectFieldAccess, ConversionService conversionService) { if(PropertyProxyUtils.hasAmfCreator(beanType)) { SpringPropertyProxy proxy = new DelayedWriteSpringPropertyProxy(beanType, useDirectFieldAccess, conversionService); ...
java
public static SpringPropertyProxy proxyFor(Class<?> beanType, boolean useDirectFieldAccess, ConversionService conversionService) { if(PropertyProxyUtils.hasAmfCreator(beanType)) { SpringPropertyProxy proxy = new DelayedWriteSpringPropertyProxy(beanType, useDirectFieldAccess, conversionService); ...
[ "public", "static", "SpringPropertyProxy", "proxyFor", "(", "Class", "<", "?", ">", "beanType", ",", "boolean", "useDirectFieldAccess", ",", "ConversionService", "conversionService", ")", "{", "if", "(", "PropertyProxyUtils", ".", "hasAmfCreator", "(", "beanType", "...
Factory method for creating correctly configured Spring property proxy instances. @param beanType the type being introspected @param useDirectFieldAccess whether to access fields directly @param conversionService the conversion service to use for property type conversion @return a properly configured property proxy
[ "Factory", "method", "for", "creating", "correctly", "configured", "Spring", "property", "proxy", "instances", "." ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/core/io/SpringPropertyProxy.java#L73-L93
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/messaging/integration/IntegrationAdapter.java
IntegrationAdapter.handleMessage
public void handleMessage(Message<?> message) { if (logger.isDebugEnabled()) { logger.debug("received Integration Message: " + message); } AsyncMessage flexMessage = new AsyncMessage(); flexMessage.setBody(message.getPayload()); MessageHeaders headers = message.getHea...
java
public void handleMessage(Message<?> message) { if (logger.isDebugEnabled()) { logger.debug("received Integration Message: " + message); } AsyncMessage flexMessage = new AsyncMessage(); flexMessage.setBody(message.getPayload()); MessageHeaders headers = message.getHea...
[ "public", "void", "handleMessage", "(", "Message", "<", "?", ">", "message", ")", "{", "if", "(", "logger", ".", "isDebugEnabled", "(", ")", ")", "{", "logger", ".", "debug", "(", "\"received Integration Message: \"", "+", "message", ")", ";", "}", "AsyncM...
Invoked when a Message is received from the Spring Integration channel.
[ "Invoked", "when", "a", "Message", "is", "received", "from", "the", "Spring", "Integration", "channel", "." ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/messaging/integration/IntegrationAdapter.java#L112-L150
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/messaging/integration/IntegrationAdapter.java
IntegrationAdapter.invoke
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public Object invoke(flex.messaging.messages.Message flexMessage) { if (logger.isDebugEnabled()) { logger.debug("received Flex Message: " + flexMessage); } Message<?> message = null; if (this.extractPayload) { ...
java
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public Object invoke(flex.messaging.messages.Message flexMessage) { if (logger.isDebugEnabled()) { logger.debug("received Flex Message: " + flexMessage); } Message<?> message = null; if (this.extractPayload) { ...
[ "@", "SuppressWarnings", "(", "{", "\"unchecked\"", ",", "\"rawtypes\"", "}", ")", "@", "Override", "public", "Object", "invoke", "(", "flex", ".", "messaging", ".", "messages", ".", "Message", "flexMessage", ")", "{", "if", "(", "logger", ".", "isDebugEnabl...
Invoked when a Message is received from a Flex client.
[ "Invoked", "when", "a", "Message", "is", "received", "from", "a", "Flex", "client", "." ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/messaging/integration/IntegrationAdapter.java#L164-L191
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/messaging/MessageTemplate.java
MessageTemplate.send
public void send(String destination, Object body) { AsyncMessage message = this.defaultMessageCreator.createMessage(); message.setDestination(destination); message.setBody(body); getMessageBroker().routeMessageToService(message, null); }
java
public void send(String destination, Object body) { AsyncMessage message = this.defaultMessageCreator.createMessage(); message.setDestination(destination); message.setBody(body); getMessageBroker().routeMessageToService(message, null); }
[ "public", "void", "send", "(", "String", "destination", ",", "Object", "body", ")", "{", "AsyncMessage", "message", "=", "this", ".", "defaultMessageCreator", ".", "createMessage", "(", ")", ";", "message", ".", "setDestination", "(", "destination", ")", ";", ...
Sends a message with the specified body to the specified destination @param destination the target destination id @param body the body of the message
[ "Sends", "a", "message", "with", "the", "specified", "body", "to", "the", "specified", "destination" ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/messaging/MessageTemplate.java#L164-L169
train
spring-projects/spring-flex
spring-flex-core/src/main/java/org/springframework/flex/core/ExceptionTranslationAdvice.java
ExceptionTranslationAdvice.afterThrowing
public void afterThrowing(Throwable original) throws Throwable { Class<?> candidateType = original.getClass(); Throwable candidate = original; if (ClassUtils.isAssignable(MessageException.class, candidateType)) { MessageException me = (MessageException) candidate; if (S...
java
public void afterThrowing(Throwable original) throws Throwable { Class<?> candidateType = original.getClass(); Throwable candidate = original; if (ClassUtils.isAssignable(MessageException.class, candidateType)) { MessageException me = (MessageException) candidate; if (S...
[ "public", "void", "afterThrowing", "(", "Throwable", "original", ")", "throws", "Throwable", "{", "Class", "<", "?", ">", "candidateType", "=", "original", ".", "getClass", "(", ")", ";", "Throwable", "candidate", "=", "original", ";", "if", "(", "ClassUtils...
Apply translation to the thrown exception. @param original the thrown exception @throws Throwable the translated exception
[ "Apply", "translation", "to", "the", "thrown", "exception", "." ]
85f2bff300d74e2d77d565f97a09d12d18e19adc
https://github.com/spring-projects/spring-flex/blob/85f2bff300d74e2d77d565f97a09d12d18e19adc/spring-flex-core/src/main/java/org/springframework/flex/core/ExceptionTranslationAdvice.java#L51-L75
train
Kurento/kurento-module-creator
src/main/java/org/kurento/modulecreator/definition/Type.java
Type.getQualifiedName
public String getQualifiedName() { if (this.module == null || this.module.getName() == null) { return name; } if (this.module.getName().equals("core") || this.module.getName().equals("filters") || this.module.getName().equals("elements")) { return "kurento." + name; } else { re...
java
public String getQualifiedName() { if (this.module == null || this.module.getName() == null) { return name; } if (this.module.getName().equals("core") || this.module.getName().equals("filters") || this.module.getName().equals("elements")) { return "kurento." + name; } else { re...
[ "public", "String", "getQualifiedName", "(", ")", "{", "if", "(", "this", ".", "module", "==", "null", "||", "this", ".", "module", ".", "getName", "(", ")", "==", "null", ")", "{", "return", "name", ";", "}", "if", "(", "this", ".", "module", ".",...
Get qualified name mixing In the format module.name @return The qualified name
[ "Get", "qualified", "name", "mixing", "In", "the", "format", "module", ".", "name" ]
c371516c665b902b5476433496a5aefcbca86d64
https://github.com/Kurento/kurento-module-creator/blob/c371516c665b902b5476433496a5aefcbca86d64/src/main/java/org/kurento/modulecreator/definition/Type.java#L40-L50
train
Kurento/kurento-module-creator
src/main/java/com/github/zafarkhaja/semver/Version.java
Version.satisfies
public boolean satisfies(String expr) { Parser<Expression> parser = ExpressionParser.newInstance(); return parser.parse(expr).interpret(this); }
java
public boolean satisfies(String expr) { Parser<Expression> parser = ExpressionParser.newInstance(); return parser.parse(expr).interpret(this); }
[ "public", "boolean", "satisfies", "(", "String", "expr", ")", "{", "Parser", "<", "Expression", ">", "parser", "=", "ExpressionParser", ".", "newInstance", "(", ")", ";", "return", "parser", ".", "parse", "(", "expr", ")", ".", "interpret", "(", "this", ...
Checks if this version satisfies the specified SemVer Expression. <p> This method is a part of the SemVer Expressions API. </p> @param expr the SemVer Expression @return {@code true} if this version satisfies the specified SemVer Expression or {@code false} otherwise @throws ParseException in case of a general parse ...
[ "Checks", "if", "this", "version", "satisfies", "the", "specified", "SemVer", "Expression", "." ]
c371516c665b902b5476433496a5aefcbca86d64
https://github.com/Kurento/kurento-module-creator/blob/c371516c665b902b5476433496a5aefcbca86d64/src/main/java/com/github/zafarkhaja/semver/Version.java#L344-L347
train
Kurento/kurento-module-creator
src/main/java/org/kurento/modulecreator/codegen/function/SphinxLinks.java
SphinxLinks.translate
public String translate(String text, List<String[]> patterns) { String res = text; for (String[] each : patterns) { res = res.replaceAll("(?ms)" + each[0], each[1]); } return res; }
java
public String translate(String text, List<String[]> patterns) { String res = text; for (String[] each : patterns) { res = res.replaceAll("(?ms)" + each[0], each[1]); } return res; }
[ "public", "String", "translate", "(", "String", "text", ",", "List", "<", "String", "[", "]", ">", "patterns", ")", "{", "String", "res", "=", "text", ";", "for", "(", "String", "[", "]", "each", ":", "patterns", ")", "{", "res", "=", "res", ".", ...
Clone the python unicode translate method in legacy languages younger than python. python docutils is public domain. @param text string for which translation is needed @param patterns Array of arrays {target, replacement). The target is substituted by the replacement. @return The translated string @see http://docs.pyt...
[ "Clone", "the", "python", "unicode", "translate", "method", "in", "legacy", "languages", "younger", "than", "python", ".", "python", "docutils", "is", "public", "domain", "." ]
c371516c665b902b5476433496a5aefcbca86d64
https://github.com/Kurento/kurento-module-creator/blob/c371516c665b902b5476433496a5aefcbca86d64/src/main/java/org/kurento/modulecreator/codegen/function/SphinxLinks.java#L180-L188
train
Kurento/kurento-module-creator
src/main/java/org/kurento/modulecreator/KurentoModuleCreator.java
KurentoModuleCreator.generateCode
public Result generateCode() throws JsonIOException, IOException { if (moduleManager == null) { loadModulesFromKmdFiles(); } if (internalTemplates != null) { templatesDir = getInternalTemplatesDir(internalTemplates); } if (templatesDir != null) { Path configFile = templatesDir.r...
java
public Result generateCode() throws JsonIOException, IOException { if (moduleManager == null) { loadModulesFromKmdFiles(); } if (internalTemplates != null) { templatesDir = getInternalTemplatesDir(internalTemplates); } if (templatesDir != null) { Path configFile = templatesDir.r...
[ "public", "Result", "generateCode", "(", ")", "throws", "JsonIOException", ",", "IOException", "{", "if", "(", "moduleManager", "==", "null", ")", "{", "loadModulesFromKmdFiles", "(", ")", ";", "}", "if", "(", "internalTemplates", "!=", "null", ")", "{", "te...
Genarates the code. @return The result of the code generation @throws JsonIOException if there is an error parsing kmd's @throws IOException if there is an error reading kmd's
[ "Genarates", "the", "code", "." ]
c371516c665b902b5476433496a5aefcbca86d64
https://github.com/Kurento/kurento-module-creator/blob/c371516c665b902b5476433496a5aefcbca86d64/src/main/java/org/kurento/modulecreator/KurentoModuleCreator.java#L183-L251
train
Kurento/kurento-module-creator
src/main/java/com/github/zafarkhaja/semver/VersionParser.java
VersionParser.nearestCharType
private CharType nearestCharType(CharType... types) { for (Character chr : chars) { for (CharType type : types) { if (type.isMatchedBy(chr)) { return type; } } } return CharType.EOL; }
java
private CharType nearestCharType(CharType... types) { for (Character chr : chars) { for (CharType type : types) { if (type.isMatchedBy(chr)) { return type; } } } return CharType.EOL; }
[ "private", "CharType", "nearestCharType", "(", "CharType", "...", "types", ")", "{", "for", "(", "Character", "chr", ":", "chars", ")", "{", "for", "(", "CharType", "type", ":", "types", ")", "{", "if", "(", "type", ".", "isMatchedBy", "(", "chr", ")",...
Finds the nearest character type. @param types the character types to choose from @return the nearest character type or {@code EOL}
[ "Finds", "the", "nearest", "character", "type", "." ]
c371516c665b902b5476433496a5aefcbca86d64
https://github.com/Kurento/kurento-module-creator/blob/c371516c665b902b5476433496a5aefcbca86d64/src/main/java/com/github/zafarkhaja/semver/VersionParser.java#L481-L490
train
Kurento/kurento-module-creator
src/main/java/com/github/zafarkhaja/semver/VersionParser.java
VersionParser.checkForLeadingZeroes
private void checkForLeadingZeroes() { Character la1 = chars.lookahead(1); Character la2 = chars.lookahead(2); if (la1 != null && la1 == '0' && CharType.DIGIT.isMatchedBy(la2)) { throw new ParseException("Numeric identifier MUST NOT contain leading zeroes"); } }
java
private void checkForLeadingZeroes() { Character la1 = chars.lookahead(1); Character la2 = chars.lookahead(2); if (la1 != null && la1 == '0' && CharType.DIGIT.isMatchedBy(la2)) { throw new ParseException("Numeric identifier MUST NOT contain leading zeroes"); } }
[ "private", "void", "checkForLeadingZeroes", "(", ")", "{", "Character", "la1", "=", "chars", ".", "lookahead", "(", "1", ")", ";", "Character", "la2", "=", "chars", ".", "lookahead", "(", "2", ")", ";", "if", "(", "la1", "!=", "null", "&&", "la1", "=...
Checks for leading zeroes in the numeric identifiers. @throws ParseException if a numeric identifier has leading zero(es)
[ "Checks", "for", "leading", "zeroes", "in", "the", "numeric", "identifiers", "." ]
c371516c665b902b5476433496a5aefcbca86d64
https://github.com/Kurento/kurento-module-creator/blob/c371516c665b902b5476433496a5aefcbca86d64/src/main/java/com/github/zafarkhaja/semver/VersionParser.java#L498-L504
train
Kurento/kurento-module-creator
src/main/java/com/github/zafarkhaja/semver/VersionParser.java
VersionParser.checkForEmptyIdentifier
private void checkForEmptyIdentifier() { Character la = chars.lookahead(1); if (CharType.DOT.isMatchedBy(la) || CharType.PLUS.isMatchedBy(la) || CharType.EOL.isMatchedBy(la)) { throw new ParseException("Identifiers MUST NOT be empty", new UnexpectedCharacterException(la, chars.currentOff...
java
private void checkForEmptyIdentifier() { Character la = chars.lookahead(1); if (CharType.DOT.isMatchedBy(la) || CharType.PLUS.isMatchedBy(la) || CharType.EOL.isMatchedBy(la)) { throw new ParseException("Identifiers MUST NOT be empty", new UnexpectedCharacterException(la, chars.currentOff...
[ "private", "void", "checkForEmptyIdentifier", "(", ")", "{", "Character", "la", "=", "chars", ".", "lookahead", "(", "1", ")", ";", "if", "(", "CharType", ".", "DOT", ".", "isMatchedBy", "(", "la", ")", "||", "CharType", ".", "PLUS", ".", "isMatchedBy", ...
Checks for empty identifiers in the pre-release version or build metadata. @throws ParseException if the pre-release version or build metadata have empty identifier(s)
[ "Checks", "for", "empty", "identifiers", "in", "the", "pre", "-", "release", "version", "or", "build", "metadata", "." ]
c371516c665b902b5476433496a5aefcbca86d64
https://github.com/Kurento/kurento-module-creator/blob/c371516c665b902b5476433496a5aefcbca86d64/src/main/java/com/github/zafarkhaja/semver/VersionParser.java#L512-L519
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/templates/VdmCompletionContext.java
VdmCompletionContext.consConstructorCallContext
private void consConstructorCallContext() { // This gives us everything after new, e.g. ' MyClass' if you type 'new MyClass' proposalPrefix = rawScan.subSequence(rawScan.indexOf("new"),rawScan.length()).toString(); processedScan = rawScan; //new StringBuffer(subSeq); type = SearchType.New; }
java
private void consConstructorCallContext() { // This gives us everything after new, e.g. ' MyClass' if you type 'new MyClass' proposalPrefix = rawScan.subSequence(rawScan.indexOf("new"),rawScan.length()).toString(); processedScan = rawScan; //new StringBuffer(subSeq); type = SearchType.New; }
[ "private", "void", "consConstructorCallContext", "(", ")", "{", "// This gives us everything after new, e.g. ' MyClass' if you type 'new MyClass'", "proposalPrefix", "=", "rawScan", ".", "subSequence", "(", "rawScan", ".", "indexOf", "(", "\"new\"", ")", ",", "rawScan", "."...
Constructs the completion context for a constructor call @param index
[ "Constructs", "the", "completion", "context", "for", "a", "constructor", "call" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/templates/VdmCompletionContext.java#L119-L126
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/templates/VdmCompletionContext.java
VdmCompletionContext.consMkContext
private void consMkContext() { final int MK_LENGTH = "mk_".length(); CharSequence subSeq = rawScan.subSequence(MK_LENGTH, rawScan.length()); processedScan = new StringBuffer(subSeq); proposalPrefix = processedScan.toString().trim(); type = SearchType.Mk; }
java
private void consMkContext() { final int MK_LENGTH = "mk_".length(); CharSequence subSeq = rawScan.subSequence(MK_LENGTH, rawScan.length()); processedScan = new StringBuffer(subSeq); proposalPrefix = processedScan.toString().trim(); type = SearchType.Mk; }
[ "private", "void", "consMkContext", "(", ")", "{", "final", "int", "MK_LENGTH", "=", "\"mk_\"", ".", "length", "(", ")", ";", "CharSequence", "subSeq", "=", "rawScan", ".", "subSequence", "(", "MK_LENGTH", ",", "rawScan", ".", "length", "(", ")", ")", ";...
Constructs the completion context for a 'mk_' call
[ "Constructs", "the", "completion", "context", "for", "a", "mk_", "call" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/templates/VdmCompletionContext.java#L132-L141
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/templates/VdmCompletionContext.java
VdmCompletionContext.consQuoteContext
private void consQuoteContext(int index) { processedScan = new StringBuffer(proposalPrefix.subSequence(index, proposalPrefix.length())); proposalPrefix = processedScan.substring(processedScan.lastIndexOf("<")); type = SearchType.Quote; }
java
private void consQuoteContext(int index) { processedScan = new StringBuffer(proposalPrefix.subSequence(index, proposalPrefix.length())); proposalPrefix = processedScan.substring(processedScan.lastIndexOf("<")); type = SearchType.Quote; }
[ "private", "void", "consQuoteContext", "(", "int", "index", ")", "{", "processedScan", "=", "new", "StringBuffer", "(", "proposalPrefix", ".", "subSequence", "(", "index", ",", "proposalPrefix", ".", "length", "(", ")", ")", ")", ";", "proposalPrefix", "=", ...
Constructs the completion context for quotes @param index The index of the '<' character
[ "Constructs", "the", "completion", "context", "for", "quotes" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/templates/VdmCompletionContext.java#L162-L167
train
overturetool/overture
core/typechecker/src/main/java/org/overture/typechecker/visitor/TypeCheckerDefinitionVisitor.java
TypeCheckerDefinitionVisitor.setMeasureExp
private void setMeasureExp(TypeCheckInfo question, SFunctionDefinitionBase node, Environment base, Environment local, NameScope scope) throws AnalysisException { PType actual = node.getMeasure().apply(THIS, question.newInfo(local)); node.setMeasureName(node.getName().getMeasureName(node.getName().getLocation())); ...
java
private void setMeasureExp(TypeCheckInfo question, SFunctionDefinitionBase node, Environment base, Environment local, NameScope scope) throws AnalysisException { PType actual = node.getMeasure().apply(THIS, question.newInfo(local)); node.setMeasureName(node.getName().getMeasureName(node.getName().getLocation())); ...
[ "private", "void", "setMeasureExp", "(", "TypeCheckInfo", "question", ",", "SFunctionDefinitionBase", "node", ",", "Environment", "base", ",", "Environment", "local", ",", "NameScope", "scope", ")", "throws", "AnalysisException", "{", "PType", "actual", "=", "node",...
Set measureDef to a newly created function, based on the measure expression. @throws AnalysisException
[ "Set", "measureDef", "to", "a", "newly", "created", "function", "based", "on", "the", "measure", "expression", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/typechecker/src/main/java/org/overture/typechecker/visitor/TypeCheckerDefinitionVisitor.java#L1697-L1751
train
overturetool/overture
core/typechecker/src/main/java/org/overture/typechecker/visitor/TypeCheckerDefinitionVisitor.java
TypeCheckerDefinitionVisitor.checkMeasure
private void checkMeasure(TypeCheckInfo question, SFunctionDefinitionBase node, ILexNameToken iLexNameToken, PType result) { PTypeAssistantTC assistant = question.assistantFactory.createPTypeAssistant(); if (!assistant.isNumeric(result)) { if (assistant.isProduct(result)) { AProductType pt = assista...
java
private void checkMeasure(TypeCheckInfo question, SFunctionDefinitionBase node, ILexNameToken iLexNameToken, PType result) { PTypeAssistantTC assistant = question.assistantFactory.createPTypeAssistant(); if (!assistant.isNumeric(result)) { if (assistant.isProduct(result)) { AProductType pt = assista...
[ "private", "void", "checkMeasure", "(", "TypeCheckInfo", "question", ",", "SFunctionDefinitionBase", "node", ",", "ILexNameToken", "iLexNameToken", ",", "PType", "result", ")", "{", "PTypeAssistantTC", "assistant", "=", "question", ".", "assistantFactory", ".", "creat...
A measure must return a nat or nat-tuple.
[ "A", "measure", "must", "return", "a", "nat", "or", "nat", "-", "tuple", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/typechecker/src/main/java/org/overture/typechecker/visitor/TypeCheckerDefinitionVisitor.java#L1844-L1870
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/commands/ToggleComment.java
ToggleComment.getFirstCompleteLineOfRegion
private int getFirstCompleteLineOfRegion(IRegion region, IDocument document) { try { int startLine= document.getLineOfOffset(region.getOffset()); int offset= document.getLineOffset(startLine); if (offset >= region.getOffset()) return startLine; offset= document.getLineOffset(startLine + 1); ret...
java
private int getFirstCompleteLineOfRegion(IRegion region, IDocument document) { try { int startLine= document.getLineOfOffset(region.getOffset()); int offset= document.getLineOffset(startLine); if (offset >= region.getOffset()) return startLine; offset= document.getLineOffset(startLine + 1); ret...
[ "private", "int", "getFirstCompleteLineOfRegion", "(", "IRegion", "region", ",", "IDocument", "document", ")", "{", "try", "{", "int", "startLine", "=", "document", ".", "getLineOfOffset", "(", "region", ".", "getOffset", "(", ")", ")", ";", "int", "offset", ...
Returns the index of the first line whose start offset is in the given text range. @param region the text range in characters where to find the line @param document The document @return the first line whose start index is in the given range, -1 if there is no such line
[ "Returns", "the", "index", "of", "the", "first", "line", "whose", "start", "offset", "is", "in", "the", "given", "text", "range", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/commands/ToggleComment.java#L221-L240
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/commands/ToggleComment.java
ToggleComment.isBlockCommented
private boolean isBlockCommented(int startLine, int endLine, String[] prefixes, IDocument document) { try { // check for occurrences of prefixes in the given lines for (int i= startLine; i <= endLine; i++) { IRegion line= document.getLineInformation(i); String text= document.get(line.getOffset(), lin...
java
private boolean isBlockCommented(int startLine, int endLine, String[] prefixes, IDocument document) { try { // check for occurrences of prefixes in the given lines for (int i= startLine; i <= endLine; i++) { IRegion line= document.getLineInformation(i); String text= document.get(line.getOffset(), lin...
[ "private", "boolean", "isBlockCommented", "(", "int", "startLine", ",", "int", "endLine", ",", "String", "[", "]", "prefixes", ",", "IDocument", "document", ")", "{", "try", "{", "// check for occurrences of prefixes in the given lines", "for", "(", "int", "i", "=...
Determines whether each line is prefixed by one of the prefixes. @param startLine Start line in document @param endLine End line in document @param prefixes Possible comment prefixes @param document The document @return <code>true</code> iff each line from <code>startLine</code> to and including <code>endLine</code> i...
[ "Determines", "whether", "each", "line", "is", "prefixed", "by", "one", "of", "the", "prefixes", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/commands/ToggleComment.java#L254-L286
train
overturetool/overture
core/typechecker/src/main/java/org/overture/typechecker/visitor/AbstractTypeCheckVisitor.java
AbstractTypeCheckVisitor.typeCheckAElseIf
PType typeCheckAElseIf(INode elseIfNode, ILexLocation elseIfLocation, INode test, INode thenNode, TypeCheckInfo question) throws AnalysisException { if (!question.assistantFactory.createPTypeAssistant().isType(test.apply(THIS, question.newConstraint(null)), ABooleanBasicType.class)) { boolean isExpression...
java
PType typeCheckAElseIf(INode elseIfNode, ILexLocation elseIfLocation, INode test, INode thenNode, TypeCheckInfo question) throws AnalysisException { if (!question.assistantFactory.createPTypeAssistant().isType(test.apply(THIS, question.newConstraint(null)), ABooleanBasicType.class)) { boolean isExpression...
[ "PType", "typeCheckAElseIf", "(", "INode", "elseIfNode", ",", "ILexLocation", "elseIfLocation", ",", "INode", "test", ",", "INode", "thenNode", ",", "TypeCheckInfo", "question", ")", "throws", "AnalysisException", "{", "if", "(", "!", "question", ".", "assistantFa...
Type checks a AElseIf node @param elseIfNode @param elseIfLocation @param test @param thenNode @param question @return @throws AnalysisException
[ "Type", "checks", "a", "AElseIf", "node" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/typechecker/src/main/java/org/overture/typechecker/visitor/AbstractTypeCheckVisitor.java#L150-L175
train
overturetool/overture
core/typechecker/src/main/java/org/overture/typechecker/visitor/AbstractTypeCheckVisitor.java
AbstractTypeCheckVisitor.typeCheckLet
protected PType typeCheckLet(INode node, LinkedList<PDefinition> localDefs, INode body, TypeCheckInfo question) throws AnalysisException { // Each local definition is in scope for later local definitions... Environment local = question.env; for (PDefinition d : localDefs) { if (d instanceof AExplicitFun...
java
protected PType typeCheckLet(INode node, LinkedList<PDefinition> localDefs, INode body, TypeCheckInfo question) throws AnalysisException { // Each local definition is in scope for later local definitions... Environment local = question.env; for (PDefinition d : localDefs) { if (d instanceof AExplicitFun...
[ "protected", "PType", "typeCheckLet", "(", "INode", "node", ",", "LinkedList", "<", "PDefinition", ">", "localDefs", ",", "INode", "body", ",", "TypeCheckInfo", "question", ")", "throws", "AnalysisException", "{", "// Each local definition is in scope for later local defi...
Type checks a let node @param node @param localDefs @param body @param question @return @throws AnalysisException
[ "Type", "checks", "a", "let", "node" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/typechecker/src/main/java/org/overture/typechecker/visitor/AbstractTypeCheckVisitor.java#L192-L231
train
overturetool/overture
core/typechecker/src/main/java/org/overture/typechecker/visitor/AbstractTypeCheckVisitor.java
AbstractTypeCheckVisitor.typecheckLetBeSt
protected Map.Entry<PType, AMultiBindListDefinition> typecheckLetBeSt( INode node, ILexLocation nodeLocation, PMultipleBind bind, PExp suchThat, INode body, TypeCheckInfo question) throws AnalysisException { final PDefinition def = AstFactory.newAMultiBindListDefinition(nodeLocation, question.assistantFacto...
java
protected Map.Entry<PType, AMultiBindListDefinition> typecheckLetBeSt( INode node, ILexLocation nodeLocation, PMultipleBind bind, PExp suchThat, INode body, TypeCheckInfo question) throws AnalysisException { final PDefinition def = AstFactory.newAMultiBindListDefinition(nodeLocation, question.assistantFacto...
[ "protected", "Map", ".", "Entry", "<", "PType", ",", "AMultiBindListDefinition", ">", "typecheckLetBeSt", "(", "INode", "node", ",", "ILexLocation", "nodeLocation", ",", "PMultipleBind", "bind", ",", "PExp", "suchThat", ",", "INode", "body", ",", "TypeCheckInfo", ...
Type check method for let be such that @param node @param nodeLocation @param bind @param suchThat @param body @param question @return a pair of the type and definition @throws AnalysisException
[ "Type", "check", "method", "for", "let", "be", "such", "that" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/typechecker/src/main/java/org/overture/typechecker/visitor/AbstractTypeCheckVisitor.java#L244-L299
train
overturetool/overture
core/codegen/isagen/src/main/java/org/overturetool/cgisa/IsaTranslations.java
IsaTranslations.hackResultName
public String hackResultName(AFuncDeclIR func) throws AnalysisException { SourceNode x = func.getSourceNode(); if (x.getVdmNode() instanceof AImplicitFunctionDefinition) { AImplicitFunctionDefinition iFunc = (AImplicitFunctionDefinition) x.getVdmNode(); return iFunc.getResult().g...
java
public String hackResultName(AFuncDeclIR func) throws AnalysisException { SourceNode x = func.getSourceNode(); if (x.getVdmNode() instanceof AImplicitFunctionDefinition) { AImplicitFunctionDefinition iFunc = (AImplicitFunctionDefinition) x.getVdmNode(); return iFunc.getResult().g...
[ "public", "String", "hackResultName", "(", "AFuncDeclIR", "func", ")", "throws", "AnalysisException", "{", "SourceNode", "x", "=", "func", ".", "getSourceNode", "(", ")", ";", "if", "(", "x", ".", "getVdmNode", "(", ")", "instanceof", "AImplicitFunctionDefinitio...
FIXME Unhack result name extraction for implicit functions
[ "FIXME", "Unhack", "result", "name", "extraction", "for", "implicit", "functions" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/codegen/isagen/src/main/java/org/overturetool/cgisa/IsaTranslations.java#L150-L158
train
overturetool/overture
core/codegen/isagen/src/main/java/org/overturetool/cgisa/IsaTranslations.java
IsaTranslations.hackInv
public String hackInv(ANamedTypeDeclIR type) { ATypeDeclIR tDecl = (ATypeDeclIR) type.parent(); if (tDecl.getInv() != null) { AFuncDeclIR invFunc = (AFuncDeclIR) tDecl.getInv(); StringBuilder sb = new StringBuilder(); sb.append("inv "); sb.append(invFunc....
java
public String hackInv(ANamedTypeDeclIR type) { ATypeDeclIR tDecl = (ATypeDeclIR) type.parent(); if (tDecl.getInv() != null) { AFuncDeclIR invFunc = (AFuncDeclIR) tDecl.getInv(); StringBuilder sb = new StringBuilder(); sb.append("inv "); sb.append(invFunc....
[ "public", "String", "hackInv", "(", "ANamedTypeDeclIR", "type", ")", "{", "ATypeDeclIR", "tDecl", "=", "(", "ATypeDeclIR", ")", "type", ".", "parent", "(", ")", ";", "if", "(", "tDecl", ".", "getInv", "(", ")", "!=", "null", ")", "{", "AFuncDeclIR", "i...
FIXME Unhack invariant extraction for named types
[ "FIXME", "Unhack", "invariant", "extraction", "for", "named", "types" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/codegen/isagen/src/main/java/org/overturetool/cgisa/IsaTranslations.java#L161-L178
train
overturetool/overture
core/codegen/isagen/src/main/java/org/overturetool/cgisa/IsaTranslations.java
IsaTranslations.hackInv
public String hackInv(ARecordDeclIR type) { if (type.getInvariant() != null) { AFuncDeclIR invFunc = (AFuncDeclIR) type.getInvariant(); StringBuilder sb = new StringBuilder(); sb.append("inv "); sb.append(invFunc.getFormalParams().get(0).getPattern().toString());...
java
public String hackInv(ARecordDeclIR type) { if (type.getInvariant() != null) { AFuncDeclIR invFunc = (AFuncDeclIR) type.getInvariant(); StringBuilder sb = new StringBuilder(); sb.append("inv "); sb.append(invFunc.getFormalParams().get(0).getPattern().toString());...
[ "public", "String", "hackInv", "(", "ARecordDeclIR", "type", ")", "{", "if", "(", "type", ".", "getInvariant", "(", ")", "!=", "null", ")", "{", "AFuncDeclIR", "invFunc", "=", "(", "AFuncDeclIR", ")", "type", ".", "getInvariant", "(", ")", ";", "StringBu...
FIXME Unhack invariant extraction for namedt ypes
[ "FIXME", "Unhack", "invariant", "extraction", "for", "namedt", "ypes" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/codegen/isagen/src/main/java/org/overturetool/cgisa/IsaTranslations.java#L181-L197
train
overturetool/overture
core/prettyprinting/npp/src/main/java/org/overture/core/npp/Utilities.java
Utilities.wrap
public static String wrap(String s) { StringBuilder sb = new StringBuilder(); sb.append("("); sb.append(s); sb.append(")"); return sb.toString(); }
java
public static String wrap(String s) { StringBuilder sb = new StringBuilder(); sb.append("("); sb.append(s); sb.append(")"); return sb.toString(); }
[ "public", "static", "String", "wrap", "(", "String", "s", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "\"(\"", ")", ";", "sb", ".", "append", "(", "s", ")", ";", "sb", ".", "append", "(", ...
Wrap a string in parenthesis. @param s the string to be wrapped @return the wrapped string: <code>"(s)"</code>
[ "Wrap", "a", "string", "in", "parenthesis", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/prettyprinting/npp/src/main/java/org/overture/core/npp/Utilities.java#L39-L47
train
overturetool/overture
core/interpreter/src/main/java/org/overture/interpreter/messages/rtlog/RTMessage.java
RTMessage.getStaticId
protected synchronized Long getStaticId(String name, CPUResource cpuId) { String nameFinal = name + cpuId.getNumber(); if (staticIds.containsKey(nameFinal)) { return staticIds.get(nameFinal); } else { RTDeployStaticMessage deployMessage = new RTDeployStaticMessage(name, cpuId); cachedStaticDeploys....
java
protected synchronized Long getStaticId(String name, CPUResource cpuId) { String nameFinal = name + cpuId.getNumber(); if (staticIds.containsKey(nameFinal)) { return staticIds.get(nameFinal); } else { RTDeployStaticMessage deployMessage = new RTDeployStaticMessage(name, cpuId); cachedStaticDeploys....
[ "protected", "synchronized", "Long", "getStaticId", "(", "String", "name", ",", "CPUResource", "cpuId", ")", "{", "String", "nameFinal", "=", "name", "+", "cpuId", ".", "getNumber", "(", ")", ";", "if", "(", "staticIds", ".", "containsKey", "(", "nameFinal",...
Timestamp the message
[ "Timestamp", "the", "message" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/interpreter/src/main/java/org/overture/interpreter/messages/rtlog/RTMessage.java#L23-L38
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/internal/viewsupport/ProblemMarkerManager.java
ProblemMarkerManager.addListener
public void addListener(IProblemChangedListener listener) { if (fListeners.isEmpty()) { VdmUIPlugin.getWorkspace().addResourceChangeListener(this); //VdmUIPlugin.getDefault().getCompilationUnitDocumentProvider().addGlobalAnnotationModelListener(this); } fListeners.add(listener); }
java
public void addListener(IProblemChangedListener listener) { if (fListeners.isEmpty()) { VdmUIPlugin.getWorkspace().addResourceChangeListener(this); //VdmUIPlugin.getDefault().getCompilationUnitDocumentProvider().addGlobalAnnotationModelListener(this); } fListeners.add(listener); }
[ "public", "void", "addListener", "(", "IProblemChangedListener", "listener", ")", "{", "if", "(", "fListeners", ".", "isEmpty", "(", ")", ")", "{", "VdmUIPlugin", ".", "getWorkspace", "(", ")", ".", "addResourceChangeListener", "(", "this", ")", ";", "//VdmUIP...
Adds a listener for problem marker changes. @param listener the listener to add
[ "Adds", "a", "listener", "for", "problem", "marker", "changes", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/internal/viewsupport/ProblemMarkerManager.java#L183-L189
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/internal/viewsupport/ProblemMarkerManager.java
ProblemMarkerManager.runPendingUpdates
private void runPendingUpdates() { IResource[] markerResources= null; IResource[] annotationResources= null; synchronized (this) { if (!fResourcesWithMarkerChanges.isEmpty()) { markerResources= (IResource[]) fResourcesWithMarkerChanges.toArray(new IResource[fResourcesWithMarkerChanges.size()]); fResour...
java
private void runPendingUpdates() { IResource[] markerResources= null; IResource[] annotationResources= null; synchronized (this) { if (!fResourcesWithMarkerChanges.isEmpty()) { markerResources= (IResource[]) fResourcesWithMarkerChanges.toArray(new IResource[fResourcesWithMarkerChanges.size()]); fResour...
[ "private", "void", "runPendingUpdates", "(", ")", "{", "IResource", "[", "]", "markerResources", "=", "null", ";", "IResource", "[", "]", "annotationResources", "=", "null", ";", "synchronized", "(", "this", ")", "{", "if", "(", "!", "fResourcesWithMarkerChang...
Notify all IProblemChangedListener. Must be called in the display thread.
[ "Notify", "all", "IProblemChangedListener", ".", "Must", "be", "called", "in", "the", "display", "thread", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/internal/viewsupport/ProblemMarkerManager.java#L226-L249
train
overturetool/overture
ide/debug/src/main/java/org/overture/ide/debug/ui/propertypages/VdmLineBreakpointPropertyPage.java
VdmLineBreakpointPropertyPage.createTypeSpecificEditors
protected void createTypeSpecificEditors(Composite parent) throws CoreException { setTitle("Line Breakpoint"); IVdmLineBreakpoint breakpoint = (IVdmLineBreakpoint) getBreakpoint(); // if (breakpoint..supportsCondition()) { createConditionEditor(parent); // } // if (breakpoint instanceof IJavaWatchpoint)...
java
protected void createTypeSpecificEditors(Composite parent) throws CoreException { setTitle("Line Breakpoint"); IVdmLineBreakpoint breakpoint = (IVdmLineBreakpoint) getBreakpoint(); // if (breakpoint..supportsCondition()) { createConditionEditor(parent); // } // if (breakpoint instanceof IJavaWatchpoint)...
[ "protected", "void", "createTypeSpecificEditors", "(", "Composite", "parent", ")", "throws", "CoreException", "{", "setTitle", "(", "\"Line Breakpoint\"", ")", ";", "IVdmLineBreakpoint", "breakpoint", "=", "(", "IVdmLineBreakpoint", ")", "getBreakpoint", "(", ")", ";"...
Create the condition editor and associated editors. @see org.eclipse.jdt.internal.debug.ui.propertypages.JavaBreakpointPage#createTypeSpecificEditors(org.eclipse.swt.widgets.Composite)
[ "Create", "the", "condition", "editor", "and", "associated", "editors", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/debug/src/main/java/org/overture/ide/debug/ui/propertypages/VdmLineBreakpointPropertyPage.java#L166-L208
train
overturetool/overture
ide/debug/src/main/java/org/overture/ide/debug/ui/propertypages/VdmLineBreakpointPropertyPage.java
VdmLineBreakpointPropertyPage.createConditionEditor
private void createConditionEditor(Composite parent) throws CoreException { IVdmLineBreakpoint breakpoint = (IVdmLineBreakpoint) getBreakpoint(); String label = null; // if (BreakpointUtils.getType(breakpoint) != null) { // IBindingService bindingService = // (IBindingService)PlatformUI.getWorkbench().getAda...
java
private void createConditionEditor(Composite parent) throws CoreException { IVdmLineBreakpoint breakpoint = (IVdmLineBreakpoint) getBreakpoint(); String label = null; // if (BreakpointUtils.getType(breakpoint) != null) { // IBindingService bindingService = // (IBindingService)PlatformUI.getWorkbench().getAda...
[ "private", "void", "createConditionEditor", "(", "Composite", "parent", ")", "throws", "CoreException", "{", "IVdmLineBreakpoint", "breakpoint", "=", "(", "IVdmLineBreakpoint", ")", "getBreakpoint", "(", ")", ";", "String", "label", "=", "null", ";", "// if (Breakpo...
Creates the controls that allow the user to specify the breakpoint's condition @param parent the composite in which the condition editor should be created @throws CoreException if an exception occurs accessing the breakpoint
[ "Creates", "the", "controls", "that", "allow", "the", "user", "to", "specify", "the", "breakpoint", "s", "condition" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/debug/src/main/java/org/overture/ide/debug/ui/propertypages/VdmLineBreakpointPropertyPage.java#L218-L259
train
overturetool/overture
ide/debug/src/main/java/org/overture/ide/debug/ui/propertypages/VdmLineBreakpointPropertyPage.java
VdmLineBreakpointPropertyPage.setConditionEnabled
private void setConditionEnabled(boolean enabled) { fConditionEditor.setEnabled(enabled); fSuspendWhenLabel.setEnabled(enabled); fConditionIsTrue.setEnabled(enabled); fConditionHasChanged.setEnabled(enabled); }
java
private void setConditionEnabled(boolean enabled) { fConditionEditor.setEnabled(enabled); fSuspendWhenLabel.setEnabled(enabled); fConditionIsTrue.setEnabled(enabled); fConditionHasChanged.setEnabled(enabled); }
[ "private", "void", "setConditionEnabled", "(", "boolean", "enabled", ")", "{", "fConditionEditor", ".", "setEnabled", "(", "enabled", ")", ";", "fSuspendWhenLabel", ".", "setEnabled", "(", "enabled", ")", ";", "fConditionIsTrue", ".", "setEnabled", "(", "enabled",...
Sets the enabled state of the condition editing controls. @param enabled
[ "Sets", "the", "enabled", "state", "of", "the", "condition", "editing", "controls", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/debug/src/main/java/org/overture/ide/debug/ui/propertypages/VdmLineBreakpointPropertyPage.java#L266-L272
train
overturetool/overture
core/interpreter/src/main/java/IO.java
IO.freadval
public static Value freadval(Value fval, Context ctxt) { ValueList result = new ValueList(); try { File file = getFile(fval); LexTokenReader ltr = new LexTokenReader(file, Dialect.VDM_PP, VDMJ.filecharset); ExpressionReader reader = new ExpressionReader(ltr); reader.setCurrentModule("IO"); PExp ...
java
public static Value freadval(Value fval, Context ctxt) { ValueList result = new ValueList(); try { File file = getFile(fval); LexTokenReader ltr = new LexTokenReader(file, Dialect.VDM_PP, VDMJ.filecharset); ExpressionReader reader = new ExpressionReader(ltr); reader.setCurrentModule("IO"); PExp ...
[ "public", "static", "Value", "freadval", "(", "Value", "fval", ",", "Context", "ctxt", ")", "{", "ValueList", "result", "=", "new", "ValueList", "(", ")", ";", "try", "{", "File", "file", "=", "getFile", "(", "fval", ")", ";", "LexTokenReader", "ltr", ...
reading the data.
[ "reading", "the", "data", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/interpreter/src/main/java/IO.java#L95-L121
train
overturetool/overture
core/interpreter/src/main/java/IO.java
IO.getFile
protected static File getFile(Value fval) { String path = stringOf(fval).replace('/', File.separatorChar); File file = new File(path); if (!file.isAbsolute()) { file = new File(Settings.baseDir, path); } return file; }
java
protected static File getFile(Value fval) { String path = stringOf(fval).replace('/', File.separatorChar); File file = new File(path); if (!file.isAbsolute()) { file = new File(Settings.baseDir, path); } return file; }
[ "protected", "static", "File", "getFile", "(", "Value", "fval", ")", "{", "String", "path", "=", "stringOf", "(", "fval", ")", ".", "replace", "(", "'", "'", ",", "File", ".", "separatorChar", ")", ";", "File", "file", "=", "new", "File", "(", "path"...
Gets the absolute path the file based on the filename parsed and the working dir of the IDE or the execution dir of VDMJ @param fval file name @return
[ "Gets", "the", "absolute", "path", "the", "file", "based", "on", "the", "filename", "parsed", "and", "the", "working", "dir", "of", "the", "IDE", "or", "the", "execution", "dir", "of", "VDMJ" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/interpreter/src/main/java/IO.java#L131-L141
train
overturetool/overture
core/interpreter/src/main/java/IO.java
IO.stringOf
protected static String stringOf(Value val) { StringBuilder s = new StringBuilder(); val = val.deref(); if (val instanceof SeqValue) { SeqValue sv = (SeqValue) val; for (Value v : sv.values) { v = v.deref(); if (v instanceof CharacterValue) { CharacterValue cv = (CharacterValue) v;...
java
protected static String stringOf(Value val) { StringBuilder s = new StringBuilder(); val = val.deref(); if (val instanceof SeqValue) { SeqValue sv = (SeqValue) val; for (Value v : sv.values) { v = v.deref(); if (v instanceof CharacterValue) { CharacterValue cv = (CharacterValue) v;...
[ "protected", "static", "String", "stringOf", "(", "Value", "val", ")", "{", "StringBuilder", "s", "=", "new", "StringBuilder", "(", ")", ";", "val", "=", "val", ".", "deref", "(", ")", ";", "if", "(", "val", "instanceof", "SeqValue", ")", "{", "SeqValu...
characters back to their quoted form.
[ "characters", "back", "to", "their", "quoted", "form", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/interpreter/src/main/java/IO.java#L181-L209
train
overturetool/overture
core/typechecker/src/main/java/org/overture/typechecker/TypeChecker.java
TypeChecker.cyclicDependencyCheck
protected void cyclicDependencyCheck(List<PDefinition> defs) { if (System.getProperty("skip.cyclic.check") != null) { return; // For now, to allow us to skip if there are issues. } if (getErrorCount() > 0) { return; // Can't really check everything until it's clean } Map<ILexNameToken, LexN...
java
protected void cyclicDependencyCheck(List<PDefinition> defs) { if (System.getProperty("skip.cyclic.check") != null) { return; // For now, to allow us to skip if there are issues. } if (getErrorCount() > 0) { return; // Can't really check everything until it's clean } Map<ILexNameToken, LexN...
[ "protected", "void", "cyclicDependencyCheck", "(", "List", "<", "PDefinition", ">", "defs", ")", "{", "if", "(", "System", ".", "getProperty", "(", "\"skip.cyclic.check\"", ")", "!=", "null", ")", "{", "return", ";", "// For now, to allow us to skip if there are iss...
Check for cyclic dependencies between the free variables that definitions depend on and the definition of those variables.
[ "Check", "for", "cyclic", "dependencies", "between", "the", "free", "variables", "that", "definitions", "depend", "on", "and", "the", "definition", "of", "those", "variables", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/typechecker/src/main/java/org/overture/typechecker/TypeChecker.java#L92-L151
train
overturetool/overture
core/typechecker/src/main/java/org/overture/typechecker/TypeChecker.java
TypeChecker.reachable
private boolean reachable(ILexNameToken sought, LexNameSet nextset, Map<ILexNameToken, LexNameSet> dependencies, Stack<ILexNameToken> stack) { if (nextset == null) { return false; } if (nextset.contains(sought)) { stack.push(sought); return true; } for (ILexNameToken nextname: nextset) ...
java
private boolean reachable(ILexNameToken sought, LexNameSet nextset, Map<ILexNameToken, LexNameSet> dependencies, Stack<ILexNameToken> stack) { if (nextset == null) { return false; } if (nextset.contains(sought)) { stack.push(sought); return true; } for (ILexNameToken nextname: nextset) ...
[ "private", "boolean", "reachable", "(", "ILexNameToken", "sought", ",", "LexNameSet", "nextset", ",", "Map", "<", "ILexNameToken", ",", "LexNameSet", ">", "dependencies", ",", "Stack", "<", "ILexNameToken", ">", "stack", ")", "{", "if", "(", "nextset", "==", ...
Return true if the name sought is reachable via the next set of names passed using the dependency map. The stack passed records the path taken to find a cycle.
[ "Return", "true", "if", "the", "name", "sought", "is", "reachable", "via", "the", "next", "set", "of", "names", "passed", "using", "the", "dependency", "map", ".", "The", "stack", "passed", "records", "the", "path", "taken", "to", "find", "a", "cycle", "...
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/typechecker/src/main/java/org/overture/typechecker/TypeChecker.java#L215-L247
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/navigator/VdmRefreshAction.java
VdmRefreshAction.fillContextMenu
@SuppressWarnings("unchecked") @Override public void fillContextMenu(IMenuManager menu) { IStructuredSelection selection = (IStructuredSelection) getContext().getSelection(); boolean hasClosedProjects = false; Iterator<Object> resources = selection.iterator(); while (resource...
java
@SuppressWarnings("unchecked") @Override public void fillContextMenu(IMenuManager menu) { IStructuredSelection selection = (IStructuredSelection) getContext().getSelection(); boolean hasClosedProjects = false; Iterator<Object> resources = selection.iterator(); while (resource...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "fillContextMenu", "(", "IMenuManager", "menu", ")", "{", "IStructuredSelection", "selection", "=", "(", "IStructuredSelection", ")", "getContext", "(", ")", ".", "getSelection", ...
Adds the refresh resource actions to the context menu. @param menu context menu to add actions to
[ "Adds", "the", "refresh", "resource", "actions", "to", "the", "context", "menu", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/navigator/VdmRefreshAction.java#L85-L115
train
overturetool/overture
ide/debug/src/main/java/org/overture/ide/debug/core/model/internal/VdmThread.java
VdmThread.handleSuspend
public void handleSuspend(int detail) { DebugEventHelper.fireExtendedEvent(this, ExtendedDebugEventDetails.BEFORE_SUSPEND); // if (handleSmartStepInto()) { // return; // } this.target.printLog(new LogItem(this.session.getInfo(), "Break", false, "Suspend")); DebugEventHelper.fireChangeEvent(this); Debug...
java
public void handleSuspend(int detail) { DebugEventHelper.fireExtendedEvent(this, ExtendedDebugEventDetails.BEFORE_SUSPEND); // if (handleSmartStepInto()) { // return; // } this.target.printLog(new LogItem(this.session.getInfo(), "Break", false, "Suspend")); DebugEventHelper.fireChangeEvent(this); Debug...
[ "public", "void", "handleSuspend", "(", "int", "detail", ")", "{", "DebugEventHelper", ".", "fireExtendedEvent", "(", "this", ",", "ExtendedDebugEventDetails", ".", "BEFORE_SUSPEND", ")", ";", "// if (handleSmartStepInto()) {", "// return;", "// }", "this", ".", "targ...
VdmThreadStateManager.IStateChangeHandler
[ "VdmThreadStateManager", ".", "IStateChangeHandler" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/debug/src/main/java/org/overture/ide/debug/core/model/internal/VdmThread.java#L88-L102
train
overturetool/overture
core/codegen/javagen/src/main/java/org/overture/codegen/vdm2java/JavaCodeGenUtil.java
JavaCodeGenUtil.isValidJavaIdentifier
public static boolean isValidJavaIdentifier(String s) { if (s == null || s.length() == 0) { return false; } if (isJavaKeyword(s)) { return false; } char[] c = s.toCharArray(); if (!Character.isJavaIdentifierStart(c[0])) { return false; } for (int i = 1; i < c.length; i++) { if (!...
java
public static boolean isValidJavaIdentifier(String s) { if (s == null || s.length() == 0) { return false; } if (isJavaKeyword(s)) { return false; } char[] c = s.toCharArray(); if (!Character.isJavaIdentifierStart(c[0])) { return false; } for (int i = 1; i < c.length; i++) { if (!...
[ "public", "static", "boolean", "isValidJavaIdentifier", "(", "String", "s", ")", "{", "if", "(", "s", "==", "null", "||", "s", ".", "length", "(", ")", "==", "0", ")", "{", "return", "false", ";", "}", "if", "(", "isJavaKeyword", "(", "s", ")", ")"...
Checks whether the given String is a valid Java identifier. @param s the String to check @return <code>true</code> if 's' is an identifier, <code>false</code> otherwise
[ "Checks", "whether", "the", "given", "String", "is", "a", "valid", "Java", "identifier", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/codegen/javagen/src/main/java/org/overture/codegen/vdm2java/JavaCodeGenUtil.java#L202-L229
train
overturetool/overture
core/codegen/javagen/src/main/java/org/overture/codegen/vdm2java/JavaCodeGenUtil.java
JavaCodeGenUtil.computeJavaIdentifierCorrections
public static List<Integer> computeJavaIdentifierCorrections(String s) { List<Integer> correctionIndices = new LinkedList<Integer>(); if (s == null || s.length() == 0) { return correctionIndices; } char[] c = s.toCharArray(); if (!Character.isJavaIdentifierStart(c[0])) { correctionIndices.add(0)...
java
public static List<Integer> computeJavaIdentifierCorrections(String s) { List<Integer> correctionIndices = new LinkedList<Integer>(); if (s == null || s.length() == 0) { return correctionIndices; } char[] c = s.toCharArray(); if (!Character.isJavaIdentifierStart(c[0])) { correctionIndices.add(0)...
[ "public", "static", "List", "<", "Integer", ">", "computeJavaIdentifierCorrections", "(", "String", "s", ")", "{", "List", "<", "Integer", ">", "correctionIndices", "=", "new", "LinkedList", "<", "Integer", ">", "(", ")", ";", "if", "(", "s", "==", "null",...
Computes the indices of characters that need to be replaced with valid characters in order to make 's' a valid Java identifier. Please note that this method assumes that 's' is NOT a keyword. @param s the identifier to compute correction indices for. @return the indices of the characters that need to be corrected in o...
[ "Computes", "the", "indices", "of", "characters", "that", "need", "to", "be", "replaced", "with", "valid", "characters", "in", "order", "to", "make", "s", "a", "valid", "Java", "identifier", ".", "Please", "note", "that", "this", "method", "assumes", "that",...
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/core/codegen/javagen/src/main/java/org/overture/codegen/vdm2java/JavaCodeGenUtil.java#L240-L265
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java
VdmEditor.createOutlinePage
protected VdmContentOutlinePage createOutlinePage() { // VdmContentOutlinePage page= new // VdmContentOutlinePage(fOutlinerContextMenuId, this); VdmContentOutlinePage page = new VdmContentOutlinePage(this); setOutlinePageInput(page, getEditorInput()); page.addSelectionChangedListener(createOutlineSelectionCha...
java
protected VdmContentOutlinePage createOutlinePage() { // VdmContentOutlinePage page= new // VdmContentOutlinePage(fOutlinerContextMenuId, this); VdmContentOutlinePage page = new VdmContentOutlinePage(this); setOutlinePageInput(page, getEditorInput()); page.addSelectionChangedListener(createOutlineSelectionCha...
[ "protected", "VdmContentOutlinePage", "createOutlinePage", "(", ")", "{", "// VdmContentOutlinePage page= new", "// VdmContentOutlinePage(fOutlinerContextMenuId, this);", "VdmContentOutlinePage", "page", "=", "new", "VdmContentOutlinePage", "(", "this", ")", ";", "setOutlinePageInp...
Creates the outline page used with this editor. @return the created Java outline page
[ "Creates", "the", "outline", "page", "used", "with", "this", "editor", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java#L205-L212
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java
VdmEditor.selectAndReveal
public void selectAndReveal(INode node) { int[] offsetLength = this.locationSearcher.getNodeOffset(node); selectAndReveal(offsetLength[0], offsetLength[1]); }
java
public void selectAndReveal(INode node) { int[] offsetLength = this.locationSearcher.getNodeOffset(node); selectAndReveal(offsetLength[0], offsetLength[1]); }
[ "public", "void", "selectAndReveal", "(", "INode", "node", ")", "{", "int", "[", "]", "offsetLength", "=", "this", ".", "locationSearcher", ".", "getNodeOffset", "(", "node", ")", ";", "selectAndReveal", "(", "offsetLength", "[", "0", "]", ",", "offsetLength...
Selects a node existing within the ast presented by the editor @param node
[ "Selects", "a", "node", "existing", "within", "the", "ast", "presented", "by", "the", "editor" ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java#L251-L254
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java
VdmEditor.setHighlightRange
public void setHighlightRange(INode node) { try { int[] offsetLength = this.locationSearcher.getNodeOffset(node); // int offset = getSourceViewer().getTextWidget().getCaretOffset(); Assert.isNotNull(offsetLength); Assert.isTrue(offsetLength[0] > 0, "Illegal start offset"); Assert.isTrue(offsetLength[0]...
java
public void setHighlightRange(INode node) { try { int[] offsetLength = this.locationSearcher.getNodeOffset(node); // int offset = getSourceViewer().getTextWidget().getCaretOffset(); Assert.isNotNull(offsetLength); Assert.isTrue(offsetLength[0] > 0, "Illegal start offset"); Assert.isTrue(offsetLength[0]...
[ "public", "void", "setHighlightRange", "(", "INode", "node", ")", "{", "try", "{", "int", "[", "]", "offsetLength", "=", "this", ".", "locationSearcher", ".", "getNodeOffset", "(", "node", ")", ";", "// int offset = getSourceViewer().getTextWidget().getCaretOffset();"...
highlights a node in the text editor. @param node
[ "highlights", "a", "node", "in", "the", "text", "editor", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java#L261-L272
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java
VdmEditor.createCombinedPreferenceStore
private IPreferenceStore createCombinedPreferenceStore(IEditorInput input) { List<IPreferenceStore> stores = new ArrayList<IPreferenceStore>(3); // IJavaProject project= EditorUtility.getJavaProject(input); // if (project != null) { // stores.add(new EclipsePreferencesAdapter(new // ProjectScope(project.getP...
java
private IPreferenceStore createCombinedPreferenceStore(IEditorInput input) { List<IPreferenceStore> stores = new ArrayList<IPreferenceStore>(3); // IJavaProject project= EditorUtility.getJavaProject(input); // if (project != null) { // stores.add(new EclipsePreferencesAdapter(new // ProjectScope(project.getP...
[ "private", "IPreferenceStore", "createCombinedPreferenceStore", "(", "IEditorInput", "input", ")", "{", "List", "<", "IPreferenceStore", ">", "stores", "=", "new", "ArrayList", "<", "IPreferenceStore", ">", "(", "3", ")", ";", "// IJavaProject project= EditorUtility.get...
Creates and returns the preference store for this Java editor with the given input. @param input The editor input for which to create the preference store @return the preference store for this editor @since 3.0
[ "Creates", "and", "returns", "the", "preference", "store", "for", "this", "Java", "editor", "with", "the", "given", "input", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java#L489-L508
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java
VdmEditor.setOutlinePageInput
protected void setOutlinePageInput(VdmContentOutlinePage page, IEditorInput input) { if (page == null) return; IVdmElement je = getInputVdmElement(); if (je != null && je.exists()) page.setInput(je); else page.setInput(null); }
java
protected void setOutlinePageInput(VdmContentOutlinePage page, IEditorInput input) { if (page == null) return; IVdmElement je = getInputVdmElement(); if (je != null && je.exists()) page.setInput(je); else page.setInput(null); }
[ "protected", "void", "setOutlinePageInput", "(", "VdmContentOutlinePage", "page", ",", "IEditorInput", "input", ")", "{", "if", "(", "page", "==", "null", ")", "return", ";", "IVdmElement", "je", "=", "getInputVdmElement", "(", ")", ";", "if", "(", "je", "!=...
Sets the input of the editor's outline page. @param page the Java outline page @param input the editor input
[ "Sets", "the", "input", "of", "the", "editor", "s", "outline", "page", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java#L518-L529
train
overturetool/overture
ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java
VdmEditor.selectionChanged
protected void selectionChanged() { if (getSelectionProvider() == null) return; INode element = computeHighlightRangeSourceReference(); // if // (getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE)) synchronizeOutlinePage(element); // if (fIsBreadcrumbVisible && fBread...
java
protected void selectionChanged() { if (getSelectionProvider() == null) return; INode element = computeHighlightRangeSourceReference(); // if // (getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE)) synchronizeOutlinePage(element); // if (fIsBreadcrumbVisible && fBread...
[ "protected", "void", "selectionChanged", "(", ")", "{", "if", "(", "getSelectionProvider", "(", ")", "==", "null", ")", "return", ";", "INode", "element", "=", "computeHighlightRangeSourceReference", "(", ")", ";", "// if", "// (getPreferenceStore().getBoolean(Prefere...
React to changed selection. @since 3.0
[ "React", "to", "changed", "selection", "." ]
83175dc6c24fa171cde4fcf61ecb648eba3bdbc1
https://github.com/overturetool/overture/blob/83175dc6c24fa171cde4fcf61ecb648eba3bdbc1/ide/ui/src/main/java/org/overture/ide/ui/editor/core/VdmEditor.java#L561-L576
train