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,400 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java | MarkdownParser.isMarkdownFileExtension | public static boolean isMarkdownFileExtension(String extension) {
for (final String ext : MARKDOWN_FILE_EXTENSIONS) {
if (Strings.equal(ext, extension)) {
return true;
}
}
return false;
} | java | public static boolean isMarkdownFileExtension(String extension) {
for (final String ext : MARKDOWN_FILE_EXTENSIONS) {
if (Strings.equal(ext, extension)) {
return true;
}
}
return false;
} | [
"public",
"static",
"boolean",
"isMarkdownFileExtension",
"(",
"String",
"extension",
")",
"{",
"for",
"(",
"final",
"String",
"ext",
":",
"MARKDOWN_FILE_EXTENSIONS",
")",
"{",
"if",
"(",
"Strings",
".",
"equal",
"(",
"ext",
",",
"extension",
")",
")",
"{",
... | Replies if the given extension is for Markdown file.
@param extension the extension to test.
@return {@code true} if the extension is for a Markdown file. | [
"Replies",
"if",
"the",
"given",
"extension",
"is",
"for",
"Markdown",
"file",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L733-L740 |
57,401 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java | MarkdownParser.addOutlineEntry | protected void addOutlineEntry(StringBuilder outline, int level, String sectionNumber, String title,
String sectionId, boolean htmlOutput) {
if (htmlOutput) {
indent(outline, level - 1, " "); //$NON-NLS-1$
outline.append("<li><a href=\"#"); //$NON-NLS-1$
outline.append(sectionId);
outline.append("\">"... | java | protected void addOutlineEntry(StringBuilder outline, int level, String sectionNumber, String title,
String sectionId, boolean htmlOutput) {
if (htmlOutput) {
indent(outline, level - 1, " "); //$NON-NLS-1$
outline.append("<li><a href=\"#"); //$NON-NLS-1$
outline.append(sectionId);
outline.append("\">"... | [
"protected",
"void",
"addOutlineEntry",
"(",
"StringBuilder",
"outline",
",",
"int",
"level",
",",
"String",
"sectionNumber",
",",
"String",
"title",
",",
"String",
"sectionId",
",",
"boolean",
"htmlOutput",
")",
"{",
"if",
"(",
"htmlOutput",
")",
"{",
"indent... | Update the outline entry.
@param outline the outline.
@param level the depth level in the outline.
@param sectionNumber the auto-computed section number, or {@code null} if no auto-computed number.
@param title the title of the section.
@param sectionId the identifier of the section.
@param htmlOutput indicates if the... | [
"Update",
"the",
"outline",
"entry",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L910-L936 |
57,402 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java | MarkdownParser.formatSectionTitle | protected String formatSectionTitle(String prefix, String sectionNumber, String title, String sectionId) {
return MessageFormat.format(getSectionTitleFormat(), prefix, sectionNumber, title, sectionId) + "\n"; //$NON-NLS-1$
} | java | protected String formatSectionTitle(String prefix, String sectionNumber, String title, String sectionId) {
return MessageFormat.format(getSectionTitleFormat(), prefix, sectionNumber, title, sectionId) + "\n"; //$NON-NLS-1$
} | [
"protected",
"String",
"formatSectionTitle",
"(",
"String",
"prefix",
",",
"String",
"sectionNumber",
",",
"String",
"title",
",",
"String",
"sectionId",
")",
"{",
"return",
"MessageFormat",
".",
"format",
"(",
"getSectionTitleFormat",
"(",
")",
",",
"prefix",
"... | Format the section title.
@param prefix the Markdown prefix.
@param sectionNumber the section number.
@param title the section title.
@param sectionId the identifier of the section.
@return the formatted section title. | [
"Format",
"the",
"section",
"title",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L955-L957 |
57,403 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java | MarkdownParser.indent | protected static void indent(StringBuilder buffer, int number, String character) {
for (int i = 0; i < number; ++i) {
buffer.append(character);
}
} | java | protected static void indent(StringBuilder buffer, int number, String character) {
for (int i = 0; i < number; ++i) {
buffer.append(character);
}
} | [
"protected",
"static",
"void",
"indent",
"(",
"StringBuilder",
"buffer",
",",
"int",
"number",
",",
"String",
"character",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"number",
";",
"++",
"i",
")",
"{",
"buffer",
".",
"append",
"(",
... | Create indentation in the given buffer.
@param buffer the buffer.
@param number the number of identations.
@param character the string for a single indentation. | [
"Create",
"indentation",
"in",
"the",
"given",
"buffer",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L965-L969 |
57,404 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java | MarkdownParser.computeLineNo | protected static int computeLineNo(Node node) {
final int offset = node.getStartOffset();
final BasedSequence seq = node.getDocument().getChars();
int tmpOffset = seq.endOfLine(0);
int lineno = 1;
while (tmpOffset < offset) {
++lineno;
tmpOffset = seq.endOfLineAnyEOL(tmpOffset + seq.eolLength(tmpOffset)... | java | protected static int computeLineNo(Node node) {
final int offset = node.getStartOffset();
final BasedSequence seq = node.getDocument().getChars();
int tmpOffset = seq.endOfLine(0);
int lineno = 1;
while (tmpOffset < offset) {
++lineno;
tmpOffset = seq.endOfLineAnyEOL(tmpOffset + seq.eolLength(tmpOffset)... | [
"protected",
"static",
"int",
"computeLineNo",
"(",
"Node",
"node",
")",
"{",
"final",
"int",
"offset",
"=",
"node",
".",
"getStartOffset",
"(",
")",
";",
"final",
"BasedSequence",
"seq",
"=",
"node",
".",
"getDocument",
"(",
")",
".",
"getChars",
"(",
"... | Compute the number of lines for reaching the given node.
@param node the node.
@return the line number for the node. | [
"Compute",
"the",
"number",
"of",
"lines",
"for",
"reaching",
"the",
"given",
"node",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L1010-L1020 |
57,405 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java | MarkdownParser.createValidatorComponents | protected Iterable<DynamicValidationComponent> createValidatorComponents(Image it, File currentFile,
DynamicValidationContext context) {
final Collection<DynamicValidationComponent> components = new ArrayList<>();
if (isLocalImageReferenceValidation()) {
final int lineno = computeLineNo(it);
final URL url ... | java | protected Iterable<DynamicValidationComponent> createValidatorComponents(Image it, File currentFile,
DynamicValidationContext context) {
final Collection<DynamicValidationComponent> components = new ArrayList<>();
if (isLocalImageReferenceValidation()) {
final int lineno = computeLineNo(it);
final URL url ... | [
"protected",
"Iterable",
"<",
"DynamicValidationComponent",
">",
"createValidatorComponents",
"(",
"Image",
"it",
",",
"File",
"currentFile",
",",
"DynamicValidationContext",
"context",
")",
"{",
"final",
"Collection",
"<",
"DynamicValidationComponent",
">",
"components",... | Create a validation component for an image reference.
@param it the image reference.
@param currentFile the current file.
@param context the validation context.
@return the validation components. | [
"Create",
"a",
"validation",
"component",
"for",
"an",
"image",
"reference",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L1029-L1044 |
57,406 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java | MarkdownParser.createValidatorComponents | protected Iterable<DynamicValidationComponent> createValidatorComponents(Link it, File currentFile,
DynamicValidationContext context) {
final Collection<DynamicValidationComponent> components = new ArrayList<>();
if (isLocalFileReferenceValidation() || isRemoteReferenceValidation()) {
final int lineno = compu... | java | protected Iterable<DynamicValidationComponent> createValidatorComponents(Link it, File currentFile,
DynamicValidationContext context) {
final Collection<DynamicValidationComponent> components = new ArrayList<>();
if (isLocalFileReferenceValidation() || isRemoteReferenceValidation()) {
final int lineno = compu... | [
"protected",
"Iterable",
"<",
"DynamicValidationComponent",
">",
"createValidatorComponents",
"(",
"Link",
"it",
",",
"File",
"currentFile",
",",
"DynamicValidationContext",
"context",
")",
"{",
"final",
"Collection",
"<",
"DynamicValidationComponent",
">",
"components",
... | Create a validation component for an hyper reference.
@param it the hyper reference.
@param currentFile the current file.
@param context the validation context.
@return the validation components. | [
"Create",
"a",
"validation",
"component",
"for",
"an",
"hyper",
"reference",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L1053-L1078 |
57,407 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java | MarkdownParser.createLocalImageValidatorComponent | @SuppressWarnings("static-method")
protected DynamicValidationComponent createLocalImageValidatorComponent(Image it, URL url, int lineno,
File currentFile, DynamicValidationContext context) {
File fn = FileSystem.convertURLToFile(url);
if (!fn.isAbsolute()) {
fn = FileSystem.join(currentFile.getParentFile(),... | java | @SuppressWarnings("static-method")
protected DynamicValidationComponent createLocalImageValidatorComponent(Image it, URL url, int lineno,
File currentFile, DynamicValidationContext context) {
File fn = FileSystem.convertURLToFile(url);
if (!fn.isAbsolute()) {
fn = FileSystem.join(currentFile.getParentFile(),... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"DynamicValidationComponent",
"createLocalImageValidatorComponent",
"(",
"Image",
"it",
",",
"URL",
"url",
",",
"int",
"lineno",
",",
"File",
"currentFile",
",",
"DynamicValidationContext",
"context",
... | Create a validation component for a reference to a local image.
@param it the reference.
@param url the parsed URL of the link.
@param lineno the position of the link into the Markdown file.
@param currentFile the current file.
@param context the validation context.
@return the validation component. | [
"Create",
"a",
"validation",
"component",
"for",
"a",
"reference",
"to",
"a",
"local",
"image",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L1089-L1108 |
57,408 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java | MarkdownParser.createLocalFileValidatorComponents | @SuppressWarnings("static-method")
protected Collection<DynamicValidationComponent> createLocalFileValidatorComponents(Link it, URL url, int lineno,
File currentFile, DynamicValidationContext context) {
File fn = FileSystem.convertURLToFile(url);
if (Strings.isEmpty(fn.getName())) {
// Special case: the URL ... | java | @SuppressWarnings("static-method")
protected Collection<DynamicValidationComponent> createLocalFileValidatorComponents(Link it, URL url, int lineno,
File currentFile, DynamicValidationContext context) {
File fn = FileSystem.convertURLToFile(url);
if (Strings.isEmpty(fn.getName())) {
// Special case: the URL ... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"Collection",
"<",
"DynamicValidationComponent",
">",
"createLocalFileValidatorComponents",
"(",
"Link",
"it",
",",
"URL",
"url",
",",
"int",
"lineno",
",",
"File",
"currentFile",
",",
"DynamicValida... | Create a validation component for an hyper reference to a local file.
@param it the hyper reference.
@param url the parsed URL of the link.
@param lineno the position of the link into the Markdown file.
@param currentFile the current File.
@param context the validation context.
@return the validation component. | [
"Create",
"a",
"validation",
"component",
"for",
"an",
"hyper",
"reference",
"to",
"a",
"local",
"file",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L1119-L1203 |
57,409 | sarl/sarl | main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java | MarkdownParser.createRemoteReferenceValidatorComponents | @SuppressWarnings("static-method")
protected Collection<DynamicValidationComponent> createRemoteReferenceValidatorComponents(Link it, URL url, int lineno,
File currentFile, DynamicValidationContext context) {
return Collections.singleton(new DynamicValidationComponent() {
@Override
public String functionNam... | java | @SuppressWarnings("static-method")
protected Collection<DynamicValidationComponent> createRemoteReferenceValidatorComponents(Link it, URL url, int lineno,
File currentFile, DynamicValidationContext context) {
return Collections.singleton(new DynamicValidationComponent() {
@Override
public String functionNam... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"Collection",
"<",
"DynamicValidationComponent",
">",
"createRemoteReferenceValidatorComponents",
"(",
"Link",
"it",
",",
"URL",
"url",
",",
"int",
"lineno",
",",
"File",
"currentFile",
",",
"Dynamic... | Create a validation component for an hyper reference to a remote Internet page.
@param it the hyper reference.
@param url the parsed URL of the link.
@param lineno the position of the link into the Markdown file.
@param currentFile the current file.
@param context the validation context.
@return the validation compone... | [
"Create",
"a",
"validation",
"component",
"for",
"an",
"hyper",
"reference",
"to",
"a",
"remote",
"Internet",
"page",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L1214-L1232 |
57,410 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/AbstractBuilder.java | AbstractBuilder.newTypeRef | public JvmParameterizedTypeReference newTypeRef(Notifier context, String typeName) {
JvmTypeReference typeReference;
try {
typeReference = findType(context, typeName);
getImportManager().addImportFor(typeReference.getType());
return (JvmParameterizedTypeReference) typeReference;
} catch (TypeNotPresentEx... | java | public JvmParameterizedTypeReference newTypeRef(Notifier context, String typeName) {
JvmTypeReference typeReference;
try {
typeReference = findType(context, typeName);
getImportManager().addImportFor(typeReference.getType());
return (JvmParameterizedTypeReference) typeReference;
} catch (TypeNotPresentEx... | [
"public",
"JvmParameterizedTypeReference",
"newTypeRef",
"(",
"Notifier",
"context",
",",
"String",
"typeName",
")",
"{",
"JvmTypeReference",
"typeReference",
";",
"try",
"{",
"typeReference",
"=",
"findType",
"(",
"context",
",",
"typeName",
")",
";",
"getImportMan... | Replies the type reference for the given name in the given context. | [
"Replies",
"the",
"type",
"reference",
"for",
"the",
"given",
"name",
"in",
"the",
"given",
"context",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/AbstractBuilder.java#L189-L217 |
57,411 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/AbstractBuilder.java | AbstractBuilder.isSubTypeOf | @Pure
protected boolean isSubTypeOf(EObject context, JvmTypeReference subType, JvmTypeReference superType) {
if (isTypeReference(superType) && isTypeReference(subType)) {
StandardTypeReferenceOwner owner = new StandardTypeReferenceOwner(services, context);
LightweightTypeReferenceFactory factory = new Lightwei... | java | @Pure
protected boolean isSubTypeOf(EObject context, JvmTypeReference subType, JvmTypeReference superType) {
if (isTypeReference(superType) && isTypeReference(subType)) {
StandardTypeReferenceOwner owner = new StandardTypeReferenceOwner(services, context);
LightweightTypeReferenceFactory factory = new Lightwei... | [
"@",
"Pure",
"protected",
"boolean",
"isSubTypeOf",
"(",
"EObject",
"context",
",",
"JvmTypeReference",
"subType",
",",
"JvmTypeReference",
"superType",
")",
"{",
"if",
"(",
"isTypeReference",
"(",
"superType",
")",
"&&",
"isTypeReference",
"(",
"subType",
")",
... | Replies if the first parameter is a subtype of the second parameter.
@param context the context.
@param subType the subtype to test.
@param superType the expected super type.
@return the type reference. | [
"Replies",
"if",
"the",
"first",
"parameter",
"is",
"a",
"subtype",
"of",
"the",
"second",
"parameter",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/AbstractBuilder.java#L226-L235 |
57,412 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/AbstractBuilder.java | AbstractBuilder.isTypeReference | @Pure
protected boolean isTypeReference(JvmTypeReference typeReference) {
return (typeReference != null && !typeReference.eIsProxy()
&& typeReference.getType() != null && !typeReference.getType().eIsProxy());
} | java | @Pure
protected boolean isTypeReference(JvmTypeReference typeReference) {
return (typeReference != null && !typeReference.eIsProxy()
&& typeReference.getType() != null && !typeReference.getType().eIsProxy());
} | [
"@",
"Pure",
"protected",
"boolean",
"isTypeReference",
"(",
"JvmTypeReference",
"typeReference",
")",
"{",
"return",
"(",
"typeReference",
"!=",
"null",
"&&",
"!",
"typeReference",
".",
"eIsProxy",
"(",
")",
"&&",
"typeReference",
".",
"getType",
"(",
")",
"!... | Replies if the given object is a valid type reference. | [
"Replies",
"if",
"the",
"given",
"object",
"is",
"a",
"valid",
"type",
"reference",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/AbstractBuilder.java#L239-L243 |
57,413 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/AbstractBuilder.java | AbstractBuilder.isActionBodyAllowed | @Pure
protected boolean isActionBodyAllowed(XtendTypeDeclaration type) {
return !(type instanceof SarlAnnotationType
|| type instanceof SarlCapacity
|| type instanceof SarlEvent
|| type instanceof SarlInterface);
} | java | @Pure
protected boolean isActionBodyAllowed(XtendTypeDeclaration type) {
return !(type instanceof SarlAnnotationType
|| type instanceof SarlCapacity
|| type instanceof SarlEvent
|| type instanceof SarlInterface);
} | [
"@",
"Pure",
"protected",
"boolean",
"isActionBodyAllowed",
"(",
"XtendTypeDeclaration",
"type",
")",
"{",
"return",
"!",
"(",
"type",
"instanceof",
"SarlAnnotationType",
"||",
"type",
"instanceof",
"SarlCapacity",
"||",
"type",
"instanceof",
"SarlEvent",
"||",
"typ... | Replies if the type could contains functions with a body. | [
"Replies",
"if",
"the",
"type",
"could",
"contains",
"functions",
"with",
"a",
"body",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/AbstractBuilder.java#L281-L287 |
57,414 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/binding/InjectionRecommender2.java | InjectionRecommender2.recommendFrom | protected void recommendFrom(String label, Set<BindingElement> source, Set<Binding> current) {
this.bindingFactory.setName(getName());
boolean hasRecommend = false;
for (final BindingElement sourceElement : source) {
final Binding wrapElement = this.bindingFactory.toBinding(sourceElement);
if (!current.cont... | java | protected void recommendFrom(String label, Set<BindingElement> source, Set<Binding> current) {
this.bindingFactory.setName(getName());
boolean hasRecommend = false;
for (final BindingElement sourceElement : source) {
final Binding wrapElement = this.bindingFactory.toBinding(sourceElement);
if (!current.cont... | [
"protected",
"void",
"recommendFrom",
"(",
"String",
"label",
",",
"Set",
"<",
"BindingElement",
">",
"source",
",",
"Set",
"<",
"Binding",
">",
"current",
")",
"{",
"this",
".",
"bindingFactory",
".",
"setName",
"(",
"getName",
"(",
")",
")",
";",
"bool... | Provide the recommendations.
@param label the source of the recommendation.
@param source the source of recommendation.
@param current the current bindings. | [
"Provide",
"the",
"recommendations",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/binding/InjectionRecommender2.java#L220-L242 |
57,415 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/binding/InjectionRecommender2.java | InjectionRecommender2.recommend | protected void recommend(Class<?> superModule, GuiceModuleAccess currentModuleAccess) {
LOG.info(MessageFormat.format("Building injection configuration from {0}", //$NON-NLS-1$
superModule.getName()));
final Set<BindingElement> superBindings = new LinkedHashSet<>();
fillFrom(superBindings, superModule.getSupe... | java | protected void recommend(Class<?> superModule, GuiceModuleAccess currentModuleAccess) {
LOG.info(MessageFormat.format("Building injection configuration from {0}", //$NON-NLS-1$
superModule.getName()));
final Set<BindingElement> superBindings = new LinkedHashSet<>();
fillFrom(superBindings, superModule.getSupe... | [
"protected",
"void",
"recommend",
"(",
"Class",
"<",
"?",
">",
"superModule",
",",
"GuiceModuleAccess",
"currentModuleAccess",
")",
"{",
"LOG",
".",
"info",
"(",
"MessageFormat",
".",
"format",
"(",
"\"Building injection configuration from {0}\"",
",",
"//$NON-NLS-1$"... | Provide the recommendations for the given module.
@param superModule the super module to extract definitions from.
@param currentModuleAccess the accessor to the the current module's definition. | [
"Provide",
"the",
"recommendations",
"for",
"the",
"given",
"module",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/binding/InjectionRecommender2.java#L249-L259 |
57,416 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageFeatureNameConverter.java | ExtraLanguageFeatureNameConverter.getConversionTypeFor | public ConversionType getConversionTypeFor(XAbstractFeatureCall featureCall) {
if (this.conversions == null) {
this.conversions = initMapping();
}
final List<Object> receiver = new ArrayList<>();
AbstractExpressionGenerator.buildCallReceiver(
featureCall,
this.keywords.getThisKeywordLambda(),
thi... | java | public ConversionType getConversionTypeFor(XAbstractFeatureCall featureCall) {
if (this.conversions == null) {
this.conversions = initMapping();
}
final List<Object> receiver = new ArrayList<>();
AbstractExpressionGenerator.buildCallReceiver(
featureCall,
this.keywords.getThisKeywordLambda(),
thi... | [
"public",
"ConversionType",
"getConversionTypeFor",
"(",
"XAbstractFeatureCall",
"featureCall",
")",
"{",
"if",
"(",
"this",
".",
"conversions",
"==",
"null",
")",
"{",
"this",
".",
"conversions",
"=",
"initMapping",
"(",
")",
";",
"}",
"final",
"List",
"<",
... | Replies the type of conversion for the given feature call.
@param featureCall the feature call.
@return the type of conversion. | [
"Replies",
"the",
"type",
"of",
"conversion",
"for",
"the",
"given",
"feature",
"call",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageFeatureNameConverter.java#L152-L182 |
57,417 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageFeatureNameConverter.java | ExtraLanguageFeatureNameConverter.convertFeatureCall | public ConversionResult convertFeatureCall(String simpleName, JvmIdentifiableElement calledFeature, List<Object> leftOperand,
List<Object> receiver, List<XExpression> arguments) {
if (this.conversions == null) {
this.conversions = initMapping();
}
final List<Pair<FeaturePattern, FeatureReplacement>> struct ... | java | public ConversionResult convertFeatureCall(String simpleName, JvmIdentifiableElement calledFeature, List<Object> leftOperand,
List<Object> receiver, List<XExpression> arguments) {
if (this.conversions == null) {
this.conversions = initMapping();
}
final List<Pair<FeaturePattern, FeatureReplacement>> struct ... | [
"public",
"ConversionResult",
"convertFeatureCall",
"(",
"String",
"simpleName",
",",
"JvmIdentifiableElement",
"calledFeature",
",",
"List",
"<",
"Object",
">",
"leftOperand",
",",
"List",
"<",
"Object",
">",
"receiver",
",",
"List",
"<",
"XExpression",
">",
"arg... | Convert a full call to a feature.
<p>This function is supposed to change the two list parameters for reflecting the conversion.
@param simpleName the simple name of the feature to be called.
@param calledFeature the called feature.
@param leftOperand the description of the elements into the left operand (usually, bef... | [
"Convert",
"a",
"full",
"call",
"to",
"a",
"feature",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageFeatureNameConverter.java#L195-L212 |
57,418 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/ExtraLanguageFeatureNameConverter.java | ExtraLanguageFeatureNameConverter.convertDeclarationName | public String convertDeclarationName(String simpleName, SarlAction feature) {
assert simpleName != null;
assert feature != null;
final JvmOperation operation = this.associations.getDirectlyInferredOperation(feature);
if (operation != null) {
if (this.conversions == null) {
this.conversions = initMapping(... | java | public String convertDeclarationName(String simpleName, SarlAction feature) {
assert simpleName != null;
assert feature != null;
final JvmOperation operation = this.associations.getDirectlyInferredOperation(feature);
if (operation != null) {
if (this.conversions == null) {
this.conversions = initMapping(... | [
"public",
"String",
"convertDeclarationName",
"(",
"String",
"simpleName",
",",
"SarlAction",
"feature",
")",
"{",
"assert",
"simpleName",
"!=",
"null",
";",
"assert",
"feature",
"!=",
"null",
";",
"final",
"JvmOperation",
"operation",
"=",
"this",
".",
"associa... | Convert the given name for the given feature to its equivalent in the extra language.
<p>Usually, this function is called to convert the function's name when it is declared.
@param simpleName the feature's simple name to convert.
@param feature the JVM feature that corresponds to the name.
@return the conversion resu... | [
"Convert",
"the",
"given",
"name",
"for",
"the",
"given",
"feature",
"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/ExtraLanguageFeatureNameConverter.java#L274-L296 |
57,419 | sarl/sarl | contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/generator/PyInitializers.java | PyInitializers.getTypeConverterInitializer | public static IExtraLanguageConversionInitializer getTypeConverterInitializer() {
return it -> {
final List<Pair<String, String>> properties = loadPropertyFile(TYPE_CONVERSION_FILENAME);
if (!properties.isEmpty()) {
for (final Pair<String, String> entry : properties) {
final String source = Objects.toS... | java | public static IExtraLanguageConversionInitializer getTypeConverterInitializer() {
return it -> {
final List<Pair<String, String>> properties = loadPropertyFile(TYPE_CONVERSION_FILENAME);
if (!properties.isEmpty()) {
for (final Pair<String, String> entry : properties) {
final String source = Objects.toS... | [
"public",
"static",
"IExtraLanguageConversionInitializer",
"getTypeConverterInitializer",
"(",
")",
"{",
"return",
"it",
"->",
"{",
"final",
"List",
"<",
"Pair",
"<",
"String",
",",
"String",
">",
">",
"properties",
"=",
"loadPropertyFile",
"(",
"TYPE_CONVERSION_FIL... | Replies the initializer for the type converter.
@return the initializer. | [
"Replies",
"the",
"initializer",
"for",
"the",
"type",
"converter",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/generator/PyInitializers.java#L74-L92 |
57,420 | sarl/sarl | contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/generator/PyInitializers.java | PyInitializers.getFeatureNameConverterInitializer | public static IExtraLanguageConversionInitializer getFeatureNameConverterInitializer() {
return it -> {
final List<Pair<String, String>> properties = loadPropertyFile(FEATURE_CONVERSION_FILENAME);
if (!properties.isEmpty()) {
for (final Pair<String, String> entry : properties) {
final String source = O... | java | public static IExtraLanguageConversionInitializer getFeatureNameConverterInitializer() {
return it -> {
final List<Pair<String, String>> properties = loadPropertyFile(FEATURE_CONVERSION_FILENAME);
if (!properties.isEmpty()) {
for (final Pair<String, String> entry : properties) {
final String source = O... | [
"public",
"static",
"IExtraLanguageConversionInitializer",
"getFeatureNameConverterInitializer",
"(",
")",
"{",
"return",
"it",
"->",
"{",
"final",
"List",
"<",
"Pair",
"<",
"String",
",",
"String",
">",
">",
"properties",
"=",
"loadPropertyFile",
"(",
"FEATURE_CONV... | Replies the initializer for the feature name converter.
@return the initializer. | [
"Replies",
"the",
"initializer",
"for",
"the",
"feature",
"name",
"converter",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/contribs/io.sarl.pythongenerator/io.sarl.pythongenerator.generator/src/io/sarl/pythongenerator/generator/generator/PyInitializers.java#L98-L116 |
57,421 | sarl/sarl | main/internalmaven/sarl-maven-plugin/src/main/java/io/sarl/maven/compiler/MavenProjectAdapter.java | MavenProjectAdapter.install | public static void install(ResourceSet rs, MavenProject project) {
final Iterator<Adapter> iterator = rs.eAdapters().iterator();
while (iterator.hasNext()) {
if (iterator.next() instanceof MavenProjectAdapter) {
iterator.remove();
}
}
rs.eAdapters().add(new MavenProjectAdapter(project));
} | java | public static void install(ResourceSet rs, MavenProject project) {
final Iterator<Adapter> iterator = rs.eAdapters().iterator();
while (iterator.hasNext()) {
if (iterator.next() instanceof MavenProjectAdapter) {
iterator.remove();
}
}
rs.eAdapters().add(new MavenProjectAdapter(project));
} | [
"public",
"static",
"void",
"install",
"(",
"ResourceSet",
"rs",
",",
"MavenProject",
"project",
")",
"{",
"final",
"Iterator",
"<",
"Adapter",
">",
"iterator",
"=",
"rs",
".",
"eAdapters",
"(",
")",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"iterato... | Install the adapter.
@param rs the resource set that will receive the project.
@param project the project. | [
"Install",
"the",
"adapter",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/internalmaven/sarl-maven-plugin/src/main/java/io/sarl/maven/compiler/MavenProjectAdapter.java#L65-L73 |
57,422 | sarl/sarl | products/sarlc/src/main/java/io/sarl/lang/sarlc/configs/ProgressBarConfig.java | ProgressBarConfig.getConfiguration | public static ProgressBarConfig getConfiguration(ConfigurationFactory configFactory) {
assert configFactory != null;
return configFactory.config(ProgressBarConfig.class, PREFIX);
} | java | public static ProgressBarConfig getConfiguration(ConfigurationFactory configFactory) {
assert configFactory != null;
return configFactory.config(ProgressBarConfig.class, PREFIX);
} | [
"public",
"static",
"ProgressBarConfig",
"getConfiguration",
"(",
"ConfigurationFactory",
"configFactory",
")",
"{",
"assert",
"configFactory",
"!=",
"null",
";",
"return",
"configFactory",
".",
"config",
"(",
"ProgressBarConfig",
".",
"class",
",",
"PREFIX",
")",
"... | Replies the configuration factory for the logging.
@param configFactory the general configuration factory.
@return the logging configuration factory. | [
"Replies",
"the",
"configuration",
"factory",
"for",
"the",
"logging",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/products/sarlc/src/main/java/io/sarl/lang/sarlc/configs/ProgressBarConfig.java#L82-L85 |
57,423 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/TopElementBuilderFragment.java | TopElementBuilderFragment.getGeneratedTypeAccessor | @SuppressWarnings("static-method")
@Pure
protected String getGeneratedTypeAccessor(TypeReference generatedType) {
return "get" //$NON-NLS-1$
+ Strings.toFirstUpper(generatedType.getSimpleName())
+ "()"; //$NON-NLS-1$
} | java | @SuppressWarnings("static-method")
@Pure
protected String getGeneratedTypeAccessor(TypeReference generatedType) {
return "get" //$NON-NLS-1$
+ Strings.toFirstUpper(generatedType.getSimpleName())
+ "()"; //$NON-NLS-1$
} | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"@",
"Pure",
"protected",
"String",
"getGeneratedTypeAccessor",
"(",
"TypeReference",
"generatedType",
")",
"{",
"return",
"\"get\"",
"//$NON-NLS-1$",
"+",
"Strings",
".",
"toFirstUpper",
"(",
"generatedType",
".... | Replies the accessor to the generated type.
@param generatedType the name of the type.
@return the accessor name. | [
"Replies",
"the",
"accessor",
"to",
"the",
"generated",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/TopElementBuilderFragment.java#L80-L86 |
57,424 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/TopElementBuilderFragment.java | TopElementBuilderFragment.generateMembers | protected List<StringConcatenationClient> generateMembers(
Collection<CodeElementExtractor.ElementDescription> grammarContainers,
TopElementDescription description, boolean forInterface, boolean forAppender, boolean namedMembers) {
final List<StringConcatenationClient> clients = new ArrayList<>();
for (final ... | java | protected List<StringConcatenationClient> generateMembers(
Collection<CodeElementExtractor.ElementDescription> grammarContainers,
TopElementDescription description, boolean forInterface, boolean forAppender, boolean namedMembers) {
final List<StringConcatenationClient> clients = new ArrayList<>();
for (final ... | [
"protected",
"List",
"<",
"StringConcatenationClient",
">",
"generateMembers",
"(",
"Collection",
"<",
"CodeElementExtractor",
".",
"ElementDescription",
">",
"grammarContainers",
",",
"TopElementDescription",
"description",
",",
"boolean",
"forInterface",
",",
"boolean",
... | Generate the creators of members.
@param grammarContainers the containers from which the members' definitions could be retreived.
@param description the description of the top element.
@param forInterface <code>true</code> if the generation is for an interface.
@param forAppender <code>true</code> if the generation is... | [
"Generate",
"the",
"creators",
"of",
"members",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/TopElementBuilderFragment.java#L440-L448 |
57,425 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/TopElementBuilderFragment.java | TopElementBuilderFragment.generateMember | protected List<StringConcatenationClient> generateMember(CodeElementExtractor.ElementDescription memberDescription,
TopElementDescription topElementDescription, boolean forInterface, boolean forAppender, boolean namedMember) {
if (namedMember) {
return generateNamedMember(memberDescription, topElementDescriptio... | java | protected List<StringConcatenationClient> generateMember(CodeElementExtractor.ElementDescription memberDescription,
TopElementDescription topElementDescription, boolean forInterface, boolean forAppender, boolean namedMember) {
if (namedMember) {
return generateNamedMember(memberDescription, topElementDescriptio... | [
"protected",
"List",
"<",
"StringConcatenationClient",
">",
"generateMember",
"(",
"CodeElementExtractor",
".",
"ElementDescription",
"memberDescription",
",",
"TopElementDescription",
"topElementDescription",
",",
"boolean",
"forInterface",
",",
"boolean",
"forAppender",
","... | Generate a member from the grammar.
@param memberDescription the description of the member.
@param topElementDescription the description of the top element.
@param forInterface indicates if the generated code is for interfaces.
@param forAppender <code>true</code> if the generation is for the ISourceAppender.
@param n... | [
"Generate",
"a",
"member",
"from",
"the",
"grammar",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/TopElementBuilderFragment.java#L459-L465 |
57,426 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/TopElementBuilderFragment.java | TopElementBuilderFragment.generateTopElements | @SuppressWarnings("unlikely-arg-type")
protected List<TopElementDescription> generateTopElements(boolean forInterface, boolean forAppender) {
final Set<String> memberElements = determineMemberElements();
final Collection<EObject> topElementContainers = new ArrayList<>();
final List<TopElementDescription> topElem... | java | @SuppressWarnings("unlikely-arg-type")
protected List<TopElementDescription> generateTopElements(boolean forInterface, boolean forAppender) {
final Set<String> memberElements = determineMemberElements();
final Collection<EObject> topElementContainers = new ArrayList<>();
final List<TopElementDescription> topElem... | [
"@",
"SuppressWarnings",
"(",
"\"unlikely-arg-type\"",
")",
"protected",
"List",
"<",
"TopElementDescription",
">",
"generateTopElements",
"(",
"boolean",
"forInterface",
",",
"boolean",
"forAppender",
")",
"{",
"final",
"Set",
"<",
"String",
">",
"memberElements",
... | Generate top elements from the grammar.
@param forInterface indicates if the generated code is for interfaces.
@param forAppender <code>true</code> if the generation is for the ISourceAppender.
@return the top elements. | [
"Generate",
"top",
"elements",
"from",
"the",
"grammar",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/TopElementBuilderFragment.java#L853-L873 |
57,427 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLOperationHelper.java | SARLOperationHelper.isUnpureOperationPrototype | @SuppressWarnings("static-method")
protected boolean isUnpureOperationPrototype(XtendFunction operation) {
if (operation == null
|| operation.isAbstract() || operation.isDispatch() || operation.isNative()
|| operation.getExpression() == null) {
return true;
}
final XtendTypeDeclaration declaringType =... | java | @SuppressWarnings("static-method")
protected boolean isUnpureOperationPrototype(XtendFunction operation) {
if (operation == null
|| operation.isAbstract() || operation.isDispatch() || operation.isNative()
|| operation.getExpression() == null) {
return true;
}
final XtendTypeDeclaration declaringType =... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"boolean",
"isUnpureOperationPrototype",
"(",
"XtendFunction",
"operation",
")",
"{",
"if",
"(",
"operation",
"==",
"null",
"||",
"operation",
".",
"isAbstract",
"(",
")",
"||",
"operation",
".",... | Replies if the given function is purable according to its modifiers and prototype.
<p>Basically, an operation is purable if:<ul>
<li></li>
</ul>
@param operation the operation to test.
@return {@code true} if the operation is not pure according to the prototype. | [
"Replies",
"if",
"the",
"given",
"function",
"is",
"purable",
"according",
"to",
"its",
"modifiers",
"and",
"prototype",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLOperationHelper.java#L156-L165 |
57,428 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLOperationHelper.java | SARLOperationHelper.isPurableOperation | boolean isPurableOperation(XtendFunction operation, ISideEffectContext context) {
if (isUnpureOperationPrototype(operation)) {
return false;
}
if (this.nameValidator.isNamePatternForNotPureOperation(operation)) {
return false;
}
if (this.nameValidator.isNamePatternForPureOperation(operation)) {
retur... | java | boolean isPurableOperation(XtendFunction operation, ISideEffectContext context) {
if (isUnpureOperationPrototype(operation)) {
return false;
}
if (this.nameValidator.isNamePatternForNotPureOperation(operation)) {
return false;
}
if (this.nameValidator.isNamePatternForPureOperation(operation)) {
retur... | [
"boolean",
"isPurableOperation",
"(",
"XtendFunction",
"operation",
",",
"ISideEffectContext",
"context",
")",
"{",
"if",
"(",
"isUnpureOperationPrototype",
"(",
"operation",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"this",
".",
"nameValidator",
".... | Replies if the given is purable in the given context.
@param operation the operation to test.
@param context the context.
@return {@code true} if the operation could be marked as pure. | [
"Replies",
"if",
"the",
"given",
"is",
"purable",
"in",
"the",
"given",
"context",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLOperationHelper.java#L178-L195 |
57,429 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLOperationHelper.java | SARLOperationHelper.isReassignmentOperator | protected boolean isReassignmentOperator(XBinaryOperation operator) {
if (operator.isReassignFirstArgument()) {
return true;
}
final QualifiedName operatorName = this.operatorMapping.getOperator(
QualifiedName.create(operator.getFeature().getSimpleName()));
final QualifiedName compboundOperatorName = thi... | java | protected boolean isReassignmentOperator(XBinaryOperation operator) {
if (operator.isReassignFirstArgument()) {
return true;
}
final QualifiedName operatorName = this.operatorMapping.getOperator(
QualifiedName.create(operator.getFeature().getSimpleName()));
final QualifiedName compboundOperatorName = thi... | [
"protected",
"boolean",
"isReassignmentOperator",
"(",
"XBinaryOperation",
"operator",
")",
"{",
"if",
"(",
"operator",
".",
"isReassignFirstArgument",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"final",
"QualifiedName",
"operatorName",
"=",
"this",
".",
"o... | Replies if the given operator is a reassignment operator.
A reassignment operator changes its left operand.
@param operator the operator.
@return {@code true} if the operator changes its left operand. | [
"Replies",
"if",
"the",
"given",
"operator",
"is",
"a",
"reassignment",
"operator",
".",
"A",
"reassignment",
"operator",
"changes",
"its",
"left",
"operand",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLOperationHelper.java#L643-L651 |
57,430 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLOperationHelper.java | SARLOperationHelper.evaluatePureAnnotationAdapters | boolean evaluatePureAnnotationAdapters(org.eclipse.xtext.common.types.JvmOperation operation, ISideEffectContext context) {
int index = -1;
int i = 0;
for (final Adapter adapter : operation.eAdapters()) {
if (adapter.isAdapterForType(AnnotationJavaGenerationAdapter.class)) {
index = i;
break;
}
+... | java | boolean evaluatePureAnnotationAdapters(org.eclipse.xtext.common.types.JvmOperation operation, ISideEffectContext context) {
int index = -1;
int i = 0;
for (final Adapter adapter : operation.eAdapters()) {
if (adapter.isAdapterForType(AnnotationJavaGenerationAdapter.class)) {
index = i;
break;
}
+... | [
"boolean",
"evaluatePureAnnotationAdapters",
"(",
"org",
".",
"eclipse",
".",
"xtext",
".",
"common",
".",
"types",
".",
"JvmOperation",
"operation",
",",
"ISideEffectContext",
"context",
")",
"{",
"int",
"index",
"=",
"-",
"1",
";",
"int",
"i",
"=",
"0",
... | Evalute the Pure annotatino adapters.
@param operation the operation to adapt.
@param context the context.
@return {@code true} if the pure annotation could be associated to the given operation. | [
"Evalute",
"the",
"Pure",
"annotatino",
"adapters",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/SARLOperationHelper.java#L793-L809 |
57,431 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLLabelProvider.java | SARLLabelProvider.handleImageDescriptorError | protected ImageDescriptor handleImageDescriptorError(Object[] params, Throwable exception) {
if (exception instanceof NullPointerException) {
final Object defaultImage = getDefaultImage();
if (defaultImage instanceof ImageDescriptor) {
return (ImageDescriptor) defaultImage;
}
if (defaultImage instance... | java | protected ImageDescriptor handleImageDescriptorError(Object[] params, Throwable exception) {
if (exception instanceof NullPointerException) {
final Object defaultImage = getDefaultImage();
if (defaultImage instanceof ImageDescriptor) {
return (ImageDescriptor) defaultImage;
}
if (defaultImage instance... | [
"protected",
"ImageDescriptor",
"handleImageDescriptorError",
"(",
"Object",
"[",
"]",
"params",
",",
"Throwable",
"exception",
")",
"{",
"if",
"(",
"exception",
"instanceof",
"NullPointerException",
")",
"{",
"final",
"Object",
"defaultImage",
"=",
"getDefaultImage",... | Invoked when an image descriptor cannot be found.
@param params the parameters given to the method polymorphic dispatcher.
@param exception the cause of the error.
@return the image descriptor for the error. | [
"Invoked",
"when",
"an",
"image",
"descriptor",
"cannot",
"be",
"found",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLLabelProvider.java#L162-L174 |
57,432 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLLabelProvider.java | SARLLabelProvider.signatureWithoutReturnType | protected StyledString signatureWithoutReturnType(StyledString simpleName, JvmExecutable element) {
return simpleName.append(this.uiStrings.styledParameters(element));
} | java | protected StyledString signatureWithoutReturnType(StyledString simpleName, JvmExecutable element) {
return simpleName.append(this.uiStrings.styledParameters(element));
} | [
"protected",
"StyledString",
"signatureWithoutReturnType",
"(",
"StyledString",
"simpleName",
",",
"JvmExecutable",
"element",
")",
"{",
"return",
"simpleName",
".",
"append",
"(",
"this",
".",
"uiStrings",
".",
"styledParameters",
"(",
"element",
")",
")",
";",
"... | Create a string representation of a signature without the return type.
@param simpleName the action name.
@param element the executable element.
@return the signature. | [
"Create",
"a",
"string",
"representation",
"of",
"a",
"signature",
"without",
"the",
"return",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLLabelProvider.java#L182-L184 |
57,433 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLLabelProvider.java | SARLLabelProvider.getHumanReadableName | protected StyledString getHumanReadableName(JvmTypeReference reference) {
if (reference == null) {
return new StyledString("Object"); //$NON-NLS-1$
}
final String name = this.uiStrings.referenceToString(reference, "Object"); //$NON-NLS-1$
return convertToStyledString(name);
} | java | protected StyledString getHumanReadableName(JvmTypeReference reference) {
if (reference == null) {
return new StyledString("Object"); //$NON-NLS-1$
}
final String name = this.uiStrings.referenceToString(reference, "Object"); //$NON-NLS-1$
return convertToStyledString(name);
} | [
"protected",
"StyledString",
"getHumanReadableName",
"(",
"JvmTypeReference",
"reference",
")",
"{",
"if",
"(",
"reference",
"==",
"null",
")",
"{",
"return",
"new",
"StyledString",
"(",
"\"Object\"",
")",
";",
"//$NON-NLS-1$",
"}",
"final",
"String",
"name",
"=... | Create a string representation of the given element.
@param reference the element.
@return the string representation. | [
"Create",
"a",
"string",
"representation",
"of",
"the",
"given",
"element",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/labeling/SARLLabelProvider.java#L216-L222 |
57,434 | sarl/sarl | main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/wizards/importproject/ImportMavenSarlProjectsJob.java | ImportMavenSarlProjectsJob.createOperation | protected AbstractCreateMavenProjectsOperation createOperation() {
return new AbstractCreateMavenProjectsOperation() {
@SuppressWarnings("synthetic-access")
@Override
protected List<IProject> doCreateMavenProjects(IProgressMonitor progressMonitor) throws CoreException {
final SubMonitor monitor = SubMoni... | java | protected AbstractCreateMavenProjectsOperation createOperation() {
return new AbstractCreateMavenProjectsOperation() {
@SuppressWarnings("synthetic-access")
@Override
protected List<IProject> doCreateMavenProjects(IProgressMonitor progressMonitor) throws CoreException {
final SubMonitor monitor = SubMoni... | [
"protected",
"AbstractCreateMavenProjectsOperation",
"createOperation",
"(",
")",
"{",
"return",
"new",
"AbstractCreateMavenProjectsOperation",
"(",
")",
"{",
"@",
"SuppressWarnings",
"(",
"\"synthetic-access\"",
")",
"@",
"Override",
"protected",
"List",
"<",
"IProject",... | Create the operation for creating the projects.
@return the operation. | [
"Create",
"the",
"operation",
"for",
"creating",
"the",
"projects",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/wizards/importproject/ImportMavenSarlProjectsJob.java#L114-L134 |
57,435 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLArgumentsTab.java | SARLArgumentsTab.createSREArgsBlock | protected void createSREArgsBlock(Composite parent, Font font) {
// Create the block for the SRE
final Group group = new Group(parent, SWT.NONE);
group.setFont(font);
final GridLayout layout = new GridLayout();
group.setLayout(layout);
group.setLayoutData(new GridData(GridData.FILL_BOTH));
// Move the SRE... | java | protected void createSREArgsBlock(Composite parent, Font font) {
// Create the block for the SRE
final Group group = new Group(parent, SWT.NONE);
group.setFont(font);
final GridLayout layout = new GridLayout();
group.setLayout(layout);
group.setLayoutData(new GridData(GridData.FILL_BOTH));
// Move the SRE... | [
"protected",
"void",
"createSREArgsBlock",
"(",
"Composite",
"parent",
",",
"Font",
"font",
")",
"{",
"// Create the block for the SRE",
"final",
"Group",
"group",
"=",
"new",
"Group",
"(",
"parent",
",",
"SWT",
".",
"NONE",
")",
";",
"group",
".",
"setFont",
... | Create the block for the SRE arguments.
@param parent the parent composite.
@param font the font for the block. | [
"Create",
"the",
"block",
"for",
"the",
"SRE",
"arguments",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLArgumentsTab.java#L103-L117 |
57,436 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/SarlConfiguration.java | SarlConfiguration.resetPackageList | private void resetPackageList() {
final Set<PackageDoc> set = new TreeSet<>();
for (final PackageDoc pack : this.root.specifiedPackages()) {
set.add(pack);
}
for (final ClassDoc clazz : this.root.specifiedClasses()) {
set.add(clazz.containingPackage());
}
... | java | private void resetPackageList() {
final Set<PackageDoc> set = new TreeSet<>();
for (final PackageDoc pack : this.root.specifiedPackages()) {
set.add(pack);
}
for (final ClassDoc clazz : this.root.specifiedClasses()) {
set.add(clazz.containingPackage());
}
... | [
"private",
"void",
"resetPackageList",
"(",
")",
"{",
"final",
"Set",
"<",
"PackageDoc",
">",
"set",
"=",
"new",
"TreeSet",
"<>",
"(",
")",
";",
"for",
"(",
"final",
"PackageDoc",
"pack",
":",
"this",
".",
"root",
".",
"specifiedPackages",
"(",
")",
")... | Reset the list of packages for avoiding duplicates.
<p>The inherited implementation uses a HashSet that allow
the same package to be stored multiple times. Here,
we uses a TreeSet for using the "compareTo" mechanism. | [
"Reset",
"the",
"list",
"of",
"packages",
"for",
"avoiding",
"duplicates",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/SarlConfiguration.java#L118-L127 |
57,437 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java | AbstractGeneratorConfigurationBlock.getOutputConfiguration | protected OutputConfiguration getOutputConfiguration() {
final Set<OutputConfiguration> outputConfigurations = this.configurationProvider.getOutputConfigurations(getProject());
final String expectedName = ExtraLanguageOutputConfigurations.createOutputConfigurationName(getPreferenceID());
return Iterables.find(out... | java | protected OutputConfiguration getOutputConfiguration() {
final Set<OutputConfiguration> outputConfigurations = this.configurationProvider.getOutputConfigurations(getProject());
final String expectedName = ExtraLanguageOutputConfigurations.createOutputConfigurationName(getPreferenceID());
return Iterables.find(out... | [
"protected",
"OutputConfiguration",
"getOutputConfiguration",
"(",
")",
"{",
"final",
"Set",
"<",
"OutputConfiguration",
">",
"outputConfigurations",
"=",
"this",
".",
"configurationProvider",
".",
"getOutputConfigurations",
"(",
"getProject",
"(",
")",
")",
";",
"fin... | Replies the output configuration associated to the extra language generator.
@return the output configuration. | [
"Replies",
"the",
"output",
"configuration",
"associated",
"to",
"the",
"extra",
"language",
"generator",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java#L259-L263 |
57,438 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java | AbstractGeneratorConfigurationBlock.createTypeConversionSectionItems | protected void createTypeConversionSectionItems(Composite parentComposite) {
final TypeConversionTable typeConversionTable = new TypeConversionTable(
this, getTargetLanguageImage(),
getPreferenceStore(), getPreferenceID());
typeConversionTable.doCreate(parentComposite, getDialogSettings());
makeScrollable... | java | protected void createTypeConversionSectionItems(Composite parentComposite) {
final TypeConversionTable typeConversionTable = new TypeConversionTable(
this, getTargetLanguageImage(),
getPreferenceStore(), getPreferenceID());
typeConversionTable.doCreate(parentComposite, getDialogSettings());
makeScrollable... | [
"protected",
"void",
"createTypeConversionSectionItems",
"(",
"Composite",
"parentComposite",
")",
"{",
"final",
"TypeConversionTable",
"typeConversionTable",
"=",
"new",
"TypeConversionTable",
"(",
"this",
",",
"getTargetLanguageImage",
"(",
")",
",",
"getPreferenceStore",... | Create the items for the "Type Conversion" section.
@param parentComposite the parent. | [
"Create",
"the",
"items",
"for",
"the",
"Type",
"Conversion",
"section",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java#L315-L322 |
57,439 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java | AbstractGeneratorConfigurationBlock.makeScrollableCompositeAware | protected static void makeScrollableCompositeAware(Control control) {
final ScrolledPageContent parentScrolledComposite = getParentScrolledComposite(control);
if (parentScrolledComposite != null) {
parentScrolledComposite.adaptChild(control);
}
} | java | protected static void makeScrollableCompositeAware(Control control) {
final ScrolledPageContent parentScrolledComposite = getParentScrolledComposite(control);
if (parentScrolledComposite != null) {
parentScrolledComposite.adaptChild(control);
}
} | [
"protected",
"static",
"void",
"makeScrollableCompositeAware",
"(",
"Control",
"control",
")",
"{",
"final",
"ScrolledPageContent",
"parentScrolledComposite",
"=",
"getParentScrolledComposite",
"(",
"control",
")",
";",
"if",
"(",
"parentScrolledComposite",
"!=",
"null",
... | Make the given control awaer of the scrolling events.
@param control the control to adapt to. | [
"Make",
"the",
"given",
"control",
"awaer",
"of",
"the",
"scrolling",
"events",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java#L339-L344 |
57,440 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java | AbstractGeneratorConfigurationBlock.createFeatureConversionSectionItems | protected void createFeatureConversionSectionItems(Composite parentComposite) {
final FeatureNameConversionTable typeConversionTable = new FeatureNameConversionTable(
this, getTargetLanguageImage(),
getPreferenceStore(), getPreferenceID());
typeConversionTable.doCreate(parentComposite, getDialogSettings());... | java | protected void createFeatureConversionSectionItems(Composite parentComposite) {
final FeatureNameConversionTable typeConversionTable = new FeatureNameConversionTable(
this, getTargetLanguageImage(),
getPreferenceStore(), getPreferenceID());
typeConversionTable.doCreate(parentComposite, getDialogSettings());... | [
"protected",
"void",
"createFeatureConversionSectionItems",
"(",
"Composite",
"parentComposite",
")",
"{",
"final",
"FeatureNameConversionTable",
"typeConversionTable",
"=",
"new",
"FeatureNameConversionTable",
"(",
"this",
",",
"getTargetLanguageImage",
"(",
")",
",",
"get... | Create the items for the "Feature Conversion" section.
@param parentComposite the parent. | [
"Create",
"the",
"items",
"for",
"the",
"Feature",
"Conversion",
"section",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java#L350-L357 |
57,441 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java | AbstractGeneratorConfigurationBlock.createExperimentalWarningMessage | protected void createExperimentalWarningMessage(Composite composite) {
final Label dangerIcon = new Label(composite, SWT.WRAP);
dangerIcon.setImage(getImage(IMAGE));
final GridData labelLayoutData = new GridData();
labelLayoutData.horizontalIndent = 0;
dangerIcon.setLayoutData(labelLayoutData);
} | java | protected void createExperimentalWarningMessage(Composite composite) {
final Label dangerIcon = new Label(composite, SWT.WRAP);
dangerIcon.setImage(getImage(IMAGE));
final GridData labelLayoutData = new GridData();
labelLayoutData.horizontalIndent = 0;
dangerIcon.setLayoutData(labelLayoutData);
} | [
"protected",
"void",
"createExperimentalWarningMessage",
"(",
"Composite",
"composite",
")",
"{",
"final",
"Label",
"dangerIcon",
"=",
"new",
"Label",
"(",
"composite",
",",
"SWT",
".",
"WRAP",
")",
";",
"dangerIcon",
".",
"setImage",
"(",
"getImage",
"(",
"IM... | Create the "experimental" warning message.
@param composite the parent. | [
"Create",
"the",
"experimental",
"warning",
"message",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java#L369-L375 |
57,442 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java | AbstractGeneratorConfigurationBlock.getImage | protected final Image getImage(String imagePath) {
final ImageDescriptor descriptor = getImageDescriptor(imagePath);
if (descriptor == null) {
return null;
}
return descriptor.createImage();
} | java | protected final Image getImage(String imagePath) {
final ImageDescriptor descriptor = getImageDescriptor(imagePath);
if (descriptor == null) {
return null;
}
return descriptor.createImage();
} | [
"protected",
"final",
"Image",
"getImage",
"(",
"String",
"imagePath",
")",
"{",
"final",
"ImageDescriptor",
"descriptor",
"=",
"getImageDescriptor",
"(",
"imagePath",
")",
";",
"if",
"(",
"descriptor",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"re... | Replies the image.
@param imagePath the image path.
@return the image. | [
"Replies",
"the",
"image",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java#L382-L388 |
57,443 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java | AbstractGeneratorConfigurationBlock.getImageDescriptor | @SuppressWarnings("static-method")
protected ImageDescriptor getImageDescriptor(String imagePath) {
final LangActivator activator = LangActivator.getInstance();
final ImageRegistry registry = activator.getImageRegistry();
ImageDescriptor descriptor = registry.getDescriptor(imagePath);
if (descriptor == null) {... | java | @SuppressWarnings("static-method")
protected ImageDescriptor getImageDescriptor(String imagePath) {
final LangActivator activator = LangActivator.getInstance();
final ImageRegistry registry = activator.getImageRegistry();
ImageDescriptor descriptor = registry.getDescriptor(imagePath);
if (descriptor == null) {... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"ImageDescriptor",
"getImageDescriptor",
"(",
"String",
"imagePath",
")",
"{",
"final",
"LangActivator",
"activator",
"=",
"LangActivator",
".",
"getInstance",
"(",
")",
";",
"final",
"ImageRegistry"... | Replies the image descriptor.
@param imagePath the image path.
@return the image descriptor. | [
"Replies",
"the",
"image",
"descriptor",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java#L395-L407 |
57,444 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java | AbstractGeneratorConfigurationBlock.createGeneralSectionItems | protected void createGeneralSectionItems(Composite composite) {
addCheckBox(composite, getActivationText(),
ExtraLanguagePreferenceAccess.getPrefixedKey(getPreferenceID(),
ExtraLanguagePreferenceAccess.ENABLED_PROPERTY),
BOOLEAN_VALUES, 0);
} | java | protected void createGeneralSectionItems(Composite composite) {
addCheckBox(composite, getActivationText(),
ExtraLanguagePreferenceAccess.getPrefixedKey(getPreferenceID(),
ExtraLanguagePreferenceAccess.ENABLED_PROPERTY),
BOOLEAN_VALUES, 0);
} | [
"protected",
"void",
"createGeneralSectionItems",
"(",
"Composite",
"composite",
")",
"{",
"addCheckBox",
"(",
"composite",
",",
"getActivationText",
"(",
")",
",",
"ExtraLanguagePreferenceAccess",
".",
"getPrefixedKey",
"(",
"getPreferenceID",
"(",
")",
",",
"ExtraLa... | Create the items for the "General" section.
@param composite the parent. | [
"Create",
"the",
"items",
"for",
"the",
"General",
"section",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java#L413-L418 |
57,445 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java | AbstractGeneratorConfigurationBlock.createOutputSectionItems | protected void createOutputSectionItems(Composite composite, OutputConfiguration outputConfiguration) {
final Text defaultDirectoryField = addTextField(composite,
org.eclipse.xtext.builder.preferences.Messages.OutputConfigurationPage_Directory,
BuilderPreferenceAccess.getKey(outputConfiguration,
Eclipse... | java | protected void createOutputSectionItems(Composite composite, OutputConfiguration outputConfiguration) {
final Text defaultDirectoryField = addTextField(composite,
org.eclipse.xtext.builder.preferences.Messages.OutputConfigurationPage_Directory,
BuilderPreferenceAccess.getKey(outputConfiguration,
Eclipse... | [
"protected",
"void",
"createOutputSectionItems",
"(",
"Composite",
"composite",
",",
"OutputConfiguration",
"outputConfiguration",
")",
"{",
"final",
"Text",
"defaultDirectoryField",
"=",
"addTextField",
"(",
"composite",
",",
"org",
".",
"eclipse",
".",
"xtext",
".",... | Create the items for the "Output" section.
@param composite the parent.
@param outputConfiguration the output configuration. | [
"Create",
"the",
"items",
"for",
"the",
"Output",
"section",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/properties/AbstractGeneratorConfigurationBlock.java#L494-L556 |
57,446 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/explorer/SARLPackageExplorerPart.java | SARLPackageExplorerPart.getDialogSettings | protected IDialogSettings getDialogSettings() {
try {
return (IDialogSettings) this.reflect.get(this, "fDialogSettings"); //$NON-NLS-1$
} catch (SecurityException | NoSuchFieldException | IllegalArgumentException | IllegalAccessException e) {
throw new Error(e);
}
} | java | protected IDialogSettings getDialogSettings() {
try {
return (IDialogSettings) this.reflect.get(this, "fDialogSettings"); //$NON-NLS-1$
} catch (SecurityException | NoSuchFieldException | IllegalArgumentException | IllegalAccessException e) {
throw new Error(e);
}
} | [
"protected",
"IDialogSettings",
"getDialogSettings",
"(",
")",
"{",
"try",
"{",
"return",
"(",
"IDialogSettings",
")",
"this",
".",
"reflect",
".",
"get",
"(",
"this",
",",
"\"fDialogSettings\"",
")",
";",
"//$NON-NLS-1$",
"}",
"catch",
"(",
"SecurityException",... | Replies the dialog settings for this view.
@return the settings. | [
"Replies",
"the",
"dialog",
"settings",
"for",
"this",
"view",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/explorer/SARLPackageExplorerPart.java#L128-L134 |
57,447 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/explorer/SARLPackageExplorerPart.java | SARLPackageExplorerPart.restoreFilterAndSorter | protected void restoreFilterAndSorter() {
final ProblemTreeViewer viewer = getViewer();
viewer.addFilter(new EmptyInnerPackageFilter());
viewer.addFilter(new HiddenFileFilter());
} | java | protected void restoreFilterAndSorter() {
final ProblemTreeViewer viewer = getViewer();
viewer.addFilter(new EmptyInnerPackageFilter());
viewer.addFilter(new HiddenFileFilter());
} | [
"protected",
"void",
"restoreFilterAndSorter",
"(",
")",
"{",
"final",
"ProblemTreeViewer",
"viewer",
"=",
"getViewer",
"(",
")",
";",
"viewer",
".",
"addFilter",
"(",
"new",
"EmptyInnerPackageFilter",
"(",
")",
")",
";",
"viewer",
".",
"addFilter",
"(",
"new"... | Restore the filters and sorters. | [
"Restore",
"the",
"filters",
"and",
"sorters",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/explorer/SARLPackageExplorerPart.java#L182-L186 |
57,448 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/explorer/SARLPackageExplorerPart.java | SARLPackageExplorerPart.internalResetLabelProvider | protected void internalResetLabelProvider() {
try {
final PackageExplorerLabelProvider provider = createLabelProvider();
this.reflect.set(this, "fLabelProvider", provider); //$NON-NLS-1$
provider.setIsFlatLayout(isFlatLayout());
final DecoratingJavaLabelProvider decoratingProvider = new DecoratingJavaLabe... | java | protected void internalResetLabelProvider() {
try {
final PackageExplorerLabelProvider provider = createLabelProvider();
this.reflect.set(this, "fLabelProvider", provider); //$NON-NLS-1$
provider.setIsFlatLayout(isFlatLayout());
final DecoratingJavaLabelProvider decoratingProvider = new DecoratingJavaLabe... | [
"protected",
"void",
"internalResetLabelProvider",
"(",
")",
"{",
"try",
"{",
"final",
"PackageExplorerLabelProvider",
"provider",
"=",
"createLabelProvider",
"(",
")",
";",
"this",
".",
"reflect",
".",
"set",
"(",
"this",
",",
"\"fLabelProvider\"",
",",
"provider... | Reset the label provider for using the SARL one. | [
"Reset",
"the",
"label",
"provider",
"for",
"using",
"the",
"SARL",
"one",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/explorer/SARLPackageExplorerPart.java#L197-L210 |
57,449 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/explorer/SARLPackageExplorerPart.java | SARLPackageExplorerPart.getViewer | protected ProblemTreeViewer getViewer() {
try {
return (ProblemTreeViewer) this.reflect.get(this, "fViewer"); //$NON-NLS-1$
} catch (SecurityException | NoSuchFieldException | IllegalArgumentException | IllegalAccessException e) {
throw new Error(e);
}
} | java | protected ProblemTreeViewer getViewer() {
try {
return (ProblemTreeViewer) this.reflect.get(this, "fViewer"); //$NON-NLS-1$
} catch (SecurityException | NoSuchFieldException | IllegalArgumentException | IllegalAccessException e) {
throw new Error(e);
}
} | [
"protected",
"ProblemTreeViewer",
"getViewer",
"(",
")",
"{",
"try",
"{",
"return",
"(",
"ProblemTreeViewer",
")",
"this",
".",
"reflect",
".",
"get",
"(",
"this",
",",
"\"fViewer\"",
")",
";",
"//$NON-NLS-1$",
"}",
"catch",
"(",
"SecurityException",
"|",
"N... | Replies the viewer.
@return the viewer. | [
"Replies",
"the",
"viewer",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/explorer/SARLPackageExplorerPart.java#L228-L234 |
57,450 | sarl/sarl | main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlEnumerationBuilderImpl.java | SarlEnumerationBuilderImpl.addSarlEnumLiteral | public ISarlEnumLiteralBuilder addSarlEnumLiteral(String name) {
ISarlEnumLiteralBuilder builder = this.iSarlEnumLiteralBuilderProvider.get();
builder.eInit(getSarlEnumeration(), name, getTypeResolutionContext());
return builder;
} | java | public ISarlEnumLiteralBuilder addSarlEnumLiteral(String name) {
ISarlEnumLiteralBuilder builder = this.iSarlEnumLiteralBuilderProvider.get();
builder.eInit(getSarlEnumeration(), name, getTypeResolutionContext());
return builder;
} | [
"public",
"ISarlEnumLiteralBuilder",
"addSarlEnumLiteral",
"(",
"String",
"name",
")",
"{",
"ISarlEnumLiteralBuilder",
"builder",
"=",
"this",
".",
"iSarlEnumLiteralBuilderProvider",
".",
"get",
"(",
")",
";",
"builder",
".",
"eInit",
"(",
"getSarlEnumeration",
"(",
... | Create a SarlEnumLiteral.
@param name the name of the SarlEnumLiteral.
@return the builder. | [
"Create",
"a",
"SarlEnumLiteral",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlEnumerationBuilderImpl.java#L141-L145 |
57,451 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/proxy/ProgrammaticWrappingProxyInstaller.java | ProgrammaticWrappingProxyInstaller.wrap | public ClassDoc wrap(ClassDoc source) {
if (source == null || source instanceof Proxy<?> || !(source instanceof ClassDocImpl)) {
return source;
}
return new ClassDocWrapper((ClassDocImpl) source);
} | java | public ClassDoc wrap(ClassDoc source) {
if (source == null || source instanceof Proxy<?> || !(source instanceof ClassDocImpl)) {
return source;
}
return new ClassDocWrapper((ClassDocImpl) source);
} | [
"public",
"ClassDoc",
"wrap",
"(",
"ClassDoc",
"source",
")",
"{",
"if",
"(",
"source",
"==",
"null",
"||",
"source",
"instanceof",
"Proxy",
"<",
"?",
">",
"||",
"!",
"(",
"source",
"instanceof",
"ClassDocImpl",
")",
")",
"{",
"return",
"source",
";",
... | Wrap a class doc.
@param source the source
@return the wrapper. | [
"Wrap",
"a",
"class",
"doc",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/proxy/ProgrammaticWrappingProxyInstaller.java#L162-L167 |
57,452 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/proxy/ProgrammaticWrappingProxyInstaller.java | ProgrammaticWrappingProxyInstaller.wrap | public FieldDoc wrap(FieldDoc source) {
if (source == null || source instanceof Proxy<?> || !(source instanceof FieldDocImpl)) {
return source;
}
return new FieldDocWrapper((FieldDocImpl) source);
} | java | public FieldDoc wrap(FieldDoc source) {
if (source == null || source instanceof Proxy<?> || !(source instanceof FieldDocImpl)) {
return source;
}
return new FieldDocWrapper((FieldDocImpl) source);
} | [
"public",
"FieldDoc",
"wrap",
"(",
"FieldDoc",
"source",
")",
"{",
"if",
"(",
"source",
"==",
"null",
"||",
"source",
"instanceof",
"Proxy",
"<",
"?",
">",
"||",
"!",
"(",
"source",
"instanceof",
"FieldDocImpl",
")",
")",
"{",
"return",
"source",
";",
... | Wrap a field doc.
@param source the source
@return the wrapper. | [
"Wrap",
"a",
"field",
"doc",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/proxy/ProgrammaticWrappingProxyInstaller.java#L230-L235 |
57,453 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/proxy/ProgrammaticWrappingProxyInstaller.java | ProgrammaticWrappingProxyInstaller.wrap | public ConstructorDoc wrap(ConstructorDoc source) {
if (source == null || source instanceof Proxy<?> || !(source instanceof ConstructorDocImpl)) {
return source;
}
return new ConstructorDocWrapper((ConstructorDocImpl) source);
} | java | public ConstructorDoc wrap(ConstructorDoc source) {
if (source == null || source instanceof Proxy<?> || !(source instanceof ConstructorDocImpl)) {
return source;
}
return new ConstructorDocWrapper((ConstructorDocImpl) source);
} | [
"public",
"ConstructorDoc",
"wrap",
"(",
"ConstructorDoc",
"source",
")",
"{",
"if",
"(",
"source",
"==",
"null",
"||",
"source",
"instanceof",
"Proxy",
"<",
"?",
">",
"||",
"!",
"(",
"source",
"instanceof",
"ConstructorDocImpl",
")",
")",
"{",
"return",
"... | Wrap a constructor doc.
@param source the source
@return the wrapper. | [
"Wrap",
"a",
"constructor",
"doc",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/proxy/ProgrammaticWrappingProxyInstaller.java#L260-L265 |
57,454 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/proxy/ProgrammaticWrappingProxyInstaller.java | ProgrammaticWrappingProxyInstaller.wrap | public MethodDoc wrap(MethodDoc source) {
if (source == null || source instanceof Proxy<?> || !(source instanceof MethodDocImpl)) {
return source;
}
return new MethodDocWrapper((MethodDocImpl) source);
} | java | public MethodDoc wrap(MethodDoc source) {
if (source == null || source instanceof Proxy<?> || !(source instanceof MethodDocImpl)) {
return source;
}
return new MethodDocWrapper((MethodDocImpl) source);
} | [
"public",
"MethodDoc",
"wrap",
"(",
"MethodDoc",
"source",
")",
"{",
"if",
"(",
"source",
"==",
"null",
"||",
"source",
"instanceof",
"Proxy",
"<",
"?",
">",
"||",
"!",
"(",
"source",
"instanceof",
"MethodDocImpl",
")",
")",
"{",
"return",
"source",
";",... | Wrap a method doc.
@param source the source
@return the wrapper. | [
"Wrap",
"a",
"method",
"doc",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/proxy/ProgrammaticWrappingProxyInstaller.java#L290-L295 |
57,455 | sarl/sarl | docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/proxy/ProgrammaticWrappingProxyInstaller.java | ProgrammaticWrappingProxyInstaller.wrap | public AnnotationTypeElementDoc wrap(AnnotationTypeElementDoc source) {
if (source == null || source instanceof Proxy<?> || !(source instanceof AnnotationTypeElementDocImpl)) {
return source;
}
return new AnnotationTypeElementDocWrapper((AnnotationTypeElementDocImpl) source);
} | java | public AnnotationTypeElementDoc wrap(AnnotationTypeElementDoc source) {
if (source == null || source instanceof Proxy<?> || !(source instanceof AnnotationTypeElementDocImpl)) {
return source;
}
return new AnnotationTypeElementDocWrapper((AnnotationTypeElementDocImpl) source);
} | [
"public",
"AnnotationTypeElementDoc",
"wrap",
"(",
"AnnotationTypeElementDoc",
"source",
")",
"{",
"if",
"(",
"source",
"==",
"null",
"||",
"source",
"instanceof",
"Proxy",
"<",
"?",
">",
"||",
"!",
"(",
"source",
"instanceof",
"AnnotationTypeElementDocImpl",
")",... | Wrap a annotation type element doc.
@param source the source
@return the wrapper. | [
"Wrap",
"a",
"annotation",
"type",
"element",
"doc",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/proxy/ProgrammaticWrappingProxyInstaller.java#L332-L337 |
57,456 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/extensions/time/TimeExtensions.java | TimeExtensions.seconds | @Pure
@Inline(value = "(long) (($1).doubleValue() * $2.MILLIS_IN_SECOND)", imported = {TimeExtensions.class})
public static long seconds(Number secs) {
return (long) (secs.doubleValue() * MILLIS_IN_SECOND);
} | java | @Pure
@Inline(value = "(long) (($1).doubleValue() * $2.MILLIS_IN_SECOND)", imported = {TimeExtensions.class})
public static long seconds(Number secs) {
return (long) (secs.doubleValue() * MILLIS_IN_SECOND);
} | [
"@",
"Pure",
"@",
"Inline",
"(",
"value",
"=",
"\"(long) (($1).doubleValue() * $2.MILLIS_IN_SECOND)\"",
",",
"imported",
"=",
"{",
"TimeExtensions",
".",
"class",
"}",
")",
"public",
"static",
"long",
"seconds",
"(",
"Number",
"secs",
")",
"{",
"return",
"(",
... | Convert seconds to milliseconds.
@param secs number of seconds to convert.
@return the number of milliseconds in seconds. | [
"Convert",
"seconds",
"to",
"milliseconds",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/extensions/time/TimeExtensions.java#L156-L160 |
57,457 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/extensions/time/TimeExtensions.java | TimeExtensions.minutes | @Pure
@Inline(value = "(long) (($1).doubleValue() * $2.MILLIS_IN_MINUTE)", imported = {TimeExtensions.class})
public static long minutes(Number mins) {
return (long) (mins.doubleValue() * MILLIS_IN_MINUTE);
} | java | @Pure
@Inline(value = "(long) (($1).doubleValue() * $2.MILLIS_IN_MINUTE)", imported = {TimeExtensions.class})
public static long minutes(Number mins) {
return (long) (mins.doubleValue() * MILLIS_IN_MINUTE);
} | [
"@",
"Pure",
"@",
"Inline",
"(",
"value",
"=",
"\"(long) (($1).doubleValue() * $2.MILLIS_IN_MINUTE)\"",
",",
"imported",
"=",
"{",
"TimeExtensions",
".",
"class",
"}",
")",
"public",
"static",
"long",
"minutes",
"(",
"Number",
"mins",
")",
"{",
"return",
"(",
... | Convert minutes to milliseconds.
@param mins number of minutes to convert.
@return the number of milliseconds in <code>mins</code> | [
"Convert",
"minutes",
"to",
"milliseconds",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/extensions/time/TimeExtensions.java#L233-L237 |
57,458 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/extensions/time/TimeExtensions.java | TimeExtensions.hours | @Pure
@Inline(value = "(long) (($1).doubleValue() * $2.MILLIS_IN_HOUR)", imported = {TimeExtensions.class})
public static long hours(Number hours) {
return (long) (hours.doubleValue() * MILLIS_IN_HOUR);
} | java | @Pure
@Inline(value = "(long) (($1).doubleValue() * $2.MILLIS_IN_HOUR)", imported = {TimeExtensions.class})
public static long hours(Number hours) {
return (long) (hours.doubleValue() * MILLIS_IN_HOUR);
} | [
"@",
"Pure",
"@",
"Inline",
"(",
"value",
"=",
"\"(long) (($1).doubleValue() * $2.MILLIS_IN_HOUR)\"",
",",
"imported",
"=",
"{",
"TimeExtensions",
".",
"class",
"}",
")",
"public",
"static",
"long",
"hours",
"(",
"Number",
"hours",
")",
"{",
"return",
"(",
"lo... | Convert hours to milliseconds.
@param hours number of hours to convert.
@return the number of milliseconds in <code>hours</code> | [
"Convert",
"hours",
"to",
"milliseconds",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/extensions/time/TimeExtensions.java#L310-L314 |
57,459 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/extensions/time/TimeExtensions.java | TimeExtensions.days | @Pure
@Inline(value = "(long) (($1).doubleValue() * $2.MILLIS_IN_DAY)", imported = {TimeExtensions.class})
public static long days(Number days) {
return (long) (days.doubleValue() * MILLIS_IN_DAY);
} | java | @Pure
@Inline(value = "(long) (($1).doubleValue() * $2.MILLIS_IN_DAY)", imported = {TimeExtensions.class})
public static long days(Number days) {
return (long) (days.doubleValue() * MILLIS_IN_DAY);
} | [
"@",
"Pure",
"@",
"Inline",
"(",
"value",
"=",
"\"(long) (($1).doubleValue() * $2.MILLIS_IN_DAY)\"",
",",
"imported",
"=",
"{",
"TimeExtensions",
".",
"class",
"}",
")",
"public",
"static",
"long",
"days",
"(",
"Number",
"days",
")",
"{",
"return",
"(",
"long"... | Convert days to milliseconds.
@param days number of days to convert.
@return the number of days in <code>days</code> | [
"Convert",
"days",
"to",
"milliseconds",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/extensions/time/TimeExtensions.java#L387-L391 |
57,460 | sarl/sarl | main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/extensions/time/TimeExtensions.java | TimeExtensions.weeks | @Pure
@Inline(value = "(long) (($1).doubleValue() * $2.MILLIS_IN_WEEK)", imported = {TimeExtensions.class})
public static long weeks(Number weeks) {
return (long) (weeks.doubleValue() * MILLIS_IN_WEEK);
} | java | @Pure
@Inline(value = "(long) (($1).doubleValue() * $2.MILLIS_IN_WEEK)", imported = {TimeExtensions.class})
public static long weeks(Number weeks) {
return (long) (weeks.doubleValue() * MILLIS_IN_WEEK);
} | [
"@",
"Pure",
"@",
"Inline",
"(",
"value",
"=",
"\"(long) (($1).doubleValue() * $2.MILLIS_IN_WEEK)\"",
",",
"imported",
"=",
"{",
"TimeExtensions",
".",
"class",
"}",
")",
"public",
"static",
"long",
"weeks",
"(",
"Number",
"weeks",
")",
"{",
"return",
"(",
"lo... | Convert weeks to milliseconds.
@param weeks number of weeks to convert.
@return the number of milliseconds in <code>weeks</code> | [
"Convert",
"weeks",
"to",
"milliseconds",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/scoping/extensions/time/TimeExtensions.java#L464-L468 |
57,461 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/SARLStandaloneSetup.java | SARLStandaloneSetup.createInjectorAndDoEMFRegistration | public Injector createInjectorAndDoEMFRegistration(Module... modules) {
doPreSetup();
final Injector injector = createInjector(modules);
register(injector);
return injector;
} | java | public Injector createInjectorAndDoEMFRegistration(Module... modules) {
doPreSetup();
final Injector injector = createInjector(modules);
register(injector);
return injector;
} | [
"public",
"Injector",
"createInjectorAndDoEMFRegistration",
"(",
"Module",
"...",
"modules",
")",
"{",
"doPreSetup",
"(",
")",
";",
"final",
"Injector",
"injector",
"=",
"createInjector",
"(",
"modules",
")",
";",
"register",
"(",
"injector",
")",
";",
"return",... | Create the injector based on the given set of modules and prepare the EMF infrastructure.
@param modules the injection modules that are overriding the standard SARL module.
@return the injector.
@since 0.8
@see SARLRuntimeModule | [
"Create",
"the",
"injector",
"based",
"on",
"the",
"given",
"set",
"of",
"modules",
"and",
"prepare",
"the",
"EMF",
"infrastructure",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/SARLStandaloneSetup.java#L97-L102 |
57,462 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/SARLStandaloneSetup.java | SARLStandaloneSetup.createInjector | @SuppressWarnings("static-method")
public Injector createInjector(Module... modules) {
return Guice.createInjector(Modules.override(new SARLRuntimeModule()).with(modules));
} | java | @SuppressWarnings("static-method")
public Injector createInjector(Module... modules) {
return Guice.createInjector(Modules.override(new SARLRuntimeModule()).with(modules));
} | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"public",
"Injector",
"createInjector",
"(",
"Module",
"...",
"modules",
")",
"{",
"return",
"Guice",
".",
"createInjector",
"(",
"Modules",
".",
"override",
"(",
"new",
"SARLRuntimeModule",
"(",
")",
")",
... | Create the injectors based on the given set of modules.
@param modules the injection modules that are overriding the standard SARL module.
@return the injector.
@since 0.8
@see SARLRuntimeModule | [
"Create",
"the",
"injectors",
"based",
"on",
"the",
"given",
"set",
"of",
"modules",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/SARLStandaloneSetup.java#L111-L114 |
57,463 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/BuiltinSkill.java | BuiltinSkill.installationOrder | protected static int installationOrder(Skill skill) {
final int len = StandardBuiltinCapacitiesProvider.SKILL_INSTALLATION_ORDER.length;
if (skill instanceof BuiltinSkill) {
for (int i = 0; i < len; ++i) {
final Class<? extends Skill> type = StandardBuiltinCapacitiesProvider.SKILL_INSTALLATION_ORDER[i];
... | java | protected static int installationOrder(Skill skill) {
final int len = StandardBuiltinCapacitiesProvider.SKILL_INSTALLATION_ORDER.length;
if (skill instanceof BuiltinSkill) {
for (int i = 0; i < len; ++i) {
final Class<? extends Skill> type = StandardBuiltinCapacitiesProvider.SKILL_INSTALLATION_ORDER[i];
... | [
"protected",
"static",
"int",
"installationOrder",
"(",
"Skill",
"skill",
")",
"{",
"final",
"int",
"len",
"=",
"StandardBuiltinCapacitiesProvider",
".",
"SKILL_INSTALLATION_ORDER",
".",
"length",
";",
"if",
"(",
"skill",
"instanceof",
"BuiltinSkill",
")",
"{",
"f... | Replies the installation order of the given skill.
@param skill the skill.
@return the installation order. | [
"Replies",
"the",
"installation",
"order",
"of",
"the",
"given",
"skill",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/BuiltinSkill.java#L56-L67 |
57,464 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/SREInstallWizard.java | SREInstallWizard.getPage | public AbstractSREInstallPage getPage(ISREInstall sre) {
final IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(
SARLEclipsePlugin.PLUGIN_ID,
SARLEclipseConfig.EXTENSION_POINT_SRE_INSTALL_PAGES);
if (sre != null && extensionPoint != null) {
IConfigurationElement firstTyp... | java | public AbstractSREInstallPage getPage(ISREInstall sre) {
final IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(
SARLEclipsePlugin.PLUGIN_ID,
SARLEclipseConfig.EXTENSION_POINT_SRE_INSTALL_PAGES);
if (sre != null && extensionPoint != null) {
IConfigurationElement firstTyp... | [
"public",
"AbstractSREInstallPage",
"getPage",
"(",
"ISREInstall",
"sre",
")",
"{",
"final",
"IExtensionPoint",
"extensionPoint",
"=",
"Platform",
".",
"getExtensionRegistry",
"(",
")",
".",
"getExtensionPoint",
"(",
"SARLEclipsePlugin",
".",
"PLUGIN_ID",
",",
"SARLEc... | Returns a page to use for editing a SRE install type.
@param sre the edited SRE.
@return the wizard page. | [
"Returns",
"a",
"page",
"to",
"use",
"for",
"editing",
"a",
"SRE",
"install",
"type",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/sreinstall/SREInstallWizard.java#L96-L139 |
57,465 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/editor/SARLEditorErrorTickUpdater.java | SARLEditorErrorTickUpdater.getXtextResource | protected Resource getXtextResource() {
//FIXME: for helping to resolve #661
final XtextEditor editor = getEditor();
if (editor != null) {
final IResource resource = editor.getResource();
if (resource instanceof IStorage) {
final IProject project = resource.getProject();
if (project != null) {
... | java | protected Resource getXtextResource() {
//FIXME: for helping to resolve #661
final XtextEditor editor = getEditor();
if (editor != null) {
final IResource resource = editor.getResource();
if (resource instanceof IStorage) {
final IProject project = resource.getProject();
if (project != null) {
... | [
"protected",
"Resource",
"getXtextResource",
"(",
")",
"{",
"//FIXME: for helping to resolve #661",
"final",
"XtextEditor",
"editor",
"=",
"getEditor",
"(",
")",
";",
"if",
"(",
"editor",
"!=",
"null",
")",
"{",
"final",
"IResource",
"resource",
"=",
"editor",
"... | Replies the current Xtext document that is supported by the linked editor.
@return the Xtext document, or {@code null} if neither an editor nor a
Xtext document was linked. | [
"Replies",
"the",
"current",
"Xtext",
"document",
"that",
"is",
"supported",
"by",
"the",
"linked",
"editor",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/editor/SARLEditorErrorTickUpdater.java#L94-L110 |
57,466 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ExpressionBuilderFragment.java | ExpressionBuilderFragment.generateExpressionAppender | protected void generateExpressionAppender() {
final TypeReference builderInterface = getExpressionBuilderInterface();
final TypeReference appender = getCodeElementExtractor().getElementAppenderImpl("Expression"); //$NON-NLS-1$
final StringConcatenationClient content = new StringConcatenationClient() {
@Overrid... | java | protected void generateExpressionAppender() {
final TypeReference builderInterface = getExpressionBuilderInterface();
final TypeReference appender = getCodeElementExtractor().getElementAppenderImpl("Expression"); //$NON-NLS-1$
final StringConcatenationClient content = new StringConcatenationClient() {
@Overrid... | [
"protected",
"void",
"generateExpressionAppender",
"(",
")",
"{",
"final",
"TypeReference",
"builderInterface",
"=",
"getExpressionBuilderInterface",
"(",
")",
";",
"final",
"TypeReference",
"appender",
"=",
"getCodeElementExtractor",
"(",
")",
".",
"getElementAppenderImp... | Generate the expression appender. | [
"Generate",
"the",
"expression",
"appender",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ExpressionBuilderFragment.java#L171-L203 |
57,467 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ExpressionBuilderFragment.java | ExpressionBuilderFragment.ensureContainerKeyword | protected String ensureContainerKeyword(EObject grammarContainer) {
final Iterator<Keyword> iterator = Iterators.filter(grammarContainer.eContents().iterator(), Keyword.class);
if (iterator.hasNext()) {
return iterator.next().getValue();
}
return getExpressionConfig().getFieldContainerDeclarationKeyword();
... | java | protected String ensureContainerKeyword(EObject grammarContainer) {
final Iterator<Keyword> iterator = Iterators.filter(grammarContainer.eContents().iterator(), Keyword.class);
if (iterator.hasNext()) {
return iterator.next().getValue();
}
return getExpressionConfig().getFieldContainerDeclarationKeyword();
... | [
"protected",
"String",
"ensureContainerKeyword",
"(",
"EObject",
"grammarContainer",
")",
"{",
"final",
"Iterator",
"<",
"Keyword",
">",
"iterator",
"=",
"Iterators",
".",
"filter",
"(",
"grammarContainer",
".",
"eContents",
"(",
")",
".",
"iterator",
"(",
")",
... | Replies a keyword for declaring a container.
@param grammarContainer the container description.
@return the keyword, never <code>null</code> nor an empty string. | [
"Replies",
"a",
"keyword",
"for",
"declaring",
"a",
"container",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ExpressionBuilderFragment.java#L1158-L1164 |
57,468 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ExpressionBuilderFragment.java | ExpressionBuilderFragment.ensureFieldDeclarationKeyword | protected String ensureFieldDeclarationKeyword(CodeElementExtractor.ElementDescription memberDescription) {
final List<String> modifiers = getCodeBuilderConfig().getModifiers().get(memberDescription.getName());
if (modifiers != null && !modifiers.isEmpty()) {
return modifiers.get(0);
}
return getExpressionCo... | java | protected String ensureFieldDeclarationKeyword(CodeElementExtractor.ElementDescription memberDescription) {
final List<String> modifiers = getCodeBuilderConfig().getModifiers().get(memberDescription.getName());
if (modifiers != null && !modifiers.isEmpty()) {
return modifiers.get(0);
}
return getExpressionCo... | [
"protected",
"String",
"ensureFieldDeclarationKeyword",
"(",
"CodeElementExtractor",
".",
"ElementDescription",
"memberDescription",
")",
"{",
"final",
"List",
"<",
"String",
">",
"modifiers",
"=",
"getCodeBuilderConfig",
"(",
")",
".",
"getModifiers",
"(",
")",
".",
... | Replies a keyword for declaring a field.
@param memberDescription the member description.
@return the keyword, never <code>null</code> nor an empty string. | [
"Replies",
"a",
"keyword",
"for",
"declaring",
"a",
"field",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ExpressionBuilderFragment.java#L1171-L1177 |
57,469 | sarl/sarl | main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ExpressionBuilderFragment.java | ExpressionBuilderFragment.getExpressionContextDescription | protected ExpressionContextDescription getExpressionContextDescription() {
for (final CodeElementExtractor.ElementDescription containerDescription : getCodeElementExtractor().getTopElements(
getGrammar(), getCodeBuilderConfig())) {
final AbstractRule rule = getMemberRule(containerDescription);
if (rule != n... | java | protected ExpressionContextDescription getExpressionContextDescription() {
for (final CodeElementExtractor.ElementDescription containerDescription : getCodeElementExtractor().getTopElements(
getGrammar(), getCodeBuilderConfig())) {
final AbstractRule rule = getMemberRule(containerDescription);
if (rule != n... | [
"protected",
"ExpressionContextDescription",
"getExpressionContextDescription",
"(",
")",
"{",
"for",
"(",
"final",
"CodeElementExtractor",
".",
"ElementDescription",
"containerDescription",
":",
"getCodeElementExtractor",
"(",
")",
".",
"getTopElements",
"(",
"getGrammar",
... | Replies the description of the expression context.
@return the description. | [
"Replies",
"the",
"description",
"of",
"the",
"expression",
"context",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ExpressionBuilderFragment.java#L1183-L1215 |
57,470 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/Context.java | Context.postConstruction | public EventSpace postConstruction() {
this.spaceRepository.postConstruction();
this.defaultSpace = createSpace(OpenEventSpaceSpecification.class, this.defaultSpaceID);
if (this.defaultSpace == null) {
// The default space could have been created before thanks to Hazelcast,
// thus createSpace returns null ... | java | public EventSpace postConstruction() {
this.spaceRepository.postConstruction();
this.defaultSpace = createSpace(OpenEventSpaceSpecification.class, this.defaultSpaceID);
if (this.defaultSpace == null) {
// The default space could have been created before thanks to Hazelcast,
// thus createSpace returns null ... | [
"public",
"EventSpace",
"postConstruction",
"(",
")",
"{",
"this",
".",
"spaceRepository",
".",
"postConstruction",
"(",
")",
";",
"this",
".",
"defaultSpace",
"=",
"createSpace",
"(",
"OpenEventSpaceSpecification",
".",
"class",
",",
"this",
".",
"defaultSpaceID"... | Create the default space in this context.
@return the created space. | [
"Create",
"the",
"default",
"space",
"in",
"this",
"context",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/Context.java#L100-L111 |
57,471 | sarl/sarl | main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/highlighting/SARLHighlightingConfiguration.java | SARLHighlightingConfiguration.capacityMethodInvocation | @SuppressWarnings("checkstyle:magicnumber")
public TextStyle capacityMethodInvocation() {
final TextStyle textStyle = extensionMethodInvocation().copy();
//textStyle.setColor(new RGB(128, 36, 0));
textStyle.setStyle(SWT.ITALIC);
return textStyle;
} | java | @SuppressWarnings("checkstyle:magicnumber")
public TextStyle capacityMethodInvocation() {
final TextStyle textStyle = extensionMethodInvocation().copy();
//textStyle.setColor(new RGB(128, 36, 0));
textStyle.setStyle(SWT.ITALIC);
return textStyle;
} | [
"@",
"SuppressWarnings",
"(",
"\"checkstyle:magicnumber\"",
")",
"public",
"TextStyle",
"capacityMethodInvocation",
"(",
")",
"{",
"final",
"TextStyle",
"textStyle",
"=",
"extensionMethodInvocation",
"(",
")",
".",
"copy",
"(",
")",
";",
"//textStyle.setColor(new RGB(12... | Style for the capacity method extension.
@return the style. | [
"Style",
"for",
"the",
"capacity",
"method",
"extension",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/highlighting/SARLHighlightingConfiguration.java#L55-L61 |
57,472 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.validate | public void validate(StateAccess validationState, ValidationMessageAcceptor messageAcceptor) {
if (isResponsible(validationState.getState().context, validationState.getState().currentObject)) {
try {
for (final MethodWrapper method : getMethods(validationState.getState().currentObject)) {
final Context ct... | java | public void validate(StateAccess validationState, ValidationMessageAcceptor messageAcceptor) {
if (isResponsible(validationState.getState().context, validationState.getState().currentObject)) {
try {
for (final MethodWrapper method : getMethods(validationState.getState().currentObject)) {
final Context ct... | [
"public",
"void",
"validate",
"(",
"StateAccess",
"validationState",
",",
"ValidationMessageAcceptor",
"messageAcceptor",
")",
"{",
"if",
"(",
"isResponsible",
"(",
"validationState",
".",
"getState",
"(",
")",
".",
"context",
",",
"validationState",
".",
"getState"... | Validate the given resource.
@param validationState the current validation state.
@param messageAcceptor the message acceptor. | [
"Validate",
"the",
"given",
"resource",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L160-L173 |
57,473 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.collectMethods | protected void collectMethods(Class<? extends AbstractExtraLanguageValidator> clazz,
Collection<Class<?>> visitedClasses,
Collection<MethodWrapper> result) {
if (!visitedClasses.add(clazz)) {
return;
}
for (final Method method : clazz.getDeclaredMethods()) {
if (method.getAnnotation(Check.class) != nu... | java | protected void collectMethods(Class<? extends AbstractExtraLanguageValidator> clazz,
Collection<Class<?>> visitedClasses,
Collection<MethodWrapper> result) {
if (!visitedClasses.add(clazz)) {
return;
}
for (final Method method : clazz.getDeclaredMethods()) {
if (method.getAnnotation(Check.class) != nu... | [
"protected",
"void",
"collectMethods",
"(",
"Class",
"<",
"?",
"extends",
"AbstractExtraLanguageValidator",
">",
"clazz",
",",
"Collection",
"<",
"Class",
"<",
"?",
">",
">",
"visitedClasses",
",",
"Collection",
"<",
"MethodWrapper",
">",
"result",
")",
"{",
"... | Collect the check methods.
@param clazz the type to explore.
@param visitedClasses the visited classes.
@param result the collected methods. | [
"Collect",
"the",
"check",
"methods",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L181-L196 |
57,474 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.isResponsible | @SuppressWarnings("static-method")
protected boolean isResponsible(Map<Object, Object> context, EObject eObject) {
// Skip the validation of an feature call if one of its container was validated previously
if (eObject instanceof XMemberFeatureCall || eObject instanceof XFeatureCall) {
final XAbstractFeatureCall... | java | @SuppressWarnings("static-method")
protected boolean isResponsible(Map<Object, Object> context, EObject eObject) {
// Skip the validation of an feature call if one of its container was validated previously
if (eObject instanceof XMemberFeatureCall || eObject instanceof XFeatureCall) {
final XAbstractFeatureCall... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"boolean",
"isResponsible",
"(",
"Map",
"<",
"Object",
",",
"Object",
">",
"context",
",",
"EObject",
"eObject",
")",
"{",
"// Skip the validation of an feature call if one of its container was validated p... | Replies if the validator is responsible to validate the given object.
@param context the context.
@param eObject the validated object.
@return {@code true} if the validator could be run. | [
"Replies",
"if",
"the",
"validator",
"is",
"responsible",
"to",
"validate",
"the",
"given",
"object",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L245-L253 |
57,475 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.error | protected void error(String message, EObject source, EStructuralFeature feature) {
getContext().getMessageAcceptor().acceptError(
MessageFormat.format(getErrorMessageFormat(), message),
source,
feature,
ValidationMessageAcceptor.INSIGNIFICANT_INDEX,
IssueCodes.INVALID_EXTRA_LANGUAGE_GENERATION);
... | java | protected void error(String message, EObject source, EStructuralFeature feature) {
getContext().getMessageAcceptor().acceptError(
MessageFormat.format(getErrorMessageFormat(), message),
source,
feature,
ValidationMessageAcceptor.INSIGNIFICANT_INDEX,
IssueCodes.INVALID_EXTRA_LANGUAGE_GENERATION);
... | [
"protected",
"void",
"error",
"(",
"String",
"message",
",",
"EObject",
"source",
",",
"EStructuralFeature",
"feature",
")",
"{",
"getContext",
"(",
")",
".",
"getMessageAcceptor",
"(",
")",
".",
"acceptError",
"(",
"MessageFormat",
".",
"format",
"(",
"getErr... | Generate an error for the extra-language.
<p>This function generates an error, a warning, or an information depending on the extra-language generation's
configuration.
@param message the error message.
@param source the source of the error.
@param feature the structural feature. | [
"Generate",
"an",
"error",
"for",
"the",
"extra",
"-",
"language",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L264-L271 |
57,476 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.warning | protected void warning(String message, EObject source, EStructuralFeature feature) {
getContext().getMessageAcceptor().acceptWarning(
MessageFormat.format(getErrorMessageFormat(), message),
source,
feature,
ValidationMessageAcceptor.INSIGNIFICANT_INDEX,
IssueCodes.INVALID_EXTRA_LANGUAGE_GENERATION... | java | protected void warning(String message, EObject source, EStructuralFeature feature) {
getContext().getMessageAcceptor().acceptWarning(
MessageFormat.format(getErrorMessageFormat(), message),
source,
feature,
ValidationMessageAcceptor.INSIGNIFICANT_INDEX,
IssueCodes.INVALID_EXTRA_LANGUAGE_GENERATION... | [
"protected",
"void",
"warning",
"(",
"String",
"message",
",",
"EObject",
"source",
",",
"EStructuralFeature",
"feature",
")",
"{",
"getContext",
"(",
")",
".",
"getMessageAcceptor",
"(",
")",
".",
"acceptWarning",
"(",
"MessageFormat",
".",
"format",
"(",
"ge... | Generate a warning for the extra-language.
<p>This function generates an error, a warning, or an information depending on the extra-language generation's
configuration.
@param message the warning message.
@param source the source of the error.
@param feature the structural feature. | [
"Generate",
"a",
"warning",
"for",
"the",
"extra",
"-",
"language",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L282-L289 |
57,477 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.info | protected void info(String message, EObject source, EStructuralFeature feature) {
getContext().getMessageAcceptor().acceptInfo(
MessageFormat.format(getErrorMessageFormat(), message),
source,
feature,
ValidationMessageAcceptor.INSIGNIFICANT_INDEX,
IssueCodes.INVALID_EXTRA_LANGUAGE_GENERATION);
} | java | protected void info(String message, EObject source, EStructuralFeature feature) {
getContext().getMessageAcceptor().acceptInfo(
MessageFormat.format(getErrorMessageFormat(), message),
source,
feature,
ValidationMessageAcceptor.INSIGNIFICANT_INDEX,
IssueCodes.INVALID_EXTRA_LANGUAGE_GENERATION);
} | [
"protected",
"void",
"info",
"(",
"String",
"message",
",",
"EObject",
"source",
",",
"EStructuralFeature",
"feature",
")",
"{",
"getContext",
"(",
")",
".",
"getMessageAcceptor",
"(",
")",
".",
"acceptInfo",
"(",
"MessageFormat",
".",
"format",
"(",
"getError... | Generate an information message for the extra-language.
<p>This function generates an error, a warning, or an information depending on the extra-language generation's
configuration.
@param message the info message.
@param source the source of the error.
@param feature the structural feature. | [
"Generate",
"an",
"information",
"message",
"for",
"the",
"extra",
"-",
"language",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L300-L307 |
57,478 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.getTypeConverter | public ExtraLanguageTypeConverter getTypeConverter() {
ExtraLanguageTypeConverter converter = this.typeConverter;
if (converter == null) {
converter = createTypeConverterInstance(getTypeConverterInitializer(), null);
this.injector.injectMembers(converter);
this.typeConverter = converter;
}
return conve... | java | public ExtraLanguageTypeConverter getTypeConverter() {
ExtraLanguageTypeConverter converter = this.typeConverter;
if (converter == null) {
converter = createTypeConverterInstance(getTypeConverterInitializer(), null);
this.injector.injectMembers(converter);
this.typeConverter = converter;
}
return conve... | [
"public",
"ExtraLanguageTypeConverter",
"getTypeConverter",
"(",
")",
"{",
"ExtraLanguageTypeConverter",
"converter",
"=",
"this",
".",
"typeConverter",
";",
"if",
"(",
"converter",
"==",
"null",
")",
"{",
"converter",
"=",
"createTypeConverterInstance",
"(",
"getType... | Replies the type converter.
@return the type converter. | [
"Replies",
"the",
"type",
"converter",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L334-L342 |
57,479 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.createTypeConverterInstance | @SuppressWarnings("static-method")
protected ExtraLanguageTypeConverter createTypeConverterInstance(
IExtraLanguageConversionInitializer initializer,
IExtraLanguageGeneratorContext context) {
return new ExtraLanguageTypeConverter(initializer, context);
} | java | @SuppressWarnings("static-method")
protected ExtraLanguageTypeConverter createTypeConverterInstance(
IExtraLanguageConversionInitializer initializer,
IExtraLanguageGeneratorContext context) {
return new ExtraLanguageTypeConverter(initializer, context);
} | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"ExtraLanguageTypeConverter",
"createTypeConverterInstance",
"(",
"IExtraLanguageConversionInitializer",
"initializer",
",",
"IExtraLanguageGeneratorContext",
"context",
")",
"{",
"return",
"new",
"ExtraLanguage... | Create the instance of the type converter.
@param initializer the converter initializer.
@param context the generation context.
@return the type converter. | [
"Create",
"the",
"instance",
"of",
"the",
"type",
"converter",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L350-L355 |
57,480 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.getFeatureNameConverter | public ExtraLanguageFeatureNameConverter getFeatureNameConverter() {
ExtraLanguageFeatureNameConverter converter = this.featureConverter;
if (converter == null) {
converter = createFeatureNameConverterInstance(getFeatureConverterInitializer(), null);
this.injector.injectMembers(converter);
this.featureConv... | java | public ExtraLanguageFeatureNameConverter getFeatureNameConverter() {
ExtraLanguageFeatureNameConverter converter = this.featureConverter;
if (converter == null) {
converter = createFeatureNameConverterInstance(getFeatureConverterInitializer(), null);
this.injector.injectMembers(converter);
this.featureConv... | [
"public",
"ExtraLanguageFeatureNameConverter",
"getFeatureNameConverter",
"(",
")",
"{",
"ExtraLanguageFeatureNameConverter",
"converter",
"=",
"this",
".",
"featureConverter",
";",
"if",
"(",
"converter",
"==",
"null",
")",
"{",
"converter",
"=",
"createFeatureNameConver... | Replies the feature name converter.
@return the feature name converter. | [
"Replies",
"the",
"feature",
"name",
"converter",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L361-L369 |
57,481 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.createFeatureNameConverterInstance | protected ExtraLanguageFeatureNameConverter createFeatureNameConverterInstance(
IExtraLanguageConversionInitializer initializer,
IExtraLanguageGeneratorContext context) {
return new ExtraLanguageFeatureNameConverter(initializer, context, getExtraLanguageKeywordProvider());
} | java | protected ExtraLanguageFeatureNameConverter createFeatureNameConverterInstance(
IExtraLanguageConversionInitializer initializer,
IExtraLanguageGeneratorContext context) {
return new ExtraLanguageFeatureNameConverter(initializer, context, getExtraLanguageKeywordProvider());
} | [
"protected",
"ExtraLanguageFeatureNameConverter",
"createFeatureNameConverterInstance",
"(",
"IExtraLanguageConversionInitializer",
"initializer",
",",
"IExtraLanguageGeneratorContext",
"context",
")",
"{",
"return",
"new",
"ExtraLanguageFeatureNameConverter",
"(",
"initializer",
","... | Create the instance of the feature name converter.
@param initializer the converter initializer.
@param context the generation context.
@return the feature name converter. | [
"Create",
"the",
"instance",
"of",
"the",
"feature",
"name",
"converter",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L377-L381 |
57,482 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.doTypeMappingCheck | protected boolean doTypeMappingCheck(EObject source, JvmType type, Procedure3<? super EObject, ? super JvmType, ? super String> errorHandler) {
if (source != null && type != null) {
final ExtraLanguageTypeConverter converter = getTypeConverter();
final String qn = type.getQualifiedName();
if (converter != nu... | java | protected boolean doTypeMappingCheck(EObject source, JvmType type, Procedure3<? super EObject, ? super JvmType, ? super String> errorHandler) {
if (source != null && type != null) {
final ExtraLanguageTypeConverter converter = getTypeConverter();
final String qn = type.getQualifiedName();
if (converter != nu... | [
"protected",
"boolean",
"doTypeMappingCheck",
"(",
"EObject",
"source",
",",
"JvmType",
"type",
",",
"Procedure3",
"<",
"?",
"super",
"EObject",
",",
"?",
"super",
"JvmType",
",",
"?",
"super",
"String",
">",
"errorHandler",
")",
"{",
"if",
"(",
"source",
... | Do a type mapping check.
@param source the source of the type.
@param type the type to check.
@param errorHandler the error handler.
@return {@code true} if a type mapping is defined. | [
"Do",
"a",
"type",
"mapping",
"check",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L390-L402 |
57,483 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.doCheckMemberFeatureCallMapping | protected void doCheckMemberFeatureCallMapping(XAbstractFeatureCall featureCall,
Procedure3<? super EObject, ? super JvmType, ? super String> typeErrorHandler,
Function2<? super EObject, ? super JvmIdentifiableElement, ? extends Boolean> featureErrorHandler) {
final XAbstractFeatureCall rootFeatureCall = Utils.... | java | protected void doCheckMemberFeatureCallMapping(XAbstractFeatureCall featureCall,
Procedure3<? super EObject, ? super JvmType, ? super String> typeErrorHandler,
Function2<? super EObject, ? super JvmIdentifiableElement, ? extends Boolean> featureErrorHandler) {
final XAbstractFeatureCall rootFeatureCall = Utils.... | [
"protected",
"void",
"doCheckMemberFeatureCallMapping",
"(",
"XAbstractFeatureCall",
"featureCall",
",",
"Procedure3",
"<",
"?",
"super",
"EObject",
",",
"?",
"super",
"JvmType",
",",
"?",
"super",
"String",
">",
"typeErrorHandler",
",",
"Function2",
"<",
"?",
"su... | Check if the feature call could be translated to the extra-language.
@param featureCall the feature call.
@param typeErrorHandler the error handler for the type conversion.
@param featureErrorHandler the error handler for the feature call conversion. | [
"Check",
"if",
"the",
"feature",
"call",
"could",
"be",
"translated",
"to",
"the",
"extra",
"-",
"language",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L432-L445 |
57,484 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java | AbstractExtraLanguageValidator.handleInvocationTargetException | @SuppressWarnings("static-method")
protected void handleInvocationTargetException(Throwable targetException, Context context) {
// ignore NullPointerException, as not having to check for NPEs all the time is a convenience feature
if (!(targetException instanceof NullPointerException)) {
Exceptions.throwUnchecke... | java | @SuppressWarnings("static-method")
protected void handleInvocationTargetException(Throwable targetException, Context context) {
// ignore NullPointerException, as not having to check for NPEs all the time is a convenience feature
if (!(targetException instanceof NullPointerException)) {
Exceptions.throwUnchecke... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"void",
"handleInvocationTargetException",
"(",
"Throwable",
"targetException",
",",
"Context",
"context",
")",
"{",
"// ignore NullPointerException, as not having to check for NPEs all the time is a convenience fea... | Handle an exception.
@param targetException the exception.
@param context the context. | [
"Handle",
"an",
"exception",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/validator/AbstractExtraLanguageValidator.java#L488-L494 |
57,485 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/SARLJvmGenerator.java | SARLJvmGenerator.generateStaticConstructor | protected ITreeAppendable generateStaticConstructor(JvmOperation it, ITreeAppendable appendable, GeneratorConfig config) {
appendable.newLine();
appendable.openScope();
generateJavaDoc(it, appendable, config);
final ITreeAppendable tracedAppendable = appendable.trace(it);
tracedAppendable.append("static "); /... | java | protected ITreeAppendable generateStaticConstructor(JvmOperation it, ITreeAppendable appendable, GeneratorConfig config) {
appendable.newLine();
appendable.openScope();
generateJavaDoc(it, appendable, config);
final ITreeAppendable tracedAppendable = appendable.trace(it);
tracedAppendable.append("static "); /... | [
"protected",
"ITreeAppendable",
"generateStaticConstructor",
"(",
"JvmOperation",
"it",
",",
"ITreeAppendable",
"appendable",
",",
"GeneratorConfig",
"config",
")",
"{",
"appendable",
".",
"newLine",
"(",
")",
";",
"appendable",
".",
"openScope",
"(",
")",
";",
"g... | Generate a static constructor from the given Jvm constructor.
@param it the container of the code.
@param appendable the output.
@param config the generation configuration.
@return the appendable. | [
"Generate",
"a",
"static",
"constructor",
"from",
"the",
"given",
"Jvm",
"constructor",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/SARLJvmGenerator.java#L129-L137 |
57,486 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/log/SubmitEclipseLogWizard.java | SubmitEclipseLogWizard.open | public static int open(Shell parentShell) {
final SubmitEclipseLogWizard wizard = new SubmitEclipseLogWizard();
final WizardDialog dialog = new WizardDialog(parentShell, wizard);
wizard.setWizardDialog(dialog);
return dialog.open();
} | java | public static int open(Shell parentShell) {
final SubmitEclipseLogWizard wizard = new SubmitEclipseLogWizard();
final WizardDialog dialog = new WizardDialog(parentShell, wizard);
wizard.setWizardDialog(dialog);
return dialog.open();
} | [
"public",
"static",
"int",
"open",
"(",
"Shell",
"parentShell",
")",
"{",
"final",
"SubmitEclipseLogWizard",
"wizard",
"=",
"new",
"SubmitEclipseLogWizard",
"(",
")",
";",
"final",
"WizardDialog",
"dialog",
"=",
"new",
"WizardDialog",
"(",
"parentShell",
",",
"w... | Open the wizard.
<p>This method waits until the window is closed by the end user, and then it returns the window's return code;
otherwise, this method returns immediately. A window's return codes are
window-specific, although two standard return codes are predefined:
<code>OK</code> and <code>CANCEL</code>.
</p>
@par... | [
"Open",
"the",
"wizard",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/log/SubmitEclipseLogWizard.java#L103-L108 |
57,487 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/log/SubmitEclipseLogWizard.java | SubmitEclipseLogWizard.getWizardDialog | WizardDialog getWizardDialog() {
final WeakReference<WizardDialog> ref = this.wizardDialog;
return (ref == null) ? null : ref.get();
} | java | WizardDialog getWizardDialog() {
final WeakReference<WizardDialog> ref = this.wizardDialog;
return (ref == null) ? null : ref.get();
} | [
"WizardDialog",
"getWizardDialog",
"(",
")",
"{",
"final",
"WeakReference",
"<",
"WizardDialog",
">",
"ref",
"=",
"this",
".",
"wizardDialog",
";",
"return",
"(",
"ref",
"==",
"null",
")",
"?",
"null",
":",
"ref",
".",
"get",
"(",
")",
";",
"}"
] | Replies the associated wieard dialog.
@return the dialog. | [
"Replies",
"the",
"associated",
"wieard",
"dialog",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/log/SubmitEclipseLogWizard.java#L123-L126 |
57,488 | sarl/sarl | main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/log/SubmitEclipseLogWizard.java | SubmitEclipseLogWizard.buildContent | @SuppressWarnings("static-method")
protected String buildContent(String description, Charset charset) throws IOException {
final StringBuilder fullContent = new StringBuilder();
// User message
if (!Strings.isEmpty(description)) {
fullContent.append(description);
fullContent.append(Messages.SubmitEclipseL... | java | @SuppressWarnings("static-method")
protected String buildContent(String description, Charset charset) throws IOException {
final StringBuilder fullContent = new StringBuilder();
// User message
if (!Strings.isEmpty(description)) {
fullContent.append(description);
fullContent.append(Messages.SubmitEclipseL... | [
"@",
"SuppressWarnings",
"(",
"\"static-method\"",
")",
"protected",
"String",
"buildContent",
"(",
"String",
"description",
",",
"Charset",
"charset",
")",
"throws",
"IOException",
"{",
"final",
"StringBuilder",
"fullContent",
"=",
"new",
"StringBuilder",
"(",
")",... | Build the issue content.
@param description the description of the issue.
@param charset the charset to use.
@return the content.
@throws IOException if the content cannot be built. | [
"Build",
"the",
"issue",
"content",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/log/SubmitEclipseLogWizard.java#L309-L353 |
57,489 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java | ZeroMQNetworkService.setSpaceService | @Inject
public void setSpaceService(ContextSpaceService service) {
if (this.spaceService != null) {
this.spaceService.removeSpaceRepositoryListener(this.serviceListener);
}
this.spaceService = service;
if (this.spaceService != null) {
this.spaceService.addSpaceRepositoryListener(this... | java | @Inject
public void setSpaceService(ContextSpaceService service) {
if (this.spaceService != null) {
this.spaceService.removeSpaceRepositoryListener(this.serviceListener);
}
this.spaceService = service;
if (this.spaceService != null) {
this.spaceService.addSpaceRepositoryListener(this... | [
"@",
"Inject",
"public",
"void",
"setSpaceService",
"(",
"ContextSpaceService",
"service",
")",
"{",
"if",
"(",
"this",
".",
"spaceService",
"!=",
"null",
")",
"{",
"this",
".",
"spaceService",
".",
"removeSpaceRepositoryListener",
"(",
"this",
".",
"serviceList... | Set the reference to the space service.
@param service the service. | [
"Set",
"the",
"reference",
"to",
"the",
"space",
"service",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java#L135-L144 |
57,490 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java | ZeroMQNetworkService.firePeerConnected | protected void firePeerConnected(URI peerURI, SpaceID space) {
final NetworkServiceListener[] ilisteners;
synchronized (this.listeners) {
ilisteners = new NetworkServiceListener[this.listeners.size()];
this.listeners.toArray(ilisteners);
}
for (final NetworkServic... | java | protected void firePeerConnected(URI peerURI, SpaceID space) {
final NetworkServiceListener[] ilisteners;
synchronized (this.listeners) {
ilisteners = new NetworkServiceListener[this.listeners.size()];
this.listeners.toArray(ilisteners);
}
for (final NetworkServic... | [
"protected",
"void",
"firePeerConnected",
"(",
"URI",
"peerURI",
",",
"SpaceID",
"space",
")",
"{",
"final",
"NetworkServiceListener",
"[",
"]",
"ilisteners",
";",
"synchronized",
"(",
"this",
".",
"listeners",
")",
"{",
"ilisteners",
"=",
"new",
"NetworkService... | Notifies that a peer space was connected.
@param peerURI
- the URI of the peer that was connected to.
@param space
- the identifier of the connected space. | [
"Notifies",
"that",
"a",
"peer",
"space",
"was",
"connected",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java#L185-L194 |
57,491 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java | ZeroMQNetworkService.firePeerDisconnected | protected void firePeerDisconnected(URI peerURI, SpaceID space) {
final NetworkServiceListener[] ilisteners;
synchronized (this.listeners) {
ilisteners = new NetworkServiceListener[this.listeners.size()];
this.listeners.toArray(ilisteners);
}
for (final NetworkSer... | java | protected void firePeerDisconnected(URI peerURI, SpaceID space) {
final NetworkServiceListener[] ilisteners;
synchronized (this.listeners) {
ilisteners = new NetworkServiceListener[this.listeners.size()];
this.listeners.toArray(ilisteners);
}
for (final NetworkSer... | [
"protected",
"void",
"firePeerDisconnected",
"(",
"URI",
"peerURI",
",",
"SpaceID",
"space",
")",
"{",
"final",
"NetworkServiceListener",
"[",
"]",
"ilisteners",
";",
"synchronized",
"(",
"this",
".",
"listeners",
")",
"{",
"ilisteners",
"=",
"new",
"NetworkServ... | Notifies that a peer space was disconnected.
@param peerURI
- the URI of the peer that was disconnected to.
@param space
- the identifier of the disconnected space. | [
"Notifies",
"that",
"a",
"peer",
"space",
"was",
"disconnected",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java#L204-L213 |
57,492 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java | ZeroMQNetworkService.firePeerDiscovered | protected void firePeerDiscovered(URI peerURI) {
final NetworkServiceListener[] ilisteners;
synchronized (this.listeners) {
ilisteners = new NetworkServiceListener[this.listeners.size()];
this.listeners.toArray(ilisteners);
}
for (final NetworkServiceListener list... | java | protected void firePeerDiscovered(URI peerURI) {
final NetworkServiceListener[] ilisteners;
synchronized (this.listeners) {
ilisteners = new NetworkServiceListener[this.listeners.size()];
this.listeners.toArray(ilisteners);
}
for (final NetworkServiceListener list... | [
"protected",
"void",
"firePeerDiscovered",
"(",
"URI",
"peerURI",
")",
"{",
"final",
"NetworkServiceListener",
"[",
"]",
"ilisteners",
";",
"synchronized",
"(",
"this",
".",
"listeners",
")",
"{",
"ilisteners",
"=",
"new",
"NetworkServiceListener",
"[",
"this",
... | Notifies that a peer was discovered.
@param peerURI
- the URI of the remote kernel that was disconnected to. | [
"Notifies",
"that",
"a",
"peer",
"was",
"discovered",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java#L238-L247 |
57,493 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java | ZeroMQNetworkService.extractEnvelope | private static EventEnvelope extractEnvelope(Socket socket) throws IOException {
// To-Do: Read the ZeroMQ socket via a NIO wrapper to support large data:
// indeed the arrays has a maximal size bounded by a native int value, and
// the real data could be larger than this limit.
byte[] ... | java | private static EventEnvelope extractEnvelope(Socket socket) throws IOException {
// To-Do: Read the ZeroMQ socket via a NIO wrapper to support large data:
// indeed the arrays has a maximal size bounded by a native int value, and
// the real data could be larger than this limit.
byte[] ... | [
"private",
"static",
"EventEnvelope",
"extractEnvelope",
"(",
"Socket",
"socket",
")",
"throws",
"IOException",
"{",
"// To-Do: Read the ZeroMQ socket via a NIO wrapper to support large data:",
"// indeed the arrays has a maximal size bounded by a native int value, and",
"// the real data ... | Receive data from the network.
@param socket
- network reader.
@return the envelope received over the network.
@throws IOException
if the envelope cannot be read from the network. | [
"Receive",
"data",
"from",
"the",
"network",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java#L319-L352 |
57,494 | sarl/sarl | sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java | ZeroMQNetworkService.receive | protected synchronized void receive(EventEnvelope env) throws Exception {
this.logger.getKernelLogger().fine(MessageFormat.format(Messages.ZeroMQNetworkService_8, this.validatedURI, env));
final EventDispatch dispatch = this.serializer.deserialize(env);
this.logger.getKernelLogger().fine(Message... | java | protected synchronized void receive(EventEnvelope env) throws Exception {
this.logger.getKernelLogger().fine(MessageFormat.format(Messages.ZeroMQNetworkService_8, this.validatedURI, env));
final EventDispatch dispatch = this.serializer.deserialize(env);
this.logger.getKernelLogger().fine(Message... | [
"protected",
"synchronized",
"void",
"receive",
"(",
"EventEnvelope",
"env",
")",
"throws",
"Exception",
"{",
"this",
".",
"logger",
".",
"getKernelLogger",
"(",
")",
".",
"fine",
"(",
"MessageFormat",
".",
"format",
"(",
"Messages",
".",
"ZeroMQNetworkService_8... | Extract data from a received envelope, and forwad it to the rest of the platform.
@param env
- the evenlope received over the network, and that must be deserialize.
@throws Exception
- if cannot deserialize the envelope. | [
"Extract",
"data",
"from",
"a",
"received",
"envelope",
"and",
"forwad",
"it",
"to",
"the",
"rest",
"of",
"the",
"platform",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/zeromq/ZeroMQNetworkService.java#L415-L427 |
57,495 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/GenerationContext.java | GenerationContext.getGeneratorConfig | public GeneratorConfig getGeneratorConfig() {
if (this.generatorConfig == null) {
this.generatorConfig = this.generatorConfigProvider.get(
EcoreUtil.getRootContainer(this.contextObject));
}
return this.generatorConfig;
} | java | public GeneratorConfig getGeneratorConfig() {
if (this.generatorConfig == null) {
this.generatorConfig = this.generatorConfigProvider.get(
EcoreUtil.getRootContainer(this.contextObject));
}
return this.generatorConfig;
} | [
"public",
"GeneratorConfig",
"getGeneratorConfig",
"(",
")",
"{",
"if",
"(",
"this",
".",
"generatorConfig",
"==",
"null",
")",
"{",
"this",
".",
"generatorConfig",
"=",
"this",
".",
"generatorConfigProvider",
".",
"get",
"(",
"EcoreUtil",
".",
"getRootContainer... | Replies the generator configuration.
@return the configuration. | [
"Replies",
"the",
"generator",
"configuration",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/GenerationContext.java#L192-L198 |
57,496 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/GenerationContext.java | GenerationContext.getGeneratorConfig2 | public GeneratorConfig2 getGeneratorConfig2() {
if (this.generatorConfig2 == null) {
this.generatorConfig2 = this.generatorConfigProvider2.get(
EcoreUtil.getRootContainer(this.contextObject));
}
return this.generatorConfig2;
} | java | public GeneratorConfig2 getGeneratorConfig2() {
if (this.generatorConfig2 == null) {
this.generatorConfig2 = this.generatorConfigProvider2.get(
EcoreUtil.getRootContainer(this.contextObject));
}
return this.generatorConfig2;
} | [
"public",
"GeneratorConfig2",
"getGeneratorConfig2",
"(",
")",
"{",
"if",
"(",
"this",
".",
"generatorConfig2",
"==",
"null",
")",
"{",
"this",
".",
"generatorConfig2",
"=",
"this",
".",
"generatorConfigProvider2",
".",
"get",
"(",
"EcoreUtil",
".",
"getRootCont... | Replies the generator configuration v2.
@return the configuration. | [
"Replies",
"the",
"generator",
"configuration",
"v2",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/GenerationContext.java#L204-L210 |
57,497 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/GenerationContext.java | GenerationContext.getGuardEvalationCodeFor | public Collection<Procedure1<? super ITreeAppendable>> getGuardEvalationCodeFor(SarlBehaviorUnit source) {
assert source != null;
final String id = source.getName().getIdentifier();
final Collection<Procedure1<? super ITreeAppendable>> evaluators;
final Pair<SarlBehaviorUnit, Collection<Procedure1<? super ITree... | java | public Collection<Procedure1<? super ITreeAppendable>> getGuardEvalationCodeFor(SarlBehaviorUnit source) {
assert source != null;
final String id = source.getName().getIdentifier();
final Collection<Procedure1<? super ITreeAppendable>> evaluators;
final Pair<SarlBehaviorUnit, Collection<Procedure1<? super ITree... | [
"public",
"Collection",
"<",
"Procedure1",
"<",
"?",
"super",
"ITreeAppendable",
">",
">",
"getGuardEvalationCodeFor",
"(",
"SarlBehaviorUnit",
"source",
")",
"{",
"assert",
"source",
"!=",
"null",
";",
"final",
"String",
"id",
"=",
"source",
".",
"getName",
"... | Replies the guard evaluation code for the given event.
@param source the source of the guard evaluation.
@return the guard evaluators. | [
"Replies",
"the",
"guard",
"evaluation",
"code",
"for",
"the",
"given",
"event",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/GenerationContext.java#L226-L239 |
57,498 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/GenerationContext.java | GenerationContext.getPostFinalizationElements | public List<Runnable> getPostFinalizationElements() {
final GenerationContext prt = getParentContext();
if (prt != null) {
return prt.getPostFinalizationElements();
}
return this.postFinalization;
} | java | public List<Runnable> getPostFinalizationElements() {
final GenerationContext prt = getParentContext();
if (prt != null) {
return prt.getPostFinalizationElements();
}
return this.postFinalization;
} | [
"public",
"List",
"<",
"Runnable",
">",
"getPostFinalizationElements",
"(",
")",
"{",
"final",
"GenerationContext",
"prt",
"=",
"getParentContext",
"(",
")",
";",
"if",
"(",
"prt",
"!=",
"null",
")",
"{",
"return",
"prt",
".",
"getPostFinalizationElements",
"(... | Replies the collection of the elements that must be generated after
the generation process of the current SARL element.
<p>The differed generation element are the element's components that could be
generated after the complete JVM type is generated. They are extended the
JVM type definition with additionnal elements (... | [
"Replies",
"the",
"collection",
"of",
"the",
"elements",
"that",
"must",
"be",
"generated",
"after",
"the",
"generation",
"process",
"of",
"the",
"current",
"SARL",
"element",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/GenerationContext.java#L346-L352 |
57,499 | sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/GeneratorConfigProvider2.java | GeneratorConfigProvider2.install | public GeneratorConfig2 install(final ResourceSet resourceSet, GeneratorConfig2 config) {
GeneratorConfigAdapter adapter = GeneratorConfigAdapter.findInEmfObject(resourceSet);
if (adapter == null) {
adapter = new GeneratorConfigAdapter();
}
adapter.attachToEmfObject(resourceSet);
return adapter.getLanguage... | java | public GeneratorConfig2 install(final ResourceSet resourceSet, GeneratorConfig2 config) {
GeneratorConfigAdapter adapter = GeneratorConfigAdapter.findInEmfObject(resourceSet);
if (adapter == null) {
adapter = new GeneratorConfigAdapter();
}
adapter.attachToEmfObject(resourceSet);
return adapter.getLanguage... | [
"public",
"GeneratorConfig2",
"install",
"(",
"final",
"ResourceSet",
"resourceSet",
",",
"GeneratorConfig2",
"config",
")",
"{",
"GeneratorConfigAdapter",
"adapter",
"=",
"GeneratorConfigAdapter",
".",
"findInEmfObject",
"(",
"resourceSet",
")",
";",
"if",
"(",
"adap... | Install the given configuration in the resource set.
@param resourceSet the resource set.
@param config the ne configuration.
@return the configuration. | [
"Install",
"the",
"given",
"configuration",
"in",
"the",
"resource",
"set",
"."
] | ca00ff994598c730339972def4e19a60e0b8cace | https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/compiler/GeneratorConfigProvider2.java#L86-L93 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.