id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
57,000 | sarl/sarl | main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/config/SARLProjectConfigurator.java | SARLProjectConfigurator.readConfiguration | protected SARLConfiguration readConfiguration(ProjectConfigurationRequest request,
IProgressMonitor monitor) throws CoreException {
SARLConfiguration initConfig = null;
SARLConfiguration compileConfig = null;
final List<MojoExecution> mojos = getMojoExecutions(request, monitor);
for (final MojoExecution mo... | java | protected SARLConfiguration readConfiguration(ProjectConfigurationRequest request,
IProgressMonitor monitor) throws CoreException {
SARLConfiguration initConfig = null;
SARLConfiguration compileConfig = null;
final List<MojoExecution> mojos = getMojoExecutions(request, monitor);
for (final MojoExecution mo... | [
"protected",
"SARLConfiguration",
"readConfiguration",
"(",
"ProjectConfigurationRequest",
"request",
",",
"IProgressMonitor",
"monitor",
")",
"throws",
"CoreException",
"{",
"SARLConfiguration",
"initConfig",
"=",
"null",
";",
"SARLConfiguration",
"compileConfig",
"=",
"nu... | Read the SARL configuration.
@param request the configuration request.
@param monitor the monitor.
@return the SARL configuration.
@throws CoreException if something wrong appends. | [
"Read",
"the",
"SARL",
"configuration",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/config/SARLProjectConfigurator.java#L259-L284 |
57,001 | sarl/sarl | main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/config/SARLProjectConfigurator.java | SARLProjectConfigurator.readInitializeConfiguration | private SARLConfiguration readInitializeConfiguration(
ProjectConfigurationRequest request, MojoExecution mojo, IProgressMonitor monitor)
throws CoreException {
final SARLConfiguration config = new SARLConfiguration();
final MavenProject project = request.getMavenProject();
final File input = getParamet... | java | private SARLConfiguration readInitializeConfiguration(
ProjectConfigurationRequest request, MojoExecution mojo, IProgressMonitor monitor)
throws CoreException {
final SARLConfiguration config = new SARLConfiguration();
final MavenProject project = request.getMavenProject();
final File input = getParamet... | [
"private",
"SARLConfiguration",
"readInitializeConfiguration",
"(",
"ProjectConfigurationRequest",
"request",
",",
"MojoExecution",
"mojo",
",",
"IProgressMonitor",
"monitor",
")",
"throws",
"CoreException",
"{",
"final",
"SARLConfiguration",
"config",
"=",
"new",
"SARLConf... | Read the configuration for the Initialize mojo.
@param request the request.
@param mojo the mojo execution.
@param monitor the monitor.
@return the configuration.
@throws CoreException error in the eCore configuration. | [
"Read",
"the",
"configuration",
"for",
"the",
"Initialize",
"mojo",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/config/SARLProjectConfigurator.java#L294-L322 |
57,002 | sarl/sarl | main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/config/SARLProjectConfigurator.java | SARLProjectConfigurator.readCompileConfiguration | private SARLConfiguration readCompileConfiguration(
ProjectConfigurationRequest request, MojoExecution mojo, IProgressMonitor monitor)
throws CoreException {
final SARLConfiguration config = new SARLConfiguration();
final MavenProject project = request.getMavenProject();
final File input = getParameterV... | java | private SARLConfiguration readCompileConfiguration(
ProjectConfigurationRequest request, MojoExecution mojo, IProgressMonitor monitor)
throws CoreException {
final SARLConfiguration config = new SARLConfiguration();
final MavenProject project = request.getMavenProject();
final File input = getParameterV... | [
"private",
"SARLConfiguration",
"readCompileConfiguration",
"(",
"ProjectConfigurationRequest",
"request",
",",
"MojoExecution",
"mojo",
",",
"IProgressMonitor",
"monitor",
")",
"throws",
"CoreException",
"{",
"final",
"SARLConfiguration",
"config",
"=",
"new",
"SARLConfigu... | Read the configuration for the Compilation mojo.
@param request the request.
@param mojo the mojo execution.
@param monitor the monitor.
@return the configuration.
@throws CoreException error in the eCore configuration. | [
"Read",
"the",
"configuration",
"for",
"the",
"Compilation",
"mojo",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/config/SARLProjectConfigurator.java#L332-L363 |
57,003 | sarl/sarl | main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/config/SARLProjectConfigurator.java | SARLProjectConfigurator.addSarlLibraries | @SuppressWarnings("static-method")
protected void addSarlLibraries(IClasspathDescriptor classpath) {
final IClasspathEntry entry = JavaCore.newContainerEntry(SARLClasspathContainerInitializer.CONTAINER_ID);
classpath.addEntry(entry);
} | java | @SuppressWarnings("static-method")
protected void addSarlLibraries(IClasspathDescriptor classpath) {
final IClasspathEntry entry = JavaCore.newContainerEntry(SARLClasspathContainerInitializer.CONTAINER_ID);
classpath.addEntry(entry);
} | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"void",
"addSarlLibraries",
"(",
"IClasspathDescriptor",
"classpath",
")",
"{",
"final",
"IClasspathEntry",
"entry",
"=",
"JavaCore",
".",
"newContainerEntry",
"(",
"SARLClasspathContainerInitializer",
"... | Add the SARL libraries into the given classpath.
@param classpath the classpath to update. | [
"Add",
"the",
"SARL",
"libraries",
"into",
"the",
"given",
"classpath",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/config/SARLProjectConfigurator.java#L378-L382 |
57,004 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageTypeConverter.java | ExtraLanguageTypeConverter.hasConversion | public boolean hasConversion(String type) {
if ((isImplicitSarlTypes() && type.startsWith(IMPLICIT_PACKAGE))
|| isImplicitJvmTypes()) {
return true;
}
if (this.mapping == null) {
this.mapping = initMapping();
}
return this.mapping.containsKey(type);
} | java | public boolean hasConversion(String type) {
if ((isImplicitSarlTypes() && type.startsWith(IMPLICIT_PACKAGE))
|| isImplicitJvmTypes()) {
return true;
}
if (this.mapping == null) {
this.mapping = initMapping();
}
return this.mapping.containsKey(type);
} | [
"public",
"boolean",
"hasConversion",
"(",
"String",
"type",
")",
"{",
"if",
"(",
"(",
"isImplicitSarlTypes",
"(",
")",
"&&",
"type",
".",
"startsWith",
"(",
"IMPLICIT_PACKAGE",
")",
")",
"||",
"isImplicitJvmTypes",
"(",
")",
")",
"{",
"return",
"true",
";... | Indicates if the given name has a mapping to the extra language.
@param type the type to convert.
@return {@code true} if the mapping exists. | [
"Indicates",
"if",
"the",
"given",
"name",
"has",
"a",
"mapping",
"to",
"the",
"extra",
"language",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageTypeConverter.java#L143-L152 |
57,005 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageTypeConverter.java | ExtraLanguageTypeConverter.convert | public String convert(String type) {
if (isImplicitSarlTypes() && type.startsWith(IMPLICIT_PACKAGE)) {
return type;
}
if (this.mapping == null) {
this.mapping = initMapping();
}
final String map = this.mapping.get(type);
if (map != null) {
if (map.isEmpty() && !isImplicitJvmTypes()) {
return nu... | java | public String convert(String type) {
if (isImplicitSarlTypes() && type.startsWith(IMPLICIT_PACKAGE)) {
return type;
}
if (this.mapping == null) {
this.mapping = initMapping();
}
final String map = this.mapping.get(type);
if (map != null) {
if (map.isEmpty() && !isImplicitJvmTypes()) {
return nu... | [
"public",
"String",
"convert",
"(",
"String",
"type",
")",
"{",
"if",
"(",
"isImplicitSarlTypes",
"(",
")",
"&&",
"type",
".",
"startsWith",
"(",
"IMPLICIT_PACKAGE",
")",
")",
"{",
"return",
"type",
";",
"}",
"if",
"(",
"this",
".",
"mapping",
"==",
"n... | Convert the given type to its equivalent in the extra language.
@param type the type to convert.
@return the conversion result, or {@code null} if no equivalent exist. | [
"Convert",
"the",
"given",
"type",
"to",
"its",
"equivalent",
"in",
"the",
"extra",
"language",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageTypeConverter.java#L159-L177 |
57,006 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java | InheritanceHelper.isSarlAgent | public boolean isSarlAgent(LightweightTypeReference type) {
return !type.isInterfaceType() && (getSarlElementEcoreType(type) == SarlPackage.SARL_AGENT
|| type.isSubtypeOf(Agent.class));
} | java | public boolean isSarlAgent(LightweightTypeReference type) {
return !type.isInterfaceType() && (getSarlElementEcoreType(type) == SarlPackage.SARL_AGENT
|| type.isSubtypeOf(Agent.class));
} | [
"public",
"boolean",
"isSarlAgent",
"(",
"LightweightTypeReference",
"type",
")",
"{",
"return",
"!",
"type",
".",
"isInterfaceType",
"(",
")",
"&&",
"(",
"getSarlElementEcoreType",
"(",
"type",
")",
"==",
"SarlPackage",
".",
"SARL_AGENT",
"||",
"type",
".",
"... | Replies if the given JVM element is a SARL agent.
@param type the JVM type to test.
@return {@code true} if the given type is a SARL agent, or not.
@since 0.8 | [
"Replies",
"if",
"the",
"given",
"JVM",
"element",
"is",
"a",
"SARL",
"agent",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java#L253-L256 |
57,007 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java | InheritanceHelper.isSarlBehavior | public boolean isSarlBehavior(LightweightTypeReference type) {
return !type.isInterfaceType() && (getSarlElementEcoreType(type) == SarlPackage.SARL_BEHAVIOR
|| type.isSubtypeOf(Behavior.class));
} | java | public boolean isSarlBehavior(LightweightTypeReference type) {
return !type.isInterfaceType() && (getSarlElementEcoreType(type) == SarlPackage.SARL_BEHAVIOR
|| type.isSubtypeOf(Behavior.class));
} | [
"public",
"boolean",
"isSarlBehavior",
"(",
"LightweightTypeReference",
"type",
")",
"{",
"return",
"!",
"type",
".",
"isInterfaceType",
"(",
")",
"&&",
"(",
"getSarlElementEcoreType",
"(",
"type",
")",
"==",
"SarlPackage",
".",
"SARL_BEHAVIOR",
"||",
"type",
".... | Replies if the given JVM element is a SARL behavior.
@param type the JVM type to test.
@return {@code true} if the given type is a SARL behavior, or not.
@since 0.8 | [
"Replies",
"if",
"the",
"given",
"JVM",
"element",
"is",
"a",
"SARL",
"behavior",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java#L274-L277 |
57,008 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java | InheritanceHelper.isSarlCapacity | public boolean isSarlCapacity(LightweightTypeReference type) {
return type.isInterfaceType() && (getSarlElementEcoreType(type) == SarlPackage.SARL_CAPACITY
|| type.isSubtypeOf(Capacity.class));
} | java | public boolean isSarlCapacity(LightweightTypeReference type) {
return type.isInterfaceType() && (getSarlElementEcoreType(type) == SarlPackage.SARL_CAPACITY
|| type.isSubtypeOf(Capacity.class));
} | [
"public",
"boolean",
"isSarlCapacity",
"(",
"LightweightTypeReference",
"type",
")",
"{",
"return",
"type",
".",
"isInterfaceType",
"(",
")",
"&&",
"(",
"getSarlElementEcoreType",
"(",
"type",
")",
"==",
"SarlPackage",
".",
"SARL_CAPACITY",
"||",
"type",
".",
"i... | Replies if the given JVM element is a SARL capacity.
@param type the JVM type to test.
@return {@code true} if the given type is a SARL capacity, or not.
@since 0.8 | [
"Replies",
"if",
"the",
"given",
"JVM",
"element",
"is",
"a",
"SARL",
"capacity",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java#L295-L298 |
57,009 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java | InheritanceHelper.isSarlEvent | public boolean isSarlEvent(LightweightTypeReference type) {
return !type.isInterfaceType() && (getSarlElementEcoreType(type) == SarlPackage.SARL_EVENT
|| type.isSubtypeOf(Event.class));
} | java | public boolean isSarlEvent(LightweightTypeReference type) {
return !type.isInterfaceType() && (getSarlElementEcoreType(type) == SarlPackage.SARL_EVENT
|| type.isSubtypeOf(Event.class));
} | [
"public",
"boolean",
"isSarlEvent",
"(",
"LightweightTypeReference",
"type",
")",
"{",
"return",
"!",
"type",
".",
"isInterfaceType",
"(",
")",
"&&",
"(",
"getSarlElementEcoreType",
"(",
"type",
")",
"==",
"SarlPackage",
".",
"SARL_EVENT",
"||",
"type",
".",
"... | Replies if the given JVM element is a SARL event.
@param type the JVM type to test.
@return {@code true} if the given type is a SARL event, or not.
@since 0.8 | [
"Replies",
"if",
"the",
"given",
"JVM",
"element",
"is",
"a",
"SARL",
"event",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java#L316-L319 |
57,010 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java | InheritanceHelper.isSarlSkill | public boolean isSarlSkill(LightweightTypeReference type) {
return !type.isInterfaceType() && (getSarlElementEcoreType(type) == SarlPackage.SARL_SKILL
|| type.isSubtypeOf(Skill.class));
} | java | public boolean isSarlSkill(LightweightTypeReference type) {
return !type.isInterfaceType() && (getSarlElementEcoreType(type) == SarlPackage.SARL_SKILL
|| type.isSubtypeOf(Skill.class));
} | [
"public",
"boolean",
"isSarlSkill",
"(",
"LightweightTypeReference",
"type",
")",
"{",
"return",
"!",
"type",
".",
"isInterfaceType",
"(",
")",
"&&",
"(",
"getSarlElementEcoreType",
"(",
"type",
")",
"==",
"SarlPackage",
".",
"SARL_SKILL",
"||",
"type",
".",
"... | Replies if the given JVM element is a SARL skill.
@param type the JVM type to test.
@return {@code true} if the given type is a SARL skill, or not.
@since 0.8 | [
"Replies",
"if",
"the",
"given",
"JVM",
"element",
"is",
"a",
"SARL",
"skill",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/InheritanceHelper.java#L337-L340 |
57,011 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/MultipleAddressParticipantRepository.java | MultipleAddressParticipantRepository.unregisterParticipant | public ADDRESST unregisterParticipant(ADDRESST address, EventListener entity) {
synchronized (mutex()) {
removeListener(address);
this.participants.remove(entity.getID(), address);
}
return address;
} | java | public ADDRESST unregisterParticipant(ADDRESST address, EventListener entity) {
synchronized (mutex()) {
removeListener(address);
this.participants.remove(entity.getID(), address);
}
return address;
} | [
"public",
"ADDRESST",
"unregisterParticipant",
"(",
"ADDRESST",
"address",
",",
"EventListener",
"entity",
")",
"{",
"synchronized",
"(",
"mutex",
"(",
")",
")",
"{",
"removeListener",
"(",
"address",
")",
";",
"this",
".",
"participants",
".",
"remove",
"(",
... | Remove a participant from this repository.
@param address address of a participant to remove from this repository.
@param entity participant to unmap to the given address.
@return a. | [
"Remove",
"a",
"participant",
"from",
"this",
"repository",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/MultipleAddressParticipantRepository.java#L101-L107 |
57,012 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/MultipleAddressParticipantRepository.java | MultipleAddressParticipantRepository.getAddresses | public SynchronizedCollection<ADDRESST> getAddresses(UUID participant) {
final Object mutex = mutex();
synchronized (mutex) {
return Collections3.synchronizedCollection(this.participants.get(participant), mutex);
}
} | java | public SynchronizedCollection<ADDRESST> getAddresses(UUID participant) {
final Object mutex = mutex();
synchronized (mutex) {
return Collections3.synchronizedCollection(this.participants.get(participant), mutex);
}
} | [
"public",
"SynchronizedCollection",
"<",
"ADDRESST",
">",
"getAddresses",
"(",
"UUID",
"participant",
")",
"{",
"final",
"Object",
"mutex",
"=",
"mutex",
"(",
")",
";",
"synchronized",
"(",
"mutex",
")",
"{",
"return",
"Collections3",
".",
"synchronizedCollectio... | Replies all the addresses of the participant with the given identifier.
@param participant the identifier of the participant.
@return the collection of addresses. It may be <code>null</code> if the participant is unknown. | [
"Replies",
"all",
"the",
"addresses",
"of",
"the",
"participant",
"with",
"the",
"given",
"identifier",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/MultipleAddressParticipantRepository.java#L115-L120 |
57,013 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLReadAndWriteTracking.java | SARLReadAndWriteTracking.markAssignmentAccess | public boolean markAssignmentAccess(EObject object) {
assert object != null;
if (!isAssigned(object)) {
return object.eAdapters().add(ASSIGNMENT_MARKER);
}
return false;
} | java | public boolean markAssignmentAccess(EObject object) {
assert object != null;
if (!isAssigned(object)) {
return object.eAdapters().add(ASSIGNMENT_MARKER);
}
return false;
} | [
"public",
"boolean",
"markAssignmentAccess",
"(",
"EObject",
"object",
")",
"{",
"assert",
"object",
"!=",
"null",
";",
"if",
"(",
"!",
"isAssigned",
"(",
"object",
")",
")",
"{",
"return",
"object",
".",
"eAdapters",
"(",
")",
".",
"add",
"(",
"ASSIGNME... | Mark the given object as an assigned object after its initialization.
<p>The given object has its value changed by a assignment operation.
@param object the written object.
@return {@code true} if the write flag has changed. | [
"Mark",
"the",
"given",
"object",
"as",
"an",
"assigned",
"object",
"after",
"its",
"initialization",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLReadAndWriteTracking.java#L74-L80 |
57,014 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLReadAndWriteTracking.java | SARLReadAndWriteTracking.isAssigned | @SuppressWarnings("static-method")
public boolean isAssigned(final EObject object) {
assert object != null;
return object.eAdapters().contains(ASSIGNMENT_MARKER);
} | java | @SuppressWarnings("static-method")
public boolean isAssigned(final EObject object) {
assert object != null;
return object.eAdapters().contains(ASSIGNMENT_MARKER);
} | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"public",
"boolean",
"isAssigned",
"(",
"final",
"EObject",
"object",
")",
"{",
"assert",
"object",
"!=",
"null",
";",
"return",
"object",
".",
"eAdapters",
"(",
")",
".",
"contains",
"(",
"ASSIGNMENT_MAR... | Replies if the given object was marked as assigned within the current compilation unit.
@param object the object to test.
@return {@code true} if the object was written within the current compilation unit;
{@code false} if is is not written within the current compilation unit. | [
"Replies",
"if",
"the",
"given",
"object",
"was",
"marked",
"as",
"assigned",
"within",
"the",
"current",
"compilation",
"unit",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLReadAndWriteTracking.java#L88-L92 |
57,015 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codebuilder/SarlMethodBuilder.java | SarlMethodBuilder.appendFiresClause | protected ISourceAppender appendFiresClause(ISourceAppender appendable) {
final List<LightweightTypeReference> types = getFires();
final Iterator<LightweightTypeReference> iterator = types.iterator();
if (iterator.hasNext()) {
appendable.append(" ").append(this.keywords.getFiresKeyword()).append(" "); //$NON-N... | java | protected ISourceAppender appendFiresClause(ISourceAppender appendable) {
final List<LightweightTypeReference> types = getFires();
final Iterator<LightweightTypeReference> iterator = types.iterator();
if (iterator.hasNext()) {
appendable.append(" ").append(this.keywords.getFiresKeyword()).append(" "); //$NON-N... | [
"protected",
"ISourceAppender",
"appendFiresClause",
"(",
"ISourceAppender",
"appendable",
")",
"{",
"final",
"List",
"<",
"LightweightTypeReference",
">",
"types",
"=",
"getFires",
"(",
")",
";",
"final",
"Iterator",
"<",
"LightweightTypeReference",
">",
"iterator",
... | Append the "fires" clause.
@param appendable the receiver.
@return the appendable. | [
"Append",
"the",
"fires",
"clause",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codebuilder/SarlMethodBuilder.java#L133-L147 |
57,016 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLPreferences.java | SARLPreferences.getSARLPreferencesFor | public static IPreferenceStore getSARLPreferencesFor(IProject project) {
if (project != null) {
final Injector injector = LangActivator.getInstance().getInjector(LangActivator.IO_SARL_LANG_SARL);
final IPreferenceStoreAccess preferenceStoreAccess = injector.getInstance(IPreferenceStoreAccess.class);
return p... | java | public static IPreferenceStore getSARLPreferencesFor(IProject project) {
if (project != null) {
final Injector injector = LangActivator.getInstance().getInjector(LangActivator.IO_SARL_LANG_SARL);
final IPreferenceStoreAccess preferenceStoreAccess = injector.getInstance(IPreferenceStoreAccess.class);
return p... | [
"public",
"static",
"IPreferenceStore",
"getSARLPreferencesFor",
"(",
"IProject",
"project",
")",
"{",
"if",
"(",
"project",
"!=",
"null",
")",
"{",
"final",
"Injector",
"injector",
"=",
"LangActivator",
".",
"getInstance",
"(",
")",
".",
"getInjector",
"(",
"... | Replies the preference store for the given project.
@param project the project.
@return the preference store or <code>null</code>. | [
"Replies",
"the",
"preference",
"store",
"for",
"the",
"given",
"project",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLPreferences.java#L69-L76 |
57,017 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLPreferences.java | SARLPreferences.getXtextConfigurationsFor | public static Set<OutputConfiguration> getXtextConfigurationsFor(IProject project) {
final Injector injector = LangActivator.getInstance().getInjector(LangActivator.IO_SARL_LANG_SARL);
final EclipseOutputConfigurationProvider configurationProvider =
injector.getInstance(EclipseOutputConfigurationProvider.class)... | java | public static Set<OutputConfiguration> getXtextConfigurationsFor(IProject project) {
final Injector injector = LangActivator.getInstance().getInjector(LangActivator.IO_SARL_LANG_SARL);
final EclipseOutputConfigurationProvider configurationProvider =
injector.getInstance(EclipseOutputConfigurationProvider.class)... | [
"public",
"static",
"Set",
"<",
"OutputConfiguration",
">",
"getXtextConfigurationsFor",
"(",
"IProject",
"project",
")",
"{",
"final",
"Injector",
"injector",
"=",
"LangActivator",
".",
"getInstance",
"(",
")",
".",
"getInjector",
"(",
"LangActivator",
".",
"IO_S... | Replies the Xtext output configurations related to the given project.
@param project the project.
@return the Xtext output configurations. | [
"Replies",
"the",
"Xtext",
"output",
"configurations",
"related",
"to",
"the",
"given",
"project",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLPreferences.java#L83-L88 |
57,018 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLPreferences.java | SARLPreferences.setSystemSARLConfigurationFor | public static void setSystemSARLConfigurationFor(IProject project) {
final IPreferenceStore preferenceStore = getSARLPreferencesFor(project);
preferenceStore.setValue(IS_PROJECT_SPECIFIC, false);
} | java | public static void setSystemSARLConfigurationFor(IProject project) {
final IPreferenceStore preferenceStore = getSARLPreferencesFor(project);
preferenceStore.setValue(IS_PROJECT_SPECIFIC, false);
} | [
"public",
"static",
"void",
"setSystemSARLConfigurationFor",
"(",
"IProject",
"project",
")",
"{",
"final",
"IPreferenceStore",
"preferenceStore",
"=",
"getSARLPreferencesFor",
"(",
"project",
")",
";",
"preferenceStore",
".",
"setValue",
"(",
"IS_PROJECT_SPECIFIC",
","... | Configure the given project for using the system-wide
configuration related to SARL.
@param project the project. | [
"Configure",
"the",
"given",
"project",
"for",
"using",
"the",
"system",
"-",
"wide",
"configuration",
"related",
"to",
"SARL",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLPreferences.java#L95-L98 |
57,019 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLPreferences.java | SARLPreferences.setSpecificSARLConfigurationFor | public static void setSpecificSARLConfigurationFor(
IProject project,
IPath outputPath) {
final IPreferenceStore preferenceStore = getSARLPreferencesFor(project);
// Force to use a specific configuration for the SARL
preferenceStore.setValue(IS_PROJECT_SPECIFIC, true);
// Loop on the Xtext configurations... | java | public static void setSpecificSARLConfigurationFor(
IProject project,
IPath outputPath) {
final IPreferenceStore preferenceStore = getSARLPreferencesFor(project);
// Force to use a specific configuration for the SARL
preferenceStore.setValue(IS_PROJECT_SPECIFIC, true);
// Loop on the Xtext configurations... | [
"public",
"static",
"void",
"setSpecificSARLConfigurationFor",
"(",
"IProject",
"project",
",",
"IPath",
"outputPath",
")",
"{",
"final",
"IPreferenceStore",
"preferenceStore",
"=",
"getSARLPreferencesFor",
"(",
"project",
")",
";",
"// Force to use a specific configuration... | Configure the given project for using a specific configuration
related to SARL.
@param project the project.
@param outputPath the path where SARL compiler is generating the Java code. | [
"Configure",
"the",
"given",
"project",
"for",
"using",
"a",
"specific",
"configuration",
"related",
"to",
"SARL",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLPreferences.java#L106-L158 |
57,020 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLPreferences.java | SARLPreferences.getGlobalSARLOutputPath | public static IPath getGlobalSARLOutputPath() {
final Injector injector = LangActivator.getInstance().getInjector(LangActivator.IO_SARL_LANG_SARL);
final IOutputConfigurationProvider configurationProvider =
injector.getInstance(IOutputConfigurationProvider.class);
final OutputConfiguration config = Iterables.... | java | public static IPath getGlobalSARLOutputPath() {
final Injector injector = LangActivator.getInstance().getInjector(LangActivator.IO_SARL_LANG_SARL);
final IOutputConfigurationProvider configurationProvider =
injector.getInstance(IOutputConfigurationProvider.class);
final OutputConfiguration config = Iterables.... | [
"public",
"static",
"IPath",
"getGlobalSARLOutputPath",
"(",
")",
"{",
"final",
"Injector",
"injector",
"=",
"LangActivator",
".",
"getInstance",
"(",
")",
".",
"getInjector",
"(",
"LangActivator",
".",
"IO_SARL_LANG_SARL",
")",
";",
"final",
"IOutputConfigurationPr... | Replies the SARL output path in the global preferences.
@return the output path for SARL compiler in the global preferences. | [
"Replies",
"the",
"SARL",
"output",
"path",
"in",
"the",
"global",
"preferences",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/preferences/SARLPreferences.java#L190-L207 |
57,021 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/BlockExpressionBuilderFragment.java | BlockExpressionBuilderFragment.ensureMemberDeclarationKeyword | protected String ensureMemberDeclarationKeyword(CodeElementExtractor.ElementDescription memberDescription) {
final List<String> modifiers = getCodeBuilderConfig().getModifiers().get(memberDescription.getName());
if (modifiers != null && !modifiers.isEmpty()) {
return modifiers.get(0);
}
return null;
} | java | protected String ensureMemberDeclarationKeyword(CodeElementExtractor.ElementDescription memberDescription) {
final List<String> modifiers = getCodeBuilderConfig().getModifiers().get(memberDescription.getName());
if (modifiers != null && !modifiers.isEmpty()) {
return modifiers.get(0);
}
return null;
} | [
"protected",
"String",
"ensureMemberDeclarationKeyword",
"(",
"CodeElementExtractor",
".",
"ElementDescription",
"memberDescription",
")",
"{",
"final",
"List",
"<",
"String",
">",
"modifiers",
"=",
"getCodeBuilderConfig",
"(",
")",
".",
"getModifiers",
"(",
")",
".",... | Replies a keyword for declaring a member.
@param memberDescription the member description.
@return the keyword, never <code>null</code> nor an empty string. | [
"Replies",
"a",
"keyword",
"for",
"declaring",
"a",
"member",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/BlockExpressionBuilderFragment.java#L850-L856 |
57,022 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/BlockExpressionBuilderFragment.java | BlockExpressionBuilderFragment.getBlockExpressionContextDescription | protected BlockExpressionContextDescription getBlockExpressionContextDescription() {
for (final CodeElementExtractor.ElementDescription containerDescription : getCodeElementExtractor().getTopElements(
getGrammar(), getCodeBuilderConfig())) {
if (!getCodeBuilderConfig().getNoActionBodyTypes().contains(container... | java | protected BlockExpressionContextDescription getBlockExpressionContextDescription() {
for (final CodeElementExtractor.ElementDescription containerDescription : getCodeElementExtractor().getTopElements(
getGrammar(), getCodeBuilderConfig())) {
if (!getCodeBuilderConfig().getNoActionBodyTypes().contains(container... | [
"protected",
"BlockExpressionContextDescription",
"getBlockExpressionContextDescription",
"(",
")",
"{",
"for",
"(",
"final",
"CodeElementExtractor",
".",
"ElementDescription",
"containerDescription",
":",
"getCodeElementExtractor",
"(",
")",
".",
"getTopElements",
"(",
"getG... | Replies the description of the block expression context.
@return the description. | [
"Replies",
"the",
"description",
"of",
"the",
"block",
"expression",
"context",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/BlockExpressionBuilderFragment.java#L862-L897 |
57,023 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/internaleventdispatching/AgentInternalEventsDispatcher.java | AgentInternalEventsDispatcher.getRegisteredEventListeners | public <T> int getRegisteredEventListeners(Class<T> type, Collection<? super T> collection) {
synchronized (this.behaviorGuardEvaluatorRegistry) {
return this.behaviorGuardEvaluatorRegistry.getRegisteredEventListeners(type, collection);
}
} | java | public <T> int getRegisteredEventListeners(Class<T> type, Collection<? super T> collection) {
synchronized (this.behaviorGuardEvaluatorRegistry) {
return this.behaviorGuardEvaluatorRegistry.getRegisteredEventListeners(type, collection);
}
} | [
"public",
"<",
"T",
">",
"int",
"getRegisteredEventListeners",
"(",
"Class",
"<",
"T",
">",
"type",
",",
"Collection",
"<",
"?",
"super",
"T",
">",
"collection",
")",
"{",
"synchronized",
"(",
"this",
".",
"behaviorGuardEvaluatorRegistry",
")",
"{",
"return"... | Extract the registered listeners with the given type.
@param <T> the type of the listeners.
@param type the type of the listeners.
@param collection the collection of listeners that is filled by this function.
@return the number of listeners added to the collection.
@since 0.5 | [
"Extract",
"the",
"registered",
"listeners",
"with",
"the",
"given",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/internaleventdispatching/AgentInternalEventsDispatcher.java#L101-L105 |
57,024 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/internaleventdispatching/AgentInternalEventsDispatcher.java | AgentInternalEventsDispatcher.executeBehaviorMethodsInParalellWithSynchroAtTheEnd | private void executeBehaviorMethodsInParalellWithSynchroAtTheEnd(Collection<Runnable> behaviorsMethodsToExecute)
throws InterruptedException, ExecutionException {
final CountDownLatch doneSignal = new CountDownLatch(behaviorsMethodsToExecute.size());
final OutputParameter<Throwable> runException = new OutputPa... | java | private void executeBehaviorMethodsInParalellWithSynchroAtTheEnd(Collection<Runnable> behaviorsMethodsToExecute)
throws InterruptedException, ExecutionException {
final CountDownLatch doneSignal = new CountDownLatch(behaviorsMethodsToExecute.size());
final OutputParameter<Throwable> runException = new OutputPa... | [
"private",
"void",
"executeBehaviorMethodsInParalellWithSynchroAtTheEnd",
"(",
"Collection",
"<",
"Runnable",
">",
"behaviorsMethodsToExecute",
")",
"throws",
"InterruptedException",
",",
"ExecutionException",
"{",
"final",
"CountDownLatch",
"doneSignal",
"=",
"new",
"CountDo... | Execute every single Behaviors runnable, a dedicated thread will created by the executor local to this class and be used to
execute each runnable in parallel, and this method waits until its future has been completed before leaving.
<p>This function may fail if one of the called handlers has failed. Errors are logged ... | [
"Execute",
"every",
"single",
"Behaviors",
"runnable",
"a",
"dedicated",
"thread",
"will",
"created",
"by",
"the",
"executor",
"local",
"to",
"this",
"class",
"and",
"be",
"used",
"to",
"execute",
"each",
"runnable",
"in",
"parallel",
"and",
"this",
"method",
... | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/internaleventdispatching/AgentInternalEventsDispatcher.java#L283-L339 |
57,025 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/internaleventdispatching/AgentInternalEventsDispatcher.java | AgentInternalEventsDispatcher.executeAsynchronouslyBehaviorMethods | private void executeAsynchronouslyBehaviorMethods(Collection<Runnable> behaviorsMethodsToExecute) {
for (final Runnable runnable : behaviorsMethodsToExecute) {
this.executor.execute(runnable);
}
} | java | private void executeAsynchronouslyBehaviorMethods(Collection<Runnable> behaviorsMethodsToExecute) {
for (final Runnable runnable : behaviorsMethodsToExecute) {
this.executor.execute(runnable);
}
} | [
"private",
"void",
"executeAsynchronouslyBehaviorMethods",
"(",
"Collection",
"<",
"Runnable",
">",
"behaviorsMethodsToExecute",
")",
"{",
"for",
"(",
"final",
"Runnable",
"runnable",
":",
"behaviorsMethodsToExecute",
")",
"{",
"this",
".",
"executor",
".",
"execute",... | Execute every single Behaviors runnable, a dedicated thread will created by the executor local to this class and be used to
execute each runnable in parallel.
<p>This function never fails. Errors in the event handlers are logged by the executor service.
@param behaviorsMethodsToExecute the collection of Behaviors run... | [
"Execute",
"every",
"single",
"Behaviors",
"runnable",
"a",
"dedicated",
"thread",
"will",
"created",
"by",
"the",
"executor",
"local",
"to",
"this",
"class",
"and",
"be",
"used",
"to",
"execute",
"each",
"runnable",
"in",
"parallel",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/internaleventdispatching/AgentInternalEventsDispatcher.java#L349-L353 |
57,026 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLRuntimeEnvironmentTab.java | SARLRuntimeEnvironmentTab.selectSREFromConfig | protected void selectSREFromConfig(ILaunchConfiguration config) {
final boolean notify = this.sreBlock.getNotify();
final boolean changed;
try {
this.sreBlock.setNotify(false);
if (this.accessor.getUseSystemSREFlag(config)) {
changed = this.sreBlock.selectSystemWideSRE();
} else if (this.accessor.get... | java | protected void selectSREFromConfig(ILaunchConfiguration config) {
final boolean notify = this.sreBlock.getNotify();
final boolean changed;
try {
this.sreBlock.setNotify(false);
if (this.accessor.getUseSystemSREFlag(config)) {
changed = this.sreBlock.selectSystemWideSRE();
} else if (this.accessor.get... | [
"protected",
"void",
"selectSREFromConfig",
"(",
"ILaunchConfiguration",
"config",
")",
"{",
"final",
"boolean",
"notify",
"=",
"this",
".",
"sreBlock",
".",
"getNotify",
"(",
")",
";",
"final",
"boolean",
"changed",
";",
"try",
"{",
"this",
".",
"sreBlock",
... | Loads the SARL runtime environment from the launch configuration's preference store.
@param config the config to load the runtime environment from | [
"Loads",
"the",
"SARL",
"runtime",
"environment",
"from",
"the",
"launch",
"configuration",
"s",
"preference",
"store",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLRuntimeEnvironmentTab.java#L172-L192 |
57,027 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLRuntimeEnvironmentTab.java | SARLRuntimeEnvironmentTab.isValidJREVersion | protected boolean isValidJREVersion(ILaunchConfiguration config) {
final IVMInstall install = this.fJREBlock.getJRE();
if (install instanceof IVMInstall2) {
final String version = ((IVMInstall2) install).getJavaVersion();
if (version == null) {
setErrorMessage(MessageFormat.format(
Messages.RuntimeE... | java | protected boolean isValidJREVersion(ILaunchConfiguration config) {
final IVMInstall install = this.fJREBlock.getJRE();
if (install instanceof IVMInstall2) {
final String version = ((IVMInstall2) install).getJavaVersion();
if (version == null) {
setErrorMessage(MessageFormat.format(
Messages.RuntimeE... | [
"protected",
"boolean",
"isValidJREVersion",
"(",
"ILaunchConfiguration",
"config",
")",
"{",
"final",
"IVMInstall",
"install",
"=",
"this",
".",
"fJREBlock",
".",
"getJRE",
"(",
")",
";",
"if",
"(",
"install",
"instanceof",
"IVMInstall2",
")",
"{",
"final",
"... | Replies if the selected configuration has a valid version for
a SARL application.
@param config the configuration.
@return <code>true</code> if the JRE is compatible with SARL. | [
"Replies",
"if",
"the",
"selected",
"configuration",
"has",
"a",
"valid",
"version",
"for",
"a",
"SARL",
"application",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLRuntimeEnvironmentTab.java#L250-L270 |
57,028 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java | SARLDescriptionLabelProvider.image | public ImageDescriptor image(SarlAgent agent) {
final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(agent);
return this.images.forAgent(
agent.getVisibility(),
this.adornments.get(jvmElement));
} | java | public ImageDescriptor image(SarlAgent agent) {
final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(agent);
return this.images.forAgent(
agent.getVisibility(),
this.adornments.get(jvmElement));
} | [
"public",
"ImageDescriptor",
"image",
"(",
"SarlAgent",
"agent",
")",
"{",
"final",
"JvmDeclaredType",
"jvmElement",
"=",
"this",
".",
"jvmModelAssociations",
".",
"getInferredType",
"(",
"agent",
")",
";",
"return",
"this",
".",
"images",
".",
"forAgent",
"(",
... | Replies the image for an agent.
@param agent describes the agent.
@return the image descriptor. | [
"Replies",
"the",
"image",
"for",
"an",
"agent",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java#L93-L98 |
57,029 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java | SARLDescriptionLabelProvider.image | public ImageDescriptor image(SarlBehavior behavior) {
final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(behavior);
return this.images.forBehavior(
behavior.getVisibility(),
this.adornments.get(jvmElement));
} | java | public ImageDescriptor image(SarlBehavior behavior) {
final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(behavior);
return this.images.forBehavior(
behavior.getVisibility(),
this.adornments.get(jvmElement));
} | [
"public",
"ImageDescriptor",
"image",
"(",
"SarlBehavior",
"behavior",
")",
"{",
"final",
"JvmDeclaredType",
"jvmElement",
"=",
"this",
".",
"jvmModelAssociations",
".",
"getInferredType",
"(",
"behavior",
")",
";",
"return",
"this",
".",
"images",
".",
"forBehavi... | Replies the image for a behavior.
@param behavior describes the behavior.
@return the image descriptor. | [
"Replies",
"the",
"image",
"for",
"a",
"behavior",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java#L105-L110 |
57,030 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java | SARLDescriptionLabelProvider.image | public ImageDescriptor image(SarlCapacity capacity) {
final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(capacity);
return this.images.forCapacity(
capacity.getVisibility(),
this.adornments.get(jvmElement));
} | java | public ImageDescriptor image(SarlCapacity capacity) {
final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(capacity);
return this.images.forCapacity(
capacity.getVisibility(),
this.adornments.get(jvmElement));
} | [
"public",
"ImageDescriptor",
"image",
"(",
"SarlCapacity",
"capacity",
")",
"{",
"final",
"JvmDeclaredType",
"jvmElement",
"=",
"this",
".",
"jvmModelAssociations",
".",
"getInferredType",
"(",
"capacity",
")",
";",
"return",
"this",
".",
"images",
".",
"forCapaci... | Replies the image for a capacity.
@param capacity describes the capacity.
@return the image descriptor. | [
"Replies",
"the",
"image",
"for",
"a",
"capacity",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java#L117-L122 |
57,031 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java | SARLDescriptionLabelProvider.image | public ImageDescriptor image(SarlSkill skill) {
final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(skill);
return this.images.forSkill(
skill.getVisibility(),
this.adornments.get(jvmElement));
} | java | public ImageDescriptor image(SarlSkill skill) {
final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(skill);
return this.images.forSkill(
skill.getVisibility(),
this.adornments.get(jvmElement));
} | [
"public",
"ImageDescriptor",
"image",
"(",
"SarlSkill",
"skill",
")",
"{",
"final",
"JvmDeclaredType",
"jvmElement",
"=",
"this",
".",
"jvmModelAssociations",
".",
"getInferredType",
"(",
"skill",
")",
";",
"return",
"this",
".",
"images",
".",
"forSkill",
"(",
... | Replies the image for a skill.
@param skill describes the skill.
@return the image descriptor. | [
"Replies",
"the",
"image",
"for",
"a",
"skill",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java#L129-L134 |
57,032 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java | SARLDescriptionLabelProvider.image | public ImageDescriptor image(SarlEvent event) {
final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(event);
return this.images.forEvent(
event.getVisibility(),
this.adornments.get(jvmElement));
} | java | public ImageDescriptor image(SarlEvent event) {
final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(event);
return this.images.forEvent(
event.getVisibility(),
this.adornments.get(jvmElement));
} | [
"public",
"ImageDescriptor",
"image",
"(",
"SarlEvent",
"event",
")",
"{",
"final",
"JvmDeclaredType",
"jvmElement",
"=",
"this",
".",
"jvmModelAssociations",
".",
"getInferredType",
"(",
"event",
")",
";",
"return",
"this",
".",
"images",
".",
"forEvent",
"(",
... | Replies the image for an event.
@param event describes the event.
@return the image descriptor. | [
"Replies",
"the",
"image",
"for",
"an",
"event",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java#L141-L146 |
57,033 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java | SARLDescriptionLabelProvider.image | public ImageDescriptor image(SarlAction action) {
final JvmOperation jvmElement = this.jvmModelAssociations.getDirectlyInferredOperation(action);
return this.images.forOperation(
action.getVisibility(),
this.adornments.get(jvmElement));
} | java | public ImageDescriptor image(SarlAction action) {
final JvmOperation jvmElement = this.jvmModelAssociations.getDirectlyInferredOperation(action);
return this.images.forOperation(
action.getVisibility(),
this.adornments.get(jvmElement));
} | [
"public",
"ImageDescriptor",
"image",
"(",
"SarlAction",
"action",
")",
"{",
"final",
"JvmOperation",
"jvmElement",
"=",
"this",
".",
"jvmModelAssociations",
".",
"getDirectlyInferredOperation",
"(",
"action",
")",
";",
"return",
"this",
".",
"images",
".",
"forOp... | Replies the image for an action.
@param action describes the action.
@return the image descriptor. | [
"Replies",
"the",
"image",
"for",
"an",
"action",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java#L153-L158 |
57,034 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java | SARLDescriptionLabelProvider.image | public ImageDescriptor image(SarlField attribute) {
return this.images.forField(
attribute.getVisibility(),
this.adornments.get(this.jvmModelAssociations.getJvmField(attribute)));
} | java | public ImageDescriptor image(SarlField attribute) {
return this.images.forField(
attribute.getVisibility(),
this.adornments.get(this.jvmModelAssociations.getJvmField(attribute)));
} | [
"public",
"ImageDescriptor",
"image",
"(",
"SarlField",
"attribute",
")",
"{",
"return",
"this",
".",
"images",
".",
"forField",
"(",
"attribute",
".",
"getVisibility",
"(",
")",
",",
"this",
".",
"adornments",
".",
"get",
"(",
"this",
".",
"jvmModelAssociat... | Replies the image for an attribute.
@param attribute describes the attribute.
@return the image descriptor. | [
"Replies",
"the",
"image",
"for",
"an",
"attribute",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java#L192-L196 |
57,035 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java | SARLDescriptionLabelProvider.image | public ImageDescriptor image(SarlConstructor constructor) {
if (constructor.isStatic()) {
return this.images.forStaticConstructor();
}
return this.images.forConstructor(
constructor.getVisibility(),
this.adornments.get(this.jvmModelAssociations.getInferredConstructor(constructor)));
} | java | public ImageDescriptor image(SarlConstructor constructor) {
if (constructor.isStatic()) {
return this.images.forStaticConstructor();
}
return this.images.forConstructor(
constructor.getVisibility(),
this.adornments.get(this.jvmModelAssociations.getInferredConstructor(constructor)));
} | [
"public",
"ImageDescriptor",
"image",
"(",
"SarlConstructor",
"constructor",
")",
"{",
"if",
"(",
"constructor",
".",
"isStatic",
"(",
")",
")",
"{",
"return",
"this",
".",
"images",
".",
"forStaticConstructor",
"(",
")",
";",
"}",
"return",
"this",
".",
"... | Replies the image for a constructor.
@param constructor describes the constructor.
@return the image descriptor. | [
"Replies",
"the",
"image",
"for",
"a",
"constructor",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLDescriptionLabelProvider.java#L203-L210 |
57,036 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.newDefaultJavaBatchCompiler | public static IJavaBatchCompiler newDefaultJavaBatchCompiler() {
try {
synchronized (SarlBatchCompiler.class) {
if (defaultJavaBatchCompiler == null) {
final ImplementedBy annotation = IJavaBatchCompiler.class.getAnnotation(ImplementedBy.class);
assert annotation != null;
final Class<?> type = a... | java | public static IJavaBatchCompiler newDefaultJavaBatchCompiler() {
try {
synchronized (SarlBatchCompiler.class) {
if (defaultJavaBatchCompiler == null) {
final ImplementedBy annotation = IJavaBatchCompiler.class.getAnnotation(ImplementedBy.class);
assert annotation != null;
final Class<?> type = a... | [
"public",
"static",
"IJavaBatchCompiler",
"newDefaultJavaBatchCompiler",
"(",
")",
"{",
"try",
"{",
"synchronized",
"(",
"SarlBatchCompiler",
".",
"class",
")",
"{",
"if",
"(",
"defaultJavaBatchCompiler",
"==",
"null",
")",
"{",
"final",
"ImplementedBy",
"annotation... | Create a default Java batch compiler, without injection.
@return the Java batch compiler.
@since 0.8 | [
"Create",
"a",
"default",
"Java",
"batch",
"compiler",
"without",
"injection",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L282-L297 |
57,037 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.notifiesIssueMessageListeners | private void notifiesIssueMessageListeners(Issue issue, org.eclipse.emf.common.util.URI uri, String message) {
for (final IssueMessageListener listener : this.messageListeners) {
listener.onIssue(issue, uri, message);
}
} | java | private void notifiesIssueMessageListeners(Issue issue, org.eclipse.emf.common.util.URI uri, String message) {
for (final IssueMessageListener listener : this.messageListeners) {
listener.onIssue(issue, uri, message);
}
} | [
"private",
"void",
"notifiesIssueMessageListeners",
"(",
"Issue",
"issue",
",",
"org",
".",
"eclipse",
".",
"emf",
".",
"common",
".",
"util",
".",
"URI",
"uri",
",",
"String",
"message",
")",
"{",
"for",
"(",
"final",
"IssueMessageListener",
"listener",
":"... | Replies the message for the given issue.
@param issue the issue.
@param uri URI to the problem.
@param message the formatted message.
@since 0.6 | [
"Replies",
"the",
"message",
"for",
"the",
"given",
"issue",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L449-L453 |
57,038 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.setLogger | public void setLogger(Logger logger) {
this.logger = logger == null ? LoggerFactory.getLogger(getClass()) : logger;
} | java | public void setLogger(Logger logger) {
this.logger = logger == null ? LoggerFactory.getLogger(getClass()) : logger;
} | [
"public",
"void",
"setLogger",
"(",
"Logger",
"logger",
")",
"{",
"this",
".",
"logger",
"=",
"logger",
"==",
"null",
"?",
"LoggerFactory",
".",
"getLogger",
"(",
"getClass",
"(",
")",
")",
":",
"logger",
";",
"}"
] | Set the logger.
@param logger the logger. | [
"Set",
"the",
"logger",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L496-L498 |
57,039 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.setBaseURI | public void setBaseURI(org.eclipse.emf.common.util.URI basePath) {
this.baseUri = basePath;
} | java | public void setBaseURI(org.eclipse.emf.common.util.URI basePath) {
this.baseUri = basePath;
} | [
"public",
"void",
"setBaseURI",
"(",
"org",
".",
"eclipse",
".",
"emf",
".",
"common",
".",
"util",
".",
"URI",
"basePath",
")",
"{",
"this",
".",
"baseUri",
"=",
"basePath",
";",
"}"
] | Change the base URI.
@param basePath the base path. | [
"Change",
"the",
"base",
"URI",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L638-L640 |
57,040 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.getBootClassPath | @Pure
public List<File> getBootClassPath() {
if (this.bootClasspath == null) {
return Collections.emptyList();
}
return Collections.unmodifiableList(this.bootClasspath);
} | java | @Pure
public List<File> getBootClassPath() {
if (this.bootClasspath == null) {
return Collections.emptyList();
}
return Collections.unmodifiableList(this.bootClasspath);
} | [
"@",
"Pure",
"public",
"List",
"<",
"File",
">",
"getBootClassPath",
"(",
")",
"{",
"if",
"(",
"this",
".",
"bootClasspath",
"==",
"null",
")",
"{",
"return",
"Collections",
".",
"emptyList",
"(",
")",
";",
"}",
"return",
"Collections",
".",
"unmodifiabl... | Replies the boot classpath.
This option is only supported on JDK 8 and older and will be ignored when source level is 9 or newer.
@return the boot classpath.
@see "https://www.oracle.com/technetwork/java/javase/9-relnote-issues-3704069.html" | [
"Replies",
"the",
"boot",
"classpath",
".",
"This",
"option",
"is",
"only",
"supported",
"on",
"JDK",
"8",
"and",
"older",
"and",
"will",
"be",
"ignored",
"when",
"source",
"level",
"is",
"9",
"or",
"newer",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L733-L739 |
57,041 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.setClassPath | public void setClassPath(String classpath) {
this.classpath = new ArrayList<>();
for (final String path : Strings.split(classpath, Pattern.quote(File.pathSeparator))) {
this.classpath.add(normalizeFile(path));
}
} | java | public void setClassPath(String classpath) {
this.classpath = new ArrayList<>();
for (final String path : Strings.split(classpath, Pattern.quote(File.pathSeparator))) {
this.classpath.add(normalizeFile(path));
}
} | [
"public",
"void",
"setClassPath",
"(",
"String",
"classpath",
")",
"{",
"this",
".",
"classpath",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"for",
"(",
"final",
"String",
"path",
":",
"Strings",
".",
"split",
"(",
"classpath",
",",
"Pattern",
".",
... | Change the classpath.
<p>The classpath is a list the names of folders or jar files that are separated by {@link File#pathSeparator}.
@param classpath the new classpath. | [
"Change",
"the",
"classpath",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L747-L752 |
57,042 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.getClassPath | @Pure
public List<File> getClassPath() {
if (this.classpath == null) {
return Collections.emptyList();
}
return Collections.unmodifiableList(this.classpath);
} | java | @Pure
public List<File> getClassPath() {
if (this.classpath == null) {
return Collections.emptyList();
}
return Collections.unmodifiableList(this.classpath);
} | [
"@",
"Pure",
"public",
"List",
"<",
"File",
">",
"getClassPath",
"(",
")",
"{",
"if",
"(",
"this",
".",
"classpath",
"==",
"null",
")",
"{",
"return",
"Collections",
".",
"emptyList",
"(",
")",
";",
"}",
"return",
"Collections",
".",
"unmodifiableList",
... | Replies the classpath.
@return the classpath. | [
"Replies",
"the",
"classpath",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L766-L772 |
57,043 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.createTempDirectory | @SuppressWarnings("static-method")
protected File createTempDirectory() {
final File tmpPath = new File(System.getProperty("java.io.tmpdir")); //$NON-NLS-1$
int i = 0;
File tmp = new File(tmpPath, "sarlc" + i); //$NON-NLS-1$
while (tmp.exists()) {
++i;
tmp = new File(tmpPath, "sarlc" + i); //$NON-NLS-1$
... | java | @SuppressWarnings("static-method")
protected File createTempDirectory() {
final File tmpPath = new File(System.getProperty("java.io.tmpdir")); //$NON-NLS-1$
int i = 0;
File tmp = new File(tmpPath, "sarlc" + i); //$NON-NLS-1$
while (tmp.exists()) {
++i;
tmp = new File(tmpPath, "sarlc" + i); //$NON-NLS-1$
... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"File",
"createTempDirectory",
"(",
")",
"{",
"final",
"File",
"tmpPath",
"=",
"new",
"File",
"(",
"System",
".",
"getProperty",
"(",
"\"java.io.tmpdir\"",
")",
")",
";",
"//$NON-NLS-1$",
"int"... | Create the temp directory that should be used by the compiler.
@return the temp directory, never {@code null}. | [
"Create",
"the",
"temp",
"directory",
"that",
"should",
"be",
"used",
"by",
"the",
"compiler",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L806-L816 |
57,044 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.setJavaSourceVersion | public void setJavaSourceVersion(String version) {
final JavaVersion javaVersion = JavaVersion.fromQualifier(version);
if (javaVersion == null) {
final List<String> qualifiers = new ArrayList<>();
for (final JavaVersion vers : JavaVersion.values()) {
qualifiers.addAll(vers.getAllQualifiers());
}
th... | java | public void setJavaSourceVersion(String version) {
final JavaVersion javaVersion = JavaVersion.fromQualifier(version);
if (javaVersion == null) {
final List<String> qualifiers = new ArrayList<>();
for (final JavaVersion vers : JavaVersion.values()) {
qualifiers.addAll(vers.getAllQualifiers());
}
th... | [
"public",
"void",
"setJavaSourceVersion",
"(",
"String",
"version",
")",
"{",
"final",
"JavaVersion",
"javaVersion",
"=",
"JavaVersion",
".",
"fromQualifier",
"(",
"version",
")",
";",
"if",
"(",
"javaVersion",
"==",
"null",
")",
"{",
"final",
"List",
"<",
"... | Change the version of the Java source to be used for the generated Java files.
@param version the Java version. | [
"Change",
"the",
"version",
"of",
"the",
"Java",
"source",
"to",
"be",
"used",
"for",
"the",
"generated",
"Java",
"files",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L878-L890 |
57,045 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.setSourcePath | public void setSourcePath(String sourcePath) {
this.sourcePath = new ArrayList<>();
for (final String path : Strings.split(sourcePath, Pattern.quote(File.pathSeparator))) {
this.sourcePath.add(normalizeFile(path));
}
} | java | public void setSourcePath(String sourcePath) {
this.sourcePath = new ArrayList<>();
for (final String path : Strings.split(sourcePath, Pattern.quote(File.pathSeparator))) {
this.sourcePath.add(normalizeFile(path));
}
} | [
"public",
"void",
"setSourcePath",
"(",
"String",
"sourcePath",
")",
"{",
"this",
".",
"sourcePath",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"for",
"(",
"final",
"String",
"path",
":",
"Strings",
".",
"split",
"(",
"sourcePath",
",",
"Pattern",
"."... | Change the source path.
<p>The source path is a list the names of folders that are separated by {@link File#pathSeparator}.
@param sourcePath the new source path. | [
"Change",
"the",
"source",
"path",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1119-L1124 |
57,046 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.addSourcePath | public void addSourcePath(File sourcePath) {
if (this.sourcePath == null) {
this.sourcePath = new ArrayList<>();
}
this.sourcePath.add(sourcePath);
} | java | public void addSourcePath(File sourcePath) {
if (this.sourcePath == null) {
this.sourcePath = new ArrayList<>();
}
this.sourcePath.add(sourcePath);
} | [
"public",
"void",
"addSourcePath",
"(",
"File",
"sourcePath",
")",
"{",
"if",
"(",
"this",
".",
"sourcePath",
"==",
"null",
")",
"{",
"this",
".",
"sourcePath",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"}",
"this",
".",
"sourcePath",
".",
"add",
... | Add a folder to the source path.
@param sourcePath the new source path. | [
"Add",
"a",
"folder",
"to",
"the",
"source",
"path",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1148-L1153 |
57,047 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.getSourcePaths | @Pure
public List<File> getSourcePaths() {
if (this.sourcePath == null) {
return Collections.emptyList();
}
return Collections.unmodifiableList(this.sourcePath);
} | java | @Pure
public List<File> getSourcePaths() {
if (this.sourcePath == null) {
return Collections.emptyList();
}
return Collections.unmodifiableList(this.sourcePath);
} | [
"@",
"Pure",
"public",
"List",
"<",
"File",
">",
"getSourcePaths",
"(",
")",
"{",
"if",
"(",
"this",
".",
"sourcePath",
"==",
"null",
")",
"{",
"return",
"Collections",
".",
"emptyList",
"(",
")",
";",
"}",
"return",
"Collections",
".",
"unmodifiableList... | Replies the source path.
@return the source path. | [
"Replies",
"the",
"source",
"path",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1159-L1165 |
57,048 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.overrideXtextInternalLoggers | protected void overrideXtextInternalLoggers() {
final Logger logger = getLogger();
final org.apache.log4j.spi.LoggerFactory factory = new InternalXtextLoggerFactory(logger);
final org.apache.log4j.Logger internalLogger = org.apache.log4j.Logger.getLogger(
MessageFormat.format(Messages.SarlBatchCompiler_40, lo... | java | protected void overrideXtextInternalLoggers() {
final Logger logger = getLogger();
final org.apache.log4j.spi.LoggerFactory factory = new InternalXtextLoggerFactory(logger);
final org.apache.log4j.Logger internalLogger = org.apache.log4j.Logger.getLogger(
MessageFormat.format(Messages.SarlBatchCompiler_40, lo... | [
"protected",
"void",
"overrideXtextInternalLoggers",
"(",
")",
"{",
"final",
"Logger",
"logger",
"=",
"getLogger",
"(",
")",
";",
"final",
"org",
".",
"apache",
".",
"log4j",
".",
"spi",
".",
"LoggerFactory",
"factory",
"=",
"new",
"InternalXtextLoggerFactory",
... | Change the loggers that are internally used by Xtext. | [
"Change",
"the",
"loggers",
"that",
"are",
"internally",
"used",
"by",
"Xtext",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1371-L1379 |
57,049 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.createIssueMessage | protected String createIssueMessage(Issue issue) {
final IssueMessageFormatter formatter = getIssueMessageFormatter();
final org.eclipse.emf.common.util.URI uriToProblem = issue.getUriToProblem();
if (formatter != null) {
final String message = formatter.format(issue, uriToProblem);
if (message != null) {
... | java | protected String createIssueMessage(Issue issue) {
final IssueMessageFormatter formatter = getIssueMessageFormatter();
final org.eclipse.emf.common.util.URI uriToProblem = issue.getUriToProblem();
if (formatter != null) {
final String message = formatter.format(issue, uriToProblem);
if (message != null) {
... | [
"protected",
"String",
"createIssueMessage",
"(",
"Issue",
"issue",
")",
"{",
"final",
"IssueMessageFormatter",
"formatter",
"=",
"getIssueMessageFormatter",
"(",
")",
";",
"final",
"org",
".",
"eclipse",
".",
"emf",
".",
"common",
".",
"util",
".",
"URI",
"ur... | Create a message for the issue.
@param issue the issue.
@return the message. | [
"Create",
"a",
"message",
"for",
"the",
"issue",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1401-L1419 |
57,050 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.reportCompilationIssues | protected boolean reportCompilationIssues(Iterable<Issue> issues) {
boolean hasError = false;
for (final Issue issue : issues) {
final String issueMessage = createIssueMessage(issue);
switch (issue.getSeverity()) {
case ERROR:
hasError = true;
getLogger().error(issueMessage);
break;
case WAR... | java | protected boolean reportCompilationIssues(Iterable<Issue> issues) {
boolean hasError = false;
for (final Issue issue : issues) {
final String issueMessage = createIssueMessage(issue);
switch (issue.getSeverity()) {
case ERROR:
hasError = true;
getLogger().error(issueMessage);
break;
case WAR... | [
"protected",
"boolean",
"reportCompilationIssues",
"(",
"Iterable",
"<",
"Issue",
">",
"issues",
")",
"{",
"boolean",
"hasError",
"=",
"false",
";",
"for",
"(",
"final",
"Issue",
"issue",
":",
"issues",
")",
"{",
"final",
"String",
"issueMessage",
"=",
"crea... | Output the given issues that result from the compilation of the SARL code.
@param issues the issues to report.
@return {@code true} if at least one error was reported, {@code false} if
no error was reported. | [
"Output",
"the",
"given",
"issues",
"that",
"result",
"from",
"the",
"compilation",
"of",
"the",
"SARL",
"code",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1427-L1449 |
57,051 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.reportInternalError | protected void reportInternalError(String message, Object... parameters) {
getLogger().error(message, parameters);
if (getReportInternalProblemsAsIssues()) {
final org.eclipse.emf.common.util.URI uri = null;
final Issue.IssueImpl issue = new Issue.IssueImpl();
issue.setCode(INTERNAL_ERROR_CODE);
issue.... | java | protected void reportInternalError(String message, Object... parameters) {
getLogger().error(message, parameters);
if (getReportInternalProblemsAsIssues()) {
final org.eclipse.emf.common.util.URI uri = null;
final Issue.IssueImpl issue = new Issue.IssueImpl();
issue.setCode(INTERNAL_ERROR_CODE);
issue.... | [
"protected",
"void",
"reportInternalError",
"(",
"String",
"message",
",",
"Object",
"...",
"parameters",
")",
"{",
"getLogger",
"(",
")",
".",
"error",
"(",
"message",
",",
"parameters",
")",
";",
"if",
"(",
"getReportInternalProblemsAsIssues",
"(",
")",
")",... | Reports the given error message.
@param message the warning message.
@param parameters the values of the parameters that must be dynamically replaced within the message text.
@since 0.8 | [
"Reports",
"the",
"given",
"error",
"message",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1513-L1524 |
57,052 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.generateJavaFiles | protected void generateJavaFiles(Iterable<Resource> validatedResources, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_49);
getLogger().info(Messages.SarlBatchCompiler_28, getOutputPath());
final JavaIoFileSystemAccess javaIoFileSystemAccess = this.javaIoFileSy... | java | protected void generateJavaFiles(Iterable<Resource> validatedResources, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_49);
getLogger().info(Messages.SarlBatchCompiler_28, getOutputPath());
final JavaIoFileSystemAccess javaIoFileSystemAccess = this.javaIoFileSy... | [
"protected",
"void",
"generateJavaFiles",
"(",
"Iterable",
"<",
"Resource",
">",
"validatedResources",
",",
"IProgressMonitor",
"progress",
")",
"{",
"assert",
"progress",
"!=",
"null",
";",
"progress",
".",
"subTask",
"(",
"Messages",
".",
"SarlBatchCompiler_49",
... | Generate the Java files from the SARL scripts.
@param validatedResources the validatedResources for which the Java files could be generated.
@param progress monitor of the progress of the compilation. | [
"Generate",
"the",
"Java",
"files",
"from",
"the",
"SARL",
"scripts",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1531-L1563 |
57,053 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.generateJvmElements | protected void generateJvmElements(ResourceSet resourceSet, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_21);
getLogger().info(Messages.SarlBatchCompiler_21);
final List<Resource> originalResources = resourceSet.getResources();
final List<Resource> toBeRes... | java | protected void generateJvmElements(ResourceSet resourceSet, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_21);
getLogger().info(Messages.SarlBatchCompiler_21);
final List<Resource> originalResources = resourceSet.getResources();
final List<Resource> toBeRes... | [
"protected",
"void",
"generateJvmElements",
"(",
"ResourceSet",
"resourceSet",
",",
"IProgressMonitor",
"progress",
")",
"{",
"assert",
"progress",
"!=",
"null",
";",
"progress",
".",
"subTask",
"(",
"Messages",
".",
"SarlBatchCompiler_21",
")",
";",
"getLogger",
... | Generate the JVM model elements.
@param progress monitor of the progress of the compilation.
@param resourceSet the container of the scripts. | [
"Generate",
"the",
"JVM",
"model",
"elements",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1570-L1595 |
57,054 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.validate | @SuppressWarnings({"checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity", "checkstyle:nestedifdepth"})
protected List<Issue> validate(ResourceSet resourceSet, Collection<Resource> validResources, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_38);
getL... | java | @SuppressWarnings({"checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity", "checkstyle:nestedifdepth"})
protected List<Issue> validate(ResourceSet resourceSet, Collection<Resource> validResources, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_38);
getL... | [
"@",
"SuppressWarnings",
"(",
"{",
"\"checkstyle:cyclomaticcomplexity\"",
",",
"\"checkstyle:npathcomplexity\"",
",",
"\"checkstyle:nestedifdepth\"",
"}",
")",
"protected",
"List",
"<",
"Issue",
">",
"validate",
"(",
"ResourceSet",
"resourceSet",
",",
"Collection",
"<",
... | Generate the JVM model elements, and validate generated elements.
@param resourceSet the container of the scripts.
@param validResources will be filled by this function with the collection of resources that was successfully validated.
@param progress monitor of the progress of the compilation.
@return the list of the ... | [
"Generate",
"the",
"JVM",
"model",
"elements",
"and",
"validate",
"generated",
"elements",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1604-L1656 |
57,055 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.isSourceFile | @SuppressWarnings("static-method")
protected boolean isSourceFile(Resource resource) {
if (resource instanceof BatchLinkableResource) {
return !((BatchLinkableResource) resource).isLoadedFromStorage();
}
return false;
} | java | @SuppressWarnings("static-method")
protected boolean isSourceFile(Resource resource) {
if (resource instanceof BatchLinkableResource) {
return !((BatchLinkableResource) resource).isLoadedFromStorage();
}
return false;
} | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"boolean",
"isSourceFile",
"(",
"Resource",
"resource",
")",
"{",
"if",
"(",
"resource",
"instanceof",
"BatchLinkableResource",
")",
"{",
"return",
"!",
"(",
"(",
"BatchLinkableResource",
")",
"r... | Replies if the given resource is a script.
@param resource the resource to test.
@return <code>true</code> if the given resource is a script. | [
"Replies",
"if",
"the",
"given",
"resource",
"is",
"a",
"script",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1663-L1669 |
57,056 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.preCompileStubs | protected boolean preCompileStubs(File sourceDirectory, File classDirectory, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_50);
return runJavaCompiler(classDirectory, Collections.singletonList(sourceDirectory), getClassPath(),
false, false, progress);
} | java | protected boolean preCompileStubs(File sourceDirectory, File classDirectory, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_50);
return runJavaCompiler(classDirectory, Collections.singletonList(sourceDirectory), getClassPath(),
false, false, progress);
} | [
"protected",
"boolean",
"preCompileStubs",
"(",
"File",
"sourceDirectory",
",",
"File",
"classDirectory",
",",
"IProgressMonitor",
"progress",
")",
"{",
"assert",
"progress",
"!=",
"null",
";",
"progress",
".",
"subTask",
"(",
"Messages",
".",
"SarlBatchCompiler_50"... | Compile the stub files before the compilation of the project's files.
@param sourceDirectory the source directory where stubs are stored.
@param classDirectory the output directory, where stub binary files should be generated.
@param progress monitor of the progress of the compilation.
@return the success status. Repl... | [
"Compile",
"the",
"stub",
"files",
"before",
"the",
"compilation",
"of",
"the",
"project",
"s",
"files",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1678-L1683 |
57,057 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.preCompileJava | protected boolean preCompileJava(File sourceDirectory, File classDirectory, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_51);
return runJavaCompiler(classDirectory, getSourcePaths(),
Iterables.concat(Collections.singleton(sourceDirectory), getClassPath()),
... | java | protected boolean preCompileJava(File sourceDirectory, File classDirectory, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_51);
return runJavaCompiler(classDirectory, getSourcePaths(),
Iterables.concat(Collections.singleton(sourceDirectory), getClassPath()),
... | [
"protected",
"boolean",
"preCompileJava",
"(",
"File",
"sourceDirectory",
",",
"File",
"classDirectory",
",",
"IProgressMonitor",
"progress",
")",
"{",
"assert",
"progress",
"!=",
"null",
";",
"progress",
".",
"subTask",
"(",
"Messages",
".",
"SarlBatchCompiler_51",... | Compile the java files before the compilation of the project's files.
@param sourceDirectory the source directory where java files are stored.
@param classDirectory the output directory, where binary files should be generated.
@param progress monitor of the progress of the compilation.
@return the success status. Repl... | [
"Compile",
"the",
"java",
"files",
"before",
"the",
"compilation",
"of",
"the",
"project",
"s",
"files",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1692-L1698 |
57,058 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.postCompileJava | protected boolean postCompileJava(IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_52);
final File classOutputPath = getClassOutputPath();
if (classOutputPath == null) {
getLogger().info(Messages.SarlBatchCompiler_24);
return true;
}
getLogger().info(Me... | java | protected boolean postCompileJava(IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_52);
final File classOutputPath = getClassOutputPath();
if (classOutputPath == null) {
getLogger().info(Messages.SarlBatchCompiler_24);
return true;
}
getLogger().info(Me... | [
"protected",
"boolean",
"postCompileJava",
"(",
"IProgressMonitor",
"progress",
")",
"{",
"assert",
"progress",
"!=",
"null",
";",
"progress",
".",
"subTask",
"(",
"Messages",
".",
"SarlBatchCompiler_52",
")",
";",
"final",
"File",
"classOutputPath",
"=",
"getClas... | Compile the java files after the compilation of the project's files.
@param progress monitor of the progress of the compilation.
@return the success status. Replies <code>false</code> if the activity is canceled. | [
"Compile",
"the",
"java",
"files",
"after",
"the",
"compilation",
"of",
"the",
"project",
"s",
"files",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1705-L1723 |
57,059 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.runJavaCompiler | @SuppressWarnings({ "resource" })
protected boolean runJavaCompiler(File classDirectory, Iterable<File> sourcePathDirectories,
Iterable<File> classPathEntries, boolean enableCompilerOutput,
boolean enableOptimization, IProgressMonitor progress) {
String encoding = this.encodingProvider.getDefaultEncoding();
... | java | @SuppressWarnings({ "resource" })
protected boolean runJavaCompiler(File classDirectory, Iterable<File> sourcePathDirectories,
Iterable<File> classPathEntries, boolean enableCompilerOutput,
boolean enableOptimization, IProgressMonitor progress) {
String encoding = this.encodingProvider.getDefaultEncoding();
... | [
"@",
"SuppressWarnings",
"(",
"{",
"\"resource\"",
"}",
")",
"protected",
"boolean",
"runJavaCompiler",
"(",
"File",
"classDirectory",
",",
"Iterable",
"<",
"File",
">",
"sourcePathDirectories",
",",
"Iterable",
"<",
"File",
">",
"classPathEntries",
",",
"boolean"... | Run the Java compiler.
@param classDirectory the output directory.
@param sourcePathDirectories the source directories.
@param classPathEntries classpath entries.
@param enableCompilerOutput indicates if the Java compiler output is displayed.
@param enableOptimization indicates if the Java compiler must applied optimi... | [
"Run",
"the",
"Java",
"compiler",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1747-L1781 |
57,060 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.createStubs | protected File createStubs(ResourceSet resourceSet, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_53);
final File outputDirectory = createTempDir(STUB_FOLDER_PREFIX);
if (progress.isCanceled()) {
return null;
}
if (getLogger().isDebugEnabled()) {
get... | java | protected File createStubs(ResourceSet resourceSet, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_53);
final File outputDirectory = createTempDir(STUB_FOLDER_PREFIX);
if (progress.isCanceled()) {
return null;
}
if (getLogger().isDebugEnabled()) {
get... | [
"protected",
"File",
"createStubs",
"(",
"ResourceSet",
"resourceSet",
",",
"IProgressMonitor",
"progress",
")",
"{",
"assert",
"progress",
"!=",
"null",
";",
"progress",
".",
"subTask",
"(",
"Messages",
".",
"SarlBatchCompiler_53",
")",
";",
"final",
"File",
"o... | Create the stubs.
@param resourceSet the input resource set.
@param progress monitor of the progress of the compilation.
@return the folder in which the stubs are located. Replies <code>null</code> if the activity is canceled. | [
"Create",
"the",
"stubs",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1833-L1860 |
57,061 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.loadSARLFiles | protected void loadSARLFiles(ResourceSet resourceSet, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_54);
this.encodingProvider.setDefaultEncoding(getFileEncoding());
final NameBasedFilter nameBasedFilter = new NameBasedFilter();
nameBasedFilter.setExtension(... | java | protected void loadSARLFiles(ResourceSet resourceSet, IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_54);
this.encodingProvider.setDefaultEncoding(getFileEncoding());
final NameBasedFilter nameBasedFilter = new NameBasedFilter();
nameBasedFilter.setExtension(... | [
"protected",
"void",
"loadSARLFiles",
"(",
"ResourceSet",
"resourceSet",
",",
"IProgressMonitor",
"progress",
")",
"{",
"assert",
"progress",
"!=",
"null",
";",
"progress",
".",
"subTask",
"(",
"Messages",
".",
"SarlBatchCompiler_54",
")",
";",
"this",
".",
"enc... | Load the SARL files in the given resource set.
@param progress monitor of the progress of the compilation.
@param resourceSet the resource set to load from. | [
"Load",
"the",
"SARL",
"files",
"in",
"the",
"given",
"resource",
"set",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1867-L1894 |
57,062 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.createTempDir | protected File createTempDir(String namePrefix) {
final File tempDir = new File(getTempDirectory(), namePrefix);
cleanFolder(tempDir, ACCEPT_ALL_FILTER, true, true);
if (!tempDir.mkdirs()) {
throw new RuntimeException(MessageFormat.format(Messages.SarlBatchCompiler_8, tempDir.getAbsolutePath()));
}
this.te... | java | protected File createTempDir(String namePrefix) {
final File tempDir = new File(getTempDirectory(), namePrefix);
cleanFolder(tempDir, ACCEPT_ALL_FILTER, true, true);
if (!tempDir.mkdirs()) {
throw new RuntimeException(MessageFormat.format(Messages.SarlBatchCompiler_8, tempDir.getAbsolutePath()));
}
this.te... | [
"protected",
"File",
"createTempDir",
"(",
"String",
"namePrefix",
")",
"{",
"final",
"File",
"tempDir",
"=",
"new",
"File",
"(",
"getTempDirectory",
"(",
")",
",",
"namePrefix",
")",
";",
"cleanFolder",
"(",
"tempDir",
",",
"ACCEPT_ALL_FILTER",
",",
"true",
... | Create a temporary subdirectory inside the root temp directory.
@param namePrefix the prefix for the folder name.
@return the temp directory.
@see #getTempDirectory() | [
"Create",
"a",
"temporary",
"subdirectory",
"inside",
"the",
"root",
"temp",
"directory",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1902-L1910 |
57,063 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.cleanFolder | protected boolean cleanFolder(File parentFolder, FileFilter filter, boolean continueOnError,
boolean deleteParentFolder) {
try {
if (getLogger().isDebugEnabled()) {
getLogger().debug(Messages.SarlBatchCompiler_9, parentFolder.toString());
}
return Files.cleanFolder(parentFolder, null, continueOnError,... | java | protected boolean cleanFolder(File parentFolder, FileFilter filter, boolean continueOnError,
boolean deleteParentFolder) {
try {
if (getLogger().isDebugEnabled()) {
getLogger().debug(Messages.SarlBatchCompiler_9, parentFolder.toString());
}
return Files.cleanFolder(parentFolder, null, continueOnError,... | [
"protected",
"boolean",
"cleanFolder",
"(",
"File",
"parentFolder",
",",
"FileFilter",
"filter",
",",
"boolean",
"continueOnError",
",",
"boolean",
"deleteParentFolder",
")",
"{",
"try",
"{",
"if",
"(",
"getLogger",
"(",
")",
".",
"isDebugEnabled",
"(",
")",
"... | Clean the folders.
@param parentFolder the parent folder.
@param filter the file filter for the file to remove..
@param continueOnError indicates if the cleaning should continue on error.
@param deleteParentFolder indicates if the parent folder should be removed.
@return the success status. | [
"Clean",
"the",
"folders",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1920-L1930 |
57,064 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.checkConfiguration | protected boolean checkConfiguration(IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_55);
final File output = getOutputPath();
if (getLogger().isDebugEnabled()) {
getLogger().debug(Messages.SarlBatchCompiler_35, output);
}
if (output == null) {
reportI... | java | protected boolean checkConfiguration(IProgressMonitor progress) {
assert progress != null;
progress.subTask(Messages.SarlBatchCompiler_55);
final File output = getOutputPath();
if (getLogger().isDebugEnabled()) {
getLogger().debug(Messages.SarlBatchCompiler_35, output);
}
if (output == null) {
reportI... | [
"protected",
"boolean",
"checkConfiguration",
"(",
"IProgressMonitor",
"progress",
")",
"{",
"assert",
"progress",
"!=",
"null",
";",
"progress",
".",
"subTask",
"(",
"Messages",
".",
"SarlBatchCompiler_55",
")",
";",
"final",
"File",
"output",
"=",
"getOutputPath... | Check the compiler configuration; and logs errors.
@param progress monitor of the progress of the compilation.
@return success status. Replies <code>false</code> if the operation is canceled. | [
"Check",
"the",
"compiler",
"configuration",
";",
"and",
"logs",
"errors",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L1937-L1966 |
57,065 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.createClassLoader | @SuppressWarnings("static-method")
protected ClassLoader createClassLoader(Iterable<File> jarsAndFolders, ClassLoader parentClassLoader) {
return new URLClassLoader(Iterables.toArray(Iterables.transform(jarsAndFolders, from -> {
try {
final URL url = from.toURI().toURL();
assert url != null;
return ur... | java | @SuppressWarnings("static-method")
protected ClassLoader createClassLoader(Iterable<File> jarsAndFolders, ClassLoader parentClassLoader) {
return new URLClassLoader(Iterables.toArray(Iterables.transform(jarsAndFolders, from -> {
try {
final URL url = from.toURI().toURL();
assert url != null;
return ur... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"ClassLoader",
"createClassLoader",
"(",
"Iterable",
"<",
"File",
">",
"jarsAndFolders",
",",
"ClassLoader",
"parentClassLoader",
")",
"{",
"return",
"new",
"URLClassLoader",
"(",
"Iterables",
".",
... | Create the project class loader.
@param jarsAndFolders the project class path.
@param parentClassLoader the parent class loader.
@return the class loader for the project. | [
"Create",
"the",
"project",
"class",
"loader",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L2231-L2242 |
57,066 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.destroyClassLoader | protected void destroyClassLoader(ClassLoader classLoader) {
if (classLoader instanceof Closeable) {
try {
((Closeable) classLoader).close();
} catch (Exception e) {
reportInternalWarning(Messages.SarlBatchCompiler_18, e);
}
}
} | java | protected void destroyClassLoader(ClassLoader classLoader) {
if (classLoader instanceof Closeable) {
try {
((Closeable) classLoader).close();
} catch (Exception e) {
reportInternalWarning(Messages.SarlBatchCompiler_18, e);
}
}
} | [
"protected",
"void",
"destroyClassLoader",
"(",
"ClassLoader",
"classLoader",
")",
"{",
"if",
"(",
"classLoader",
"instanceof",
"Closeable",
")",
"{",
"try",
"{",
"(",
"(",
"Closeable",
")",
"classLoader",
")",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(... | Null-safe destruction of the given class loaders.
@param classLoader the class loader to destroy. | [
"Null",
"-",
"safe",
"destruction",
"of",
"the",
"given",
"class",
"loaders",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L2248-L2256 |
57,067 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java | SarlBatchCompiler.setWarningSeverity | public void setWarningSeverity(String warningId, Severity severity) {
if (!Strings.isEmpty(warningId) && severity != null) {
this.issueSeverityProvider.setSeverity(warningId, severity);
}
} | java | public void setWarningSeverity(String warningId, Severity severity) {
if (!Strings.isEmpty(warningId) && severity != null) {
this.issueSeverityProvider.setSeverity(warningId, severity);
}
} | [
"public",
"void",
"setWarningSeverity",
"(",
"String",
"warningId",
",",
"Severity",
"severity",
")",
"{",
"if",
"(",
"!",
"Strings",
".",
"isEmpty",
"(",
"warningId",
")",
"&&",
"severity",
"!=",
"null",
")",
"{",
"this",
".",
"issueSeverityProvider",
".",
... | Change the severity level of a warning.
@param warningId the identifier of the warning. If {@code null} or empty, this function does nothing.
@param severity the new severity. If {@code null} this function does nothing.
@since 0.5 | [
"Change",
"the",
"severity",
"level",
"of",
"a",
"warning",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/batch/SarlBatchCompiler.java#L2264-L2268 |
57,068 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/ParticipantRepository.java | ParticipantRepository.addListener | protected EventListener addListener(ADDRESST key, EventListener value) {
synchronized (mutex()) {
return this.listeners.put(key, value);
}
} | java | protected EventListener addListener(ADDRESST key, EventListener value) {
synchronized (mutex()) {
return this.listeners.put(key, value);
}
} | [
"protected",
"EventListener",
"addListener",
"(",
"ADDRESST",
"key",
",",
"EventListener",
"value",
")",
"{",
"synchronized",
"(",
"mutex",
"(",
")",
")",
"{",
"return",
"this",
".",
"listeners",
".",
"put",
"(",
"key",
",",
"value",
")",
";",
"}",
"}"
] | Add a participant with the given address in this repository.
@param key address of the participant.
@param value is the participant to map to the address.
@return the participant that was previously associated to the given address. | [
"Add",
"a",
"participant",
"with",
"the",
"given",
"address",
"in",
"this",
"repository",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/ParticipantRepository.java#L126-L130 |
57,069 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/ParticipantRepository.java | ParticipantRepository.getAdresses | protected SynchronizedSet<ADDRESST> getAdresses() {
final Object mutex = mutex();
synchronized (mutex) {
return Collections3.synchronizedSet(this.listeners.keySet(), mutex);
}
} | java | protected SynchronizedSet<ADDRESST> getAdresses() {
final Object mutex = mutex();
synchronized (mutex) {
return Collections3.synchronizedSet(this.listeners.keySet(), mutex);
}
} | [
"protected",
"SynchronizedSet",
"<",
"ADDRESST",
">",
"getAdresses",
"(",
")",
"{",
"final",
"Object",
"mutex",
"=",
"mutex",
"(",
")",
";",
"synchronized",
"(",
"mutex",
")",
"{",
"return",
"Collections3",
".",
"synchronizedSet",
"(",
"this",
".",
"listener... | Replies all the addresses from the inside of this repository.
@return the addresses in this repository. | [
"Replies",
"all",
"the",
"addresses",
"from",
"the",
"inside",
"of",
"this",
"repository",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/ParticipantRepository.java#L158-L163 |
57,070 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/ParticipantRepository.java | ParticipantRepository.getListeners | public SynchronizedCollection<EventListener> getListeners() {
final Object mutex = mutex();
synchronized (mutex) {
return Collections3.synchronizedCollection(this.listeners.values(), mutex);
}
} | java | public SynchronizedCollection<EventListener> getListeners() {
final Object mutex = mutex();
synchronized (mutex) {
return Collections3.synchronizedCollection(this.listeners.values(), mutex);
}
} | [
"public",
"SynchronizedCollection",
"<",
"EventListener",
">",
"getListeners",
"(",
")",
"{",
"final",
"Object",
"mutex",
"=",
"mutex",
"(",
")",
";",
"synchronized",
"(",
"mutex",
")",
"{",
"return",
"Collections3",
".",
"synchronizedCollection",
"(",
"this",
... | Replies all the participants from the inside of this repository.
@return the participants. | [
"Replies",
"all",
"the",
"participants",
"from",
"the",
"inside",
"of",
"this",
"repository",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/ParticipantRepository.java#L170-L175 |
57,071 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/ParticipantRepository.java | ParticipantRepository.listenersEntrySet | protected Set<Entry<ADDRESST, EventListener>> listenersEntrySet() {
final Object mutex = mutex();
synchronized (mutex) {
return Collections3.synchronizedSet(this.listeners.entrySet(), mutex);
}
} | java | protected Set<Entry<ADDRESST, EventListener>> listenersEntrySet() {
final Object mutex = mutex();
synchronized (mutex) {
return Collections3.synchronizedSet(this.listeners.entrySet(), mutex);
}
} | [
"protected",
"Set",
"<",
"Entry",
"<",
"ADDRESST",
",",
"EventListener",
">",
">",
"listenersEntrySet",
"(",
")",
"{",
"final",
"Object",
"mutex",
"=",
"mutex",
"(",
")",
";",
"synchronized",
"(",
"mutex",
")",
"{",
"return",
"Collections3",
".",
"synchron... | Replies the pairs of addresses and participants in this repository.
@return the pairs of addresses and participants | [
"Replies",
"the",
"pairs",
"of",
"addresses",
"and",
"participants",
"in",
"this",
"repository",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/repository/ParticipantRepository.java#L182-L187 |
57,072 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/shortcuts/AbstractSarlLaunchShortcut.java | AbstractSarlLaunchShortcut.searchAndLaunch | private void searchAndLaunch(String mode, Object... scope) {
final ElementDescription element = searchAndSelect(true, scope);
if (element != null) {
try {
launch(element.projectName, element.elementName, mode);
} catch (CoreException e) {
SARLEclipsePlugin.getDefault().openError(getShell(),
io.s... | java | private void searchAndLaunch(String mode, Object... scope) {
final ElementDescription element = searchAndSelect(true, scope);
if (element != null) {
try {
launch(element.projectName, element.elementName, mode);
} catch (CoreException e) {
SARLEclipsePlugin.getDefault().openError(getShell(),
io.s... | [
"private",
"void",
"searchAndLaunch",
"(",
"String",
"mode",
",",
"Object",
"...",
"scope",
")",
"{",
"final",
"ElementDescription",
"element",
"=",
"searchAndSelect",
"(",
"true",
",",
"scope",
")",
";",
"if",
"(",
"element",
"!=",
"null",
")",
"{",
"try"... | Resolves an element type that can be launched from the given scope and launches in the
specified mode.
@param mode launch mode.
@param scope the elements to consider for an element type that can be launched. | [
"Resolves",
"an",
"element",
"type",
"that",
"can",
"be",
"launched",
"from",
"the",
"given",
"scope",
"and",
"launches",
"in",
"the",
"specified",
"mode",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/shortcuts/AbstractSarlLaunchShortcut.java#L219-L230 |
57,073 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/shortcuts/AbstractSarlLaunchShortcut.java | AbstractSarlLaunchShortcut.launch | protected void launch(String projectName, String fullyQualifiedName, String mode)
throws CoreException {
final List<ILaunchConfiguration> configs = getCandidates(projectName, fullyQualifiedName);
ILaunchConfiguration config = null;
final int count = configs.size();
if (count == 1) {
config = configs.get(0... | java | protected void launch(String projectName, String fullyQualifiedName, String mode)
throws CoreException {
final List<ILaunchConfiguration> configs = getCandidates(projectName, fullyQualifiedName);
ILaunchConfiguration config = null;
final int count = configs.size();
if (count == 1) {
config = configs.get(0... | [
"protected",
"void",
"launch",
"(",
"String",
"projectName",
",",
"String",
"fullyQualifiedName",
",",
"String",
"mode",
")",
"throws",
"CoreException",
"{",
"final",
"List",
"<",
"ILaunchConfiguration",
">",
"configs",
"=",
"getCandidates",
"(",
"projectName",
",... | Launches the given element type in the specified mode.
@param projectName the name of the project.
@param fullyQualifiedName the element name.
@param mode launch mode
@throws CoreException if something is going wrong. | [
"Launches",
"the",
"given",
"element",
"type",
"in",
"the",
"specified",
"mode",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/shortcuts/AbstractSarlLaunchShortcut.java#L277-L296 |
57,074 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/CodeBuilderFactory.java | CodeBuilderFactory.computeUnusedUri | @Pure
protected URI computeUnusedUri(ResourceSet resourceSet) {
String name = "__synthetic";
for (int i = 0; i < Integer.MAX_VALUE; ++i) {
URI syntheticUri = URI.createURI(name + i + "." + getScriptFileExtension());
if (resourceSet.getResource(syntheticUri, false) == null) {
return syntheticUri;
}
}... | java | @Pure
protected URI computeUnusedUri(ResourceSet resourceSet) {
String name = "__synthetic";
for (int i = 0; i < Integer.MAX_VALUE; ++i) {
URI syntheticUri = URI.createURI(name + i + "." + getScriptFileExtension());
if (resourceSet.getResource(syntheticUri, false) == null) {
return syntheticUri;
}
}... | [
"@",
"Pure",
"protected",
"URI",
"computeUnusedUri",
"(",
"ResourceSet",
"resourceSet",
")",
"{",
"String",
"name",
"=",
"\"__synthetic\"",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"Integer",
".",
"MAX_VALUE",
";",
"++",
"i",
")",
"{",
"UR... | Compute a unused URI for a synthetic resource.
@param resourceSet the resource set in which the resource should be located.
@return the uri. | [
"Compute",
"a",
"unused",
"URI",
"for",
"a",
"synthetic",
"resource",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/CodeBuilderFactory.java#L118-L128 |
57,075 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/CodeBuilderFactory.java | CodeBuilderFactory.createResource | @Pure
protected Resource createResource(ResourceSet resourceSet) {
URI uri = computeUnusedUri(resourceSet);
Resource resource = getResourceFactory().createResource(uri);
resourceSet.getResources().add(resource);
return resource;
} | java | @Pure
protected Resource createResource(ResourceSet resourceSet) {
URI uri = computeUnusedUri(resourceSet);
Resource resource = getResourceFactory().createResource(uri);
resourceSet.getResources().add(resource);
return resource;
} | [
"@",
"Pure",
"protected",
"Resource",
"createResource",
"(",
"ResourceSet",
"resourceSet",
")",
"{",
"URI",
"uri",
"=",
"computeUnusedUri",
"(",
"resourceSet",
")",
";",
"Resource",
"resource",
"=",
"getResourceFactory",
"(",
")",
".",
"createResource",
"(",
"ur... | Create a synthetic resource.
@param resourceSet the resourceSet.
@return the resource. | [
"Create",
"a",
"synthetic",
"resource",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/CodeBuilderFactory.java#L178-L184 |
57,076 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/CodeBuilderFactory.java | CodeBuilderFactory.getInjector | @Pure
protected Injector getInjector() {
if (this.builderInjector == null) {
ImportManager importManager = this.importManagerProvider.get();
this.builderInjector = createOverridingInjector(this.originalInjector, new CodeBuilderModule(importManager));
}
return builderInjector;
} | java | @Pure
protected Injector getInjector() {
if (this.builderInjector == null) {
ImportManager importManager = this.importManagerProvider.get();
this.builderInjector = createOverridingInjector(this.originalInjector, new CodeBuilderModule(importManager));
}
return builderInjector;
} | [
"@",
"Pure",
"protected",
"Injector",
"getInjector",
"(",
")",
"{",
"if",
"(",
"this",
".",
"builderInjector",
"==",
"null",
")",
"{",
"ImportManager",
"importManager",
"=",
"this",
".",
"importManagerProvider",
".",
"get",
"(",
")",
";",
"this",
".",
"bui... | Replies the injector.
@return the injector. | [
"Replies",
"the",
"injector",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/CodeBuilderFactory.java#L189-L196 |
57,077 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlBehaviorUnitBuilderImpl.java | SarlBehaviorUnitBuilderImpl.getGuard | @Pure
public IExpressionBuilder getGuard() {
IExpressionBuilder exprBuilder = this.expressionProvider.get();
exprBuilder.eInit(getSarlBehaviorUnit(), new Procedures.Procedure1<XExpression>() {
public void apply(XExpression expr) {
getSarlBehaviorUnit().setGuard(expr);
}
}, getTypeResolutionContext(... | java | @Pure
public IExpressionBuilder getGuard() {
IExpressionBuilder exprBuilder = this.expressionProvider.get();
exprBuilder.eInit(getSarlBehaviorUnit(), new Procedures.Procedure1<XExpression>() {
public void apply(XExpression expr) {
getSarlBehaviorUnit().setGuard(expr);
}
}, getTypeResolutionContext(... | [
"@",
"Pure",
"public",
"IExpressionBuilder",
"getGuard",
"(",
")",
"{",
"IExpressionBuilder",
"exprBuilder",
"=",
"this",
".",
"expressionProvider",
".",
"get",
"(",
")",
";",
"exprBuilder",
".",
"eInit",
"(",
"getSarlBehaviorUnit",
"(",
")",
",",
"new",
"Proc... | Change the guard.
@param value the value of the guard. It may be <code>null</code>. | [
"Change",
"the",
"guard",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlBehaviorUnitBuilderImpl.java#L117-L126 |
57,078 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlBehaviorUnitBuilderImpl.java | SarlBehaviorUnitBuilderImpl.getExpression | public IBlockExpressionBuilder getExpression() {
IBlockExpressionBuilder block = this.blockExpressionProvider.get();
block.eInit(getTypeResolutionContext());
XBlockExpression expr = block.getXBlockExpression();
this.sarlBehaviorUnit.setExpression(expr);
return block;
} | java | public IBlockExpressionBuilder getExpression() {
IBlockExpressionBuilder block = this.blockExpressionProvider.get();
block.eInit(getTypeResolutionContext());
XBlockExpression expr = block.getXBlockExpression();
this.sarlBehaviorUnit.setExpression(expr);
return block;
} | [
"public",
"IBlockExpressionBuilder",
"getExpression",
"(",
")",
"{",
"IBlockExpressionBuilder",
"block",
"=",
"this",
".",
"blockExpressionProvider",
".",
"get",
"(",
")",
";",
"block",
".",
"eInit",
"(",
"getTypeResolutionContext",
"(",
")",
")",
";",
"XBlockExpr... | Create the block of code.
@return the block builder. | [
"Create",
"the",
"block",
"of",
"code",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlBehaviorUnitBuilderImpl.java#L131-L137 |
57,079 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/AbstractSREInstallPage.java | AbstractSREInstallPage.validateNameAgainstOtherSREs | protected IStatus validateNameAgainstOtherSREs(String name) {
IStatus nameStatus = SARLEclipsePlugin.getDefault().createOkStatus();
if (isDuplicateName(name)) {
nameStatus = SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR,
ISREInstall.CODE_NAME,
Messages.SREInstallWizard_1);
} else {
fin... | java | protected IStatus validateNameAgainstOtherSREs(String name) {
IStatus nameStatus = SARLEclipsePlugin.getDefault().createOkStatus();
if (isDuplicateName(name)) {
nameStatus = SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR,
ISREInstall.CODE_NAME,
Messages.SREInstallWizard_1);
} else {
fin... | [
"protected",
"IStatus",
"validateNameAgainstOtherSREs",
"(",
"String",
"name",
")",
"{",
"IStatus",
"nameStatus",
"=",
"SARLEclipsePlugin",
".",
"getDefault",
"(",
")",
".",
"createOkStatus",
"(",
")",
";",
"if",
"(",
"isDuplicateName",
"(",
"name",
")",
")",
... | Replies if the name of the SRE is valid against the names of
the other SRE.
@param name the name to validate.
@return the validation status. | [
"Replies",
"if",
"the",
"name",
"of",
"the",
"SRE",
"is",
"valid",
"against",
"the",
"names",
"of",
"the",
"other",
"SRE",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/AbstractSREInstallPage.java#L119-L134 |
57,080 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/AbstractSREInstallPage.java | AbstractSREInstallPage.setPageStatus | protected void setPageStatus(IStatus status) {
this.status = status == null ? SARLEclipsePlugin.getDefault().createOkStatus() : status;
} | java | protected void setPageStatus(IStatus status) {
this.status = status == null ? SARLEclipsePlugin.getDefault().createOkStatus() : status;
} | [
"protected",
"void",
"setPageStatus",
"(",
"IStatus",
"status",
")",
"{",
"this",
".",
"status",
"=",
"status",
"==",
"null",
"?",
"SARLEclipsePlugin",
".",
"getDefault",
"(",
")",
".",
"createOkStatus",
"(",
")",
":",
"status",
";",
"}"
] | Change the status associated to this page.
Any previous status is overrided by the given value.
<p>You must call {@link #updatePageStatus()} after
invoking this methid.
@param status the new status. | [
"Change",
"the",
"status",
"associated",
"to",
"this",
"page",
".",
"Any",
"previous",
"status",
"is",
"overrided",
"by",
"the",
"given",
"value",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/AbstractSREInstallPage.java#L144-L146 |
57,081 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/AbstractSREInstallPage.java | AbstractSREInstallPage.isDuplicateName | private boolean isDuplicateName(String name) {
if (this.existingNames != null) {
final String newName = Strings.nullToEmpty(name);
for (final String existingName : this.existingNames) {
if (newName.equals(existingName)) {
return true;
}
}
}
return false;
} | java | private boolean isDuplicateName(String name) {
if (this.existingNames != null) {
final String newName = Strings.nullToEmpty(name);
for (final String existingName : this.existingNames) {
if (newName.equals(existingName)) {
return true;
}
}
}
return false;
} | [
"private",
"boolean",
"isDuplicateName",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"this",
".",
"existingNames",
"!=",
"null",
")",
"{",
"final",
"String",
"newName",
"=",
"Strings",
".",
"nullToEmpty",
"(",
"name",
")",
";",
"for",
"(",
"final",
"Stri... | Returns whether the name is already in use by an existing SRE.
@param name new name.
@return whether the name is already in use. | [
"Returns",
"whether",
"the",
"name",
"is",
"already",
"in",
"use",
"by",
"an",
"existing",
"SRE",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/AbstractSREInstallPage.java#L154-L164 |
57,082 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/AbstractSREInstallPage.java | AbstractSREInstallPage.setExistingNames | void setExistingNames(String... names) {
this.existingNames = names;
for (int i = 0; i < this.existingNames.length; ++i) {
this.existingNames[i] = Strings.nullToEmpty(this.existingNames[i]);
}
} | java | void setExistingNames(String... names) {
this.existingNames = names;
for (int i = 0; i < this.existingNames.length; ++i) {
this.existingNames[i] = Strings.nullToEmpty(this.existingNames[i]);
}
} | [
"void",
"setExistingNames",
"(",
"String",
"...",
"names",
")",
"{",
"this",
".",
"existingNames",
"=",
"names",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"existingNames",
".",
"length",
";",
"++",
"i",
")",
"{",
"this",
".... | Sets the names of existing SREs, not including the SRE being edited. This method
is called by the wizard and clients should not call this method.
@param names existing SRE names or an empty array. | [
"Sets",
"the",
"names",
"of",
"existing",
"SREs",
"not",
"including",
"the",
"SRE",
"being",
"edited",
".",
"This",
"method",
"is",
"called",
"by",
"the",
"wizard",
"and",
"clients",
"should",
"not",
"call",
"this",
"method",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/AbstractSREInstallPage.java#L172-L177 |
57,083 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/AbstractSREInstallPage.java | AbstractSREInstallPage.updatePageStatus | protected void updatePageStatus() {
if (this.status.isOK()) {
setMessage(null, IMessageProvider.NONE);
} else {
switch (this.status.getSeverity()) {
case IStatus.ERROR:
setMessage(this.status.getMessage(), IMessageProvider.ERROR);
break;
case IStatus.INFO:
setMessage(this.status.getMessage()... | java | protected void updatePageStatus() {
if (this.status.isOK()) {
setMessage(null, IMessageProvider.NONE);
} else {
switch (this.status.getSeverity()) {
case IStatus.ERROR:
setMessage(this.status.getMessage(), IMessageProvider.ERROR);
break;
case IStatus.INFO:
setMessage(this.status.getMessage()... | [
"protected",
"void",
"updatePageStatus",
"(",
")",
"{",
"if",
"(",
"this",
".",
"status",
".",
"isOK",
"(",
")",
")",
"{",
"setMessage",
"(",
"null",
",",
"IMessageProvider",
".",
"NONE",
")",
";",
"}",
"else",
"{",
"switch",
"(",
"this",
".",
"statu... | Updates the status message on the page, based on the status of the SRE and other
status provided by the page. | [
"Updates",
"the",
"status",
"message",
"on",
"the",
"page",
"based",
"on",
"the",
"status",
"of",
"the",
"SRE",
"and",
"other",
"status",
"provided",
"by",
"the",
"page",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/AbstractSREInstallPage.java#L188-L207 |
57,084 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/sarl/actionprototype/ActionPrototype.java | ActionPrototype.toActionId | public String toActionId() {
final StringBuilder b = new StringBuilder();
b.append(getActionName());
for (final String type : this.signature) {
b.append("_"); //$NON-NLS-1$
for (final char c : type.replaceAll("(\\[\\])|\\*", "Array").toCharArray()) { //$NON-NLS-1$//$NON-NLS-2$
if (Character.isJavaIdenti... | java | public String toActionId() {
final StringBuilder b = new StringBuilder();
b.append(getActionName());
for (final String type : this.signature) {
b.append("_"); //$NON-NLS-1$
for (final char c : type.replaceAll("(\\[\\])|\\*", "Array").toCharArray()) { //$NON-NLS-1$//$NON-NLS-2$
if (Character.isJavaIdenti... | [
"public",
"String",
"toActionId",
"(",
")",
"{",
"final",
"StringBuilder",
"b",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"b",
".",
"append",
"(",
"getActionName",
"(",
")",
")",
";",
"for",
"(",
"final",
"String",
"type",
":",
"this",
".",
"signatur... | Replies the string that permits to identify the action prototype according to the Java variable name.
@return the identifier. | [
"Replies",
"the",
"string",
"that",
"permits",
"to",
"identify",
"the",
"action",
"prototype",
"according",
"to",
"the",
"Java",
"variable",
"name",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/sarl/actionprototype/ActionPrototype.java#L129-L141 |
57,085 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/space/AbstractEventSpace.java | AbstractEventSpace.emit | public final void emit(UUID eventSource, Event event, Scope<Address> scope) {
assert event != null;
ensureEventSource(eventSource, event);
assert getSpaceID().equals(event.getSource().getSpaceID()) : "The source address must belong to this space"; //$NON-NLS-1$
try {
final Scope<Address> scopeInstance = (sco... | java | public final void emit(UUID eventSource, Event event, Scope<Address> scope) {
assert event != null;
ensureEventSource(eventSource, event);
assert getSpaceID().equals(event.getSource().getSpaceID()) : "The source address must belong to this space"; //$NON-NLS-1$
try {
final Scope<Address> scopeInstance = (sco... | [
"public",
"final",
"void",
"emit",
"(",
"UUID",
"eventSource",
",",
"Event",
"event",
",",
"Scope",
"<",
"Address",
">",
"scope",
")",
"{",
"assert",
"event",
"!=",
"null",
";",
"ensureEventSource",
"(",
"eventSource",
",",
"event",
")",
";",
"assert",
"... | Emit the given event in the given scope.
<p>This function emits on the internal event bus of the agent (call to {@link #doEmit(Event, Scope)}), and on the network.
@param eventSource the source of the event.
@param event the event to emit.
@param scope description of the scope of the event, i.e. the receivers of the ... | [
"Emit",
"the",
"given",
"event",
"in",
"the",
"given",
"scope",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/space/AbstractEventSpace.java#L130-L146 |
57,086 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/space/AbstractEventSpace.java | AbstractEventSpace.ensureEventSource | protected void ensureEventSource(UUID eventSource, Event event) {
if (event.getSource() == null) {
if (eventSource != null) {
event.setSource(new Address(getSpaceID(), eventSource));
} else {
throw new AssertionError("Every event must have a source"); //$NON-NLS-1$
}
}
} | java | protected void ensureEventSource(UUID eventSource, Event event) {
if (event.getSource() == null) {
if (eventSource != null) {
event.setSource(new Address(getSpaceID(), eventSource));
} else {
throw new AssertionError("Every event must have a source"); //$NON-NLS-1$
}
}
} | [
"protected",
"void",
"ensureEventSource",
"(",
"UUID",
"eventSource",
",",
"Event",
"event",
")",
"{",
"if",
"(",
"event",
".",
"getSource",
"(",
")",
"==",
"null",
")",
"{",
"if",
"(",
"eventSource",
"!=",
"null",
")",
"{",
"event",
".",
"setSource",
... | Ensure that the given event has a source.
@param eventSource the source of the event.
@param event the event to emit.
@since 2.0.6.0 | [
"Ensure",
"that",
"the",
"given",
"event",
"has",
"a",
"source",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/space/AbstractEventSpace.java#L154-L162 |
57,087 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/space/AbstractEventSpace.java | AbstractEventSpace.doEmit | protected void doEmit(Event event, Scope<? super Address> scope) {
assert scope != null;
assert event != null;
final UniqueAddressParticipantRepository<Address> particips = getParticipantInternalDataStructure();
final SynchronizedCollection<EventListener> listeners = particips.getListeners();
synchronized (li... | java | protected void doEmit(Event event, Scope<? super Address> scope) {
assert scope != null;
assert event != null;
final UniqueAddressParticipantRepository<Address> particips = getParticipantInternalDataStructure();
final SynchronizedCollection<EventListener> listeners = particips.getListeners();
synchronized (li... | [
"protected",
"void",
"doEmit",
"(",
"Event",
"event",
",",
"Scope",
"<",
"?",
"super",
"Address",
">",
"scope",
")",
"{",
"assert",
"scope",
"!=",
"null",
";",
"assert",
"event",
"!=",
"null",
";",
"final",
"UniqueAddressParticipantRepository",
"<",
"Address... | Do the emission of the event.
<p>This function emits the event <strong>only on the internal event bus</strong> of the agents.
@param event the event to emit.
@param scope description of the scope of the event, i.e. the receivers of the event. | [
"Do",
"the",
"emission",
"of",
"the",
"event",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/space/AbstractEventSpace.java#L172-L185 |
57,088 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/util/DataViewDelegate.java | DataViewDelegate.undelegate | public static Object undelegate(Object object) {
Object obj = object;
while (obj instanceof Delegator) {
obj = ((Delegator<?>) obj).getDelegatedObject();
}
return obj;
} | java | public static Object undelegate(Object object) {
Object obj = object;
while (obj instanceof Delegator) {
obj = ((Delegator<?>) obj).getDelegatedObject();
}
return obj;
} | [
"public",
"static",
"Object",
"undelegate",
"(",
"Object",
"object",
")",
"{",
"Object",
"obj",
"=",
"object",
";",
"while",
"(",
"obj",
"instanceof",
"Delegator",
")",
"{",
"obj",
"=",
"(",
"(",
"Delegator",
"<",
"?",
">",
")",
"obj",
")",
".",
"get... | Find the delegated object.
@param object the object.
@return the delegator object. | [
"Find",
"the",
"delegated",
"object",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/util/DataViewDelegate.java#L44-L50 |
57,089 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/editor/DocumentAutoFormatter.java | DocumentAutoFormatter.formatRegion | protected void formatRegion(IXtextDocument document, int offset, int length) {
try {
final int startLineIndex = document.getLineOfOffset(previousSiblingChar(document, offset));
final int endLineIndex = document.getLineOfOffset(offset + length);
int regionLength = 0;
for (int i = startLineIndex; i <= endLi... | java | protected void formatRegion(IXtextDocument document, int offset, int length) {
try {
final int startLineIndex = document.getLineOfOffset(previousSiblingChar(document, offset));
final int endLineIndex = document.getLineOfOffset(offset + length);
int regionLength = 0;
for (int i = startLineIndex; i <= endLi... | [
"protected",
"void",
"formatRegion",
"(",
"IXtextDocument",
"document",
",",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"try",
"{",
"final",
"int",
"startLineIndex",
"=",
"document",
".",
"getLineOfOffset",
"(",
"previousSiblingChar",
"(",
"document",
",",... | Called for formatting a region.
@param document the document to format.
@param offset the offset of the text to format.
@param length the length of the text. | [
"Called",
"for",
"formatting",
"a",
"region",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/editor/DocumentAutoFormatter.java#L113-L130 |
57,090 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/bootstrap/SRE.java | SRE.getServiceLoader | @Pure
public static ServiceLoader<SREBootstrap> getServiceLoader(boolean onlyInstalledInJRE) {
synchronized (SRE.class) {
ServiceLoader<SREBootstrap> sl = loader == null ? null : loader.get();
if (sl == null) {
if (onlyInstalledInJRE) {
sl = ServiceLoader.loadInstalled(SREBootstrap.class);
} el... | java | @Pure
public static ServiceLoader<SREBootstrap> getServiceLoader(boolean onlyInstalledInJRE) {
synchronized (SRE.class) {
ServiceLoader<SREBootstrap> sl = loader == null ? null : loader.get();
if (sl == null) {
if (onlyInstalledInJRE) {
sl = ServiceLoader.loadInstalled(SREBootstrap.class);
} el... | [
"@",
"Pure",
"public",
"static",
"ServiceLoader",
"<",
"SREBootstrap",
">",
"getServiceLoader",
"(",
"boolean",
"onlyInstalledInJRE",
")",
"{",
"synchronized",
"(",
"SRE",
".",
"class",
")",
"{",
"ServiceLoader",
"<",
"SREBootstrap",
">",
"sl",
"=",
"loader",
... | Replies all the installed SRE into the class path.
@param onlyInstalledInJRE indicates if the services will be considered only into the libraries that are
installed into the JRE. If {@code true}, only the libraries into the JRE will be considered and
the application libraries will be ignored. If {@code false}, the app... | [
"Replies",
"all",
"the",
"installed",
"SRE",
"into",
"the",
"class",
"path",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/bootstrap/SRE.java#L95-L109 |
57,091 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/bootstrap/SRE.java | SRE.getBootstrappedLibraries | public static Set<URL> getBootstrappedLibraries() {
final String name = PREFIX + SREBootstrap.class.getName();
final Set<URL> result = new TreeSet<>();
try {
final Enumeration<URL> enumr = ClassLoader.getSystemResources(name);
while (enumr.hasMoreElements()) {
final URL url = enumr.nextElement();
if... | java | public static Set<URL> getBootstrappedLibraries() {
final String name = PREFIX + SREBootstrap.class.getName();
final Set<URL> result = new TreeSet<>();
try {
final Enumeration<URL> enumr = ClassLoader.getSystemResources(name);
while (enumr.hasMoreElements()) {
final URL url = enumr.nextElement();
if... | [
"public",
"static",
"Set",
"<",
"URL",
">",
"getBootstrappedLibraries",
"(",
")",
"{",
"final",
"String",
"name",
"=",
"PREFIX",
"+",
"SREBootstrap",
".",
"class",
".",
"getName",
"(",
")",
";",
"final",
"Set",
"<",
"URL",
">",
"result",
"=",
"new",
"T... | Replies all the libraries that contains a SRE bootstrap.
@return the set of libraries.
@since 0.7 | [
"Replies",
"all",
"the",
"libraries",
"that",
"contains",
"a",
"SRE",
"bootstrap",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/bootstrap/SRE.java#L116-L131 |
57,092 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/bootstrap/SRE.java | SRE.getBootstrap | @Pure
public static SREBootstrap getBootstrap() {
synchronized (SRE.class) {
if (currentSRE == null) {
final Iterator<SREBootstrap> iterator = getServiceLoader().iterator();
if (iterator.hasNext()) {
currentSRE = iterator.next();
} else {
currentSRE = new VoidSREBootstrap();
}
}
re... | java | @Pure
public static SREBootstrap getBootstrap() {
synchronized (SRE.class) {
if (currentSRE == null) {
final Iterator<SREBootstrap> iterator = getServiceLoader().iterator();
if (iterator.hasNext()) {
currentSRE = iterator.next();
} else {
currentSRE = new VoidSREBootstrap();
}
}
re... | [
"@",
"Pure",
"public",
"static",
"SREBootstrap",
"getBootstrap",
"(",
")",
"{",
"synchronized",
"(",
"SRE",
".",
"class",
")",
"{",
"if",
"(",
"currentSRE",
"==",
"null",
")",
"{",
"final",
"Iterator",
"<",
"SREBootstrap",
">",
"iterator",
"=",
"getService... | Find and reply the current SRE.
@return the current SRE, never {@code null}.
@throws IllegalStateException if a SRE cannot be found. | [
"Find",
"and",
"reply",
"the",
"current",
"SRE",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/bootstrap/SRE.java#L166-L179 |
57,093 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/hover/SARLHoverSignatureProvider.java | SARLHoverSignatureProvider._signature | protected String _signature(XCastedExpression castExpression, boolean typeAtEnd) {
if (castExpression instanceof SarlCastedExpression) {
final JvmOperation delegate = ((SarlCastedExpression) castExpression).getFeature();
if (delegate != null) {
return _signature(delegate, typeAtEnd);
}
}
return Messa... | java | protected String _signature(XCastedExpression castExpression, boolean typeAtEnd) {
if (castExpression instanceof SarlCastedExpression) {
final JvmOperation delegate = ((SarlCastedExpression) castExpression).getFeature();
if (delegate != null) {
return _signature(delegate, typeAtEnd);
}
}
return Messa... | [
"protected",
"String",
"_signature",
"(",
"XCastedExpression",
"castExpression",
",",
"boolean",
"typeAtEnd",
")",
"{",
"if",
"(",
"castExpression",
"instanceof",
"SarlCastedExpression",
")",
"{",
"final",
"JvmOperation",
"delegate",
"=",
"(",
"(",
"SarlCastedExpressi... | Replies the hover for a SARL casted expression.
@param castExpression the casted expression.
@param typeAtEnd indicates if the type should be put at end.
@return the string representation into the hover. | [
"Replies",
"the",
"hover",
"for",
"a",
"SARL",
"casted",
"expression",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/hover/SARLHoverSignatureProvider.java#L245-L254 |
57,094 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/hover/SARLHoverSignatureProvider.java | SARLHoverSignatureProvider.getTypeName | protected String getTypeName(JvmType type) {
if (type != null) {
if (type instanceof JvmDeclaredType) {
final ITypeReferenceOwner owner = new StandardTypeReferenceOwner(this.services, type);
return owner.toLightweightTypeReference(type).getHumanReadableName();
}
return type.getSimpleName();
}
ret... | java | protected String getTypeName(JvmType type) {
if (type != null) {
if (type instanceof JvmDeclaredType) {
final ITypeReferenceOwner owner = new StandardTypeReferenceOwner(this.services, type);
return owner.toLightweightTypeReference(type).getHumanReadableName();
}
return type.getSimpleName();
}
ret... | [
"protected",
"String",
"getTypeName",
"(",
"JvmType",
"type",
")",
"{",
"if",
"(",
"type",
"!=",
"null",
")",
"{",
"if",
"(",
"type",
"instanceof",
"JvmDeclaredType",
")",
"{",
"final",
"ITypeReferenceOwner",
"owner",
"=",
"new",
"StandardTypeReferenceOwner",
... | Replies the type name for the given type.
@param type the type.
@return the string representation of the given type. | [
"Replies",
"the",
"type",
"name",
"for",
"the",
"given",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/hover/SARLHoverSignatureProvider.java#L273-L282 |
57,095 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/runner/AbstractSARLLaunchConfigurationDelegate.java | AbstractSARLLaunchConfigurationDelegate.getSREInstallFor | protected static ISREInstall getSREInstallFor(ILaunchConfiguration configuration,
ILaunchConfigurationAccessor configAccessor,
IJavaProjectAccessor projectAccessor) throws CoreException {
assert configAccessor != null;
assert projectAccessor != null;
final ISREInstall sre;
if (configAccessor.getUseProject... | java | protected static ISREInstall getSREInstallFor(ILaunchConfiguration configuration,
ILaunchConfigurationAccessor configAccessor,
IJavaProjectAccessor projectAccessor) throws CoreException {
assert configAccessor != null;
assert projectAccessor != null;
final ISREInstall sre;
if (configAccessor.getUseProject... | [
"protected",
"static",
"ISREInstall",
"getSREInstallFor",
"(",
"ILaunchConfiguration",
"configuration",
",",
"ILaunchConfigurationAccessor",
"configAccessor",
",",
"IJavaProjectAccessor",
"projectAccessor",
")",
"throws",
"CoreException",
"{",
"assert",
"configAccessor",
"!=",
... | Replies the SRE installation to be used for the given configuration.
@param configuration the configuration to check.
@param configAccessor the accessor to the SRE configuration.
@param projectAccessor the accessor to the Java project.
@return the SRE install.
@throws CoreException if impossible to get the SRE. | [
"Replies",
"the",
"SRE",
"installation",
"to",
"be",
"used",
"for",
"the",
"given",
"configuration",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/runner/AbstractSARLLaunchConfigurationDelegate.java#L158-L181 |
57,096 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/runner/AbstractSARLLaunchConfigurationDelegate.java | AbstractSARLLaunchConfigurationDelegate.getProjectSpecificSRE | private static ISREInstall getProjectSpecificSRE(ILaunchConfiguration configuration, boolean verify,
IJavaProjectAccessor projectAccessor) throws CoreException {
assert projectAccessor != null;
final IJavaProject jprj = projectAccessor.get(configuration);
if (jprj != null) {
final IProject prj = jprj.getPro... | java | private static ISREInstall getProjectSpecificSRE(ILaunchConfiguration configuration, boolean verify,
IJavaProjectAccessor projectAccessor) throws CoreException {
assert projectAccessor != null;
final IJavaProject jprj = projectAccessor.get(configuration);
if (jprj != null) {
final IProject prj = jprj.getPro... | [
"private",
"static",
"ISREInstall",
"getProjectSpecificSRE",
"(",
"ILaunchConfiguration",
"configuration",
",",
"boolean",
"verify",
",",
"IJavaProjectAccessor",
"projectAccessor",
")",
"throws",
"CoreException",
"{",
"assert",
"projectAccessor",
"!=",
"null",
";",
"final... | Replies the project SRE from the given configuration.
@param configuration the configuration to read.
@param verify if true verify the SRE validity, do nothing otherwise
@param projectAccessor the accessor to the Java project.
@return the project SRE or <code>null</code>.
@throws CoreException Some error occurs when ... | [
"Replies",
"the",
"project",
"SRE",
"from",
"the",
"given",
"configuration",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/runner/AbstractSARLLaunchConfigurationDelegate.java#L191-L220 |
57,097 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/runner/AbstractSARLLaunchConfigurationDelegate.java | AbstractSARLLaunchConfigurationDelegate.join | protected static String join(String... values) {
final StringBuilder buffer = new StringBuilder();
for (final String value : values) {
if (!Strings.isNullOrEmpty(value)) {
if (buffer.length() > 0) {
buffer.append(" "); //$NON-NLS-1$
}
buffer.append(value);
}
}
return buffer.toString();
} | java | protected static String join(String... values) {
final StringBuilder buffer = new StringBuilder();
for (final String value : values) {
if (!Strings.isNullOrEmpty(value)) {
if (buffer.length() > 0) {
buffer.append(" "); //$NON-NLS-1$
}
buffer.append(value);
}
}
return buffer.toString();
} | [
"protected",
"static",
"String",
"join",
"(",
"String",
"...",
"values",
")",
"{",
"final",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"final",
"String",
"value",
":",
"values",
")",
"{",
"if",
"(",
"!",
"Strings",... | Replies a string that is the concatenation of the given values.
@param values the values to merge.
@return the concatenation result. | [
"Replies",
"a",
"string",
"that",
"is",
"the",
"concatenation",
"of",
"the",
"given",
"values",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/runner/AbstractSARLLaunchConfigurationDelegate.java#L314-L325 |
57,098 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/runner/AbstractSARLLaunchConfigurationDelegate.java | AbstractSARLLaunchConfigurationDelegate.getOrComputeUnresolvedSARLRuntimeClasspath | private IRuntimeClasspathEntry[] getOrComputeUnresolvedSARLRuntimeClasspath(ILaunchConfiguration configuration)
throws CoreException {
// Get the buffered entries
IRuntimeClasspathEntry[] entries = null;
synchronized (this) {
if (this.unresolvedClasspathEntries != null) {
entries = this.unresolvedClassp... | java | private IRuntimeClasspathEntry[] getOrComputeUnresolvedSARLRuntimeClasspath(ILaunchConfiguration configuration)
throws CoreException {
// Get the buffered entries
IRuntimeClasspathEntry[] entries = null;
synchronized (this) {
if (this.unresolvedClasspathEntries != null) {
entries = this.unresolvedClassp... | [
"private",
"IRuntimeClasspathEntry",
"[",
"]",
"getOrComputeUnresolvedSARLRuntimeClasspath",
"(",
"ILaunchConfiguration",
"configuration",
")",
"throws",
"CoreException",
"{",
"// Get the buffered entries",
"IRuntimeClasspathEntry",
"[",
"]",
"entries",
"=",
"null",
";",
"syn... | Replies the class path for the SARL application.
@param configuration the configuration that provides the classpath.
@return the filtered entries.
@throws CoreException if impossible to get the classpath. | [
"Replies",
"the",
"class",
"path",
"for",
"the",
"SARL",
"application",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/runner/AbstractSARLLaunchConfigurationDelegate.java#L471-L490 |
57,099 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/runner/AbstractSARLLaunchConfigurationDelegate.java | AbstractSARLLaunchConfigurationDelegate.computeUnresolvedSARLRuntimeClasspath | public static IRuntimeClasspathEntry[] computeUnresolvedSARLRuntimeClasspath(ILaunchConfiguration configuration,
ILaunchConfigurationAccessor configAccessor,
IJavaProjectAccessor projectAccessor) throws CoreException {
// Get the classpath from the configuration.
final IRuntimeClasspathEntry[] entries = JavaR... | java | public static IRuntimeClasspathEntry[] computeUnresolvedSARLRuntimeClasspath(ILaunchConfiguration configuration,
ILaunchConfigurationAccessor configAccessor,
IJavaProjectAccessor projectAccessor) throws CoreException {
// Get the classpath from the configuration.
final IRuntimeClasspathEntry[] entries = JavaR... | [
"public",
"static",
"IRuntimeClasspathEntry",
"[",
"]",
"computeUnresolvedSARLRuntimeClasspath",
"(",
"ILaunchConfiguration",
"configuration",
",",
"ILaunchConfigurationAccessor",
"configAccessor",
",",
"IJavaProjectAccessor",
"projectAccessor",
")",
"throws",
"CoreException",
"{... | Compute the class path for the given launch configuration.
@param configuration the configuration that provides the classpath.
@param configAccessor the accessor to the SRE configuration.
@param projectAccessor the accessor to the Java project.
@return the filtered entries.
@throws CoreException if impossible to get t... | [
"Compute",
"the",
"class",
"path",
"for",
"the",
"given",
"launch",
"configuration",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/runner/AbstractSARLLaunchConfigurationDelegate.java#L500-L520 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.