repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/AbstractDocumentationMojo.java
AbstractDocumentationMojo.toPackageFolder
protected static File toPackageFolder(String packageName) { File file = null; for (final String element : packageName.split("[.]")) { //$NON-NLS-1$ if (file == null) { file = new File(element); } else { file = new File(file, element); } } return file; }
java
protected static File toPackageFolder(String packageName) { File file = null; for (final String element : packageName.split("[.]")) { //$NON-NLS-1$ if (file == null) { file = new File(element); } else { file = new File(file, element); } } return file; }
[ "protected", "static", "File", "toPackageFolder", "(", "String", "packageName", ")", "{", "File", "file", "=", "null", ";", "for", "(", "final", "String", "element", ":", "packageName", ".", "split", "(", "\"[.]\"", ")", ")", "{", "//$NON-NLS-1$", "if", "(...
Convert a a package name for therelative file. @param packageName the name. @return the file.
[ "Convert", "a", "a", "package", "name", "for", "therelative", "file", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/AbstractDocumentationMojo.java#L519-L529
train
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/AbstractDocumentationMojo.java
AbstractDocumentationMojo.getBootClassPath
protected String getBootClassPath() throws IOException { final Toolchain toolchain = this.toolchainManager.getToolchainFromBuildContext("jdk", this.session); //$NON-NLS-1$ if (toolchain instanceof JavaToolchain && toolchain instanceof ToolchainPrivate) { final JavaToolchain javaToolChain = (JavaToolchain) toolch...
java
protected String getBootClassPath() throws IOException { final Toolchain toolchain = this.toolchainManager.getToolchainFromBuildContext("jdk", this.session); //$NON-NLS-1$ if (toolchain instanceof JavaToolchain && toolchain instanceof ToolchainPrivate) { final JavaToolchain javaToolChain = (JavaToolchain) toolch...
[ "protected", "String", "getBootClassPath", "(", ")", "throws", "IOException", "{", "final", "Toolchain", "toolchain", "=", "this", ".", "toolchainManager", ".", "getToolchainFromBuildContext", "(", "\"jdk\"", ",", "this", ".", "session", ")", ";", "//$NON-NLS-1$", ...
Replies the boot classpath. @return the boot classpath. @throws IOException in case of error.
[ "Replies", "the", "boot", "classpath", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/AbstractDocumentationMojo.java#L563-L592
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java
ExpressionBuilderImpl.fromString
@Pure protected XExpression fromString(String expression) { if (!Strings.isEmpty(expression)) { ResourceSet resourceSet = this.context.eResource().getResourceSet(); URI uri = computeUnusedUri(resourceSet); Resource resource = getResourceFactory().createResource(uri); resourceSet.getResources().add(resour...
java
@Pure protected XExpression fromString(String expression) { if (!Strings.isEmpty(expression)) { ResourceSet resourceSet = this.context.eResource().getResourceSet(); URI uri = computeUnusedUri(resourceSet); Resource resource = getResourceFactory().createResource(uri); resourceSet.getResources().add(resour...
[ "@", "Pure", "protected", "XExpression", "fromString", "(", "String", "expression", ")", "{", "if", "(", "!", "Strings", ".", "isEmpty", "(", "expression", ")", ")", "{", "ResourceSet", "resourceSet", "=", "this", ".", "context", ".", "eResource", "(", ")"...
Create an expression but does not change the container. @param expression the textual representation of the expression. @return the expression.
[ "Create", "an", "expression", "but", "does", "not", "change", "the", "container", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java#L158-L178
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java
ExpressionBuilderImpl.getDefaultXExpressionForType
@Pure public XExpression getDefaultXExpressionForType(String type) { //TODO: Check if a similar function exists in the Xbase library. XExpression expr = null; if (type != null && !"void".equals(type) && !Void.class.getName().equals(type)) { switch (type) { case "boolean": case "java.lang.Boolean": X...
java
@Pure public XExpression getDefaultXExpressionForType(String type) { //TODO: Check if a similar function exists in the Xbase library. XExpression expr = null; if (type != null && !"void".equals(type) && !Void.class.getName().equals(type)) { switch (type) { case "boolean": case "java.lang.Boolean": X...
[ "@", "Pure", "public", "XExpression", "getDefaultXExpressionForType", "(", "String", "type", ")", "{", "//TODO: Check if a similar function exists in the Xbase library.", "XExpression", "expr", "=", "null", ";", "if", "(", "type", "!=", "null", "&&", "!", "\"void\"", ...
Replies the XExpression for the default value associated to the given type. @param type the type for which the default value should be determined. @return the default value.
[ "Replies", "the", "XExpression", "for", "the", "default", "value", "associated", "to", "the", "given", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java#L184-L237
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java
ExpressionBuilderImpl.getDefaultValueForType
@Pure public String getDefaultValueForType(String type) { //TODO: Check if a similar function exists in the Xbase library. String defaultValue = ""; if (!Strings.isEmpty(type) && !"void".equals(type)) { switch (type) { case "boolean": defaultValue = "true"; break; case "double": defaultValue...
java
@Pure public String getDefaultValueForType(String type) { //TODO: Check if a similar function exists in the Xbase library. String defaultValue = ""; if (!Strings.isEmpty(type) && !"void".equals(type)) { switch (type) { case "boolean": defaultValue = "true"; break; case "double": defaultValue...
[ "@", "Pure", "public", "String", "getDefaultValueForType", "(", "String", "type", ")", "{", "//TODO: Check if a similar function exists in the Xbase library.", "String", "defaultValue", "=", "\"\"", ";", "if", "(", "!", "Strings", ".", "isEmpty", "(", "type", ")", "...
Replies the default value for the given type. @param type the type for which the default value should be determined. @return the default value.
[ "Replies", "the", "default", "value", "for", "the", "given", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java#L243-L279
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java
ExpressionBuilderImpl.createReferenceToThis
public XFeatureCall createReferenceToThis() { final XExpression expr = getXExpression(); XtendTypeDeclaration type = EcoreUtil2.getContainerOfType(expr, XtendTypeDeclaration.class); JvmType jvmObject = getAssociatedElement(JvmType.class, type, expr.eResource()); final XFeatureCall thisFeature = XbaseFactory.eIN...
java
public XFeatureCall createReferenceToThis() { final XExpression expr = getXExpression(); XtendTypeDeclaration type = EcoreUtil2.getContainerOfType(expr, XtendTypeDeclaration.class); JvmType jvmObject = getAssociatedElement(JvmType.class, type, expr.eResource()); final XFeatureCall thisFeature = XbaseFactory.eIN...
[ "public", "XFeatureCall", "createReferenceToThis", "(", ")", "{", "final", "XExpression", "expr", "=", "getXExpression", "(", ")", ";", "XtendTypeDeclaration", "type", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "expr", ",", "XtendTypeDeclaration", ".", "clas...
Create a reference to "this" object or to the current type. @return the reference.
[ "Create", "a", "reference", "to", "this", "object", "or", "to", "the", "current", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java#L315-L322
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java
ExpressionBuilderImpl.createReferenceToSuper
public XFeatureCall createReferenceToSuper() { final XExpression expr = getXExpression(); XtendTypeDeclaration type = EcoreUtil2.getContainerOfType(expr, XtendTypeDeclaration.class); JvmType jvmObject = getAssociatedElement(JvmType.class, type, expr.eResource()); final XFeatureCall superFeature = XbaseFactory.e...
java
public XFeatureCall createReferenceToSuper() { final XExpression expr = getXExpression(); XtendTypeDeclaration type = EcoreUtil2.getContainerOfType(expr, XtendTypeDeclaration.class); JvmType jvmObject = getAssociatedElement(JvmType.class, type, expr.eResource()); final XFeatureCall superFeature = XbaseFactory.e...
[ "public", "XFeatureCall", "createReferenceToSuper", "(", ")", "{", "final", "XExpression", "expr", "=", "getXExpression", "(", ")", ";", "XtendTypeDeclaration", "type", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "expr", ",", "XtendTypeDeclaration", ".", "cla...
Create a reference to "super" object or to the super type. @return the reference.
[ "Create", "a", "reference", "to", "super", "object", "or", "to", "the", "super", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ExpressionBuilderImpl.java#L328-L350
train
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/services/network/NetworkUtil.java
NetworkUtil.getLoopbackAddress
public static InetAddress getLoopbackAddress() { try { final Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); if (interfaces != null) { NetworkInterface inter; InetAddress adr; Enumeration<InetAddress> addrs; while (interfaces.hasMoreElements()) { inter = ...
java
public static InetAddress getLoopbackAddress() { try { final Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); if (interfaces != null) { NetworkInterface inter; InetAddress adr; Enumeration<InetAddress> addrs; while (interfaces.hasMoreElements()) { inter = ...
[ "public", "static", "InetAddress", "getLoopbackAddress", "(", ")", "{", "try", "{", "final", "Enumeration", "<", "NetworkInterface", ">", "interfaces", "=", "NetworkInterface", ".", "getNetworkInterfaces", "(", ")", ";", "if", "(", "interfaces", "!=", "null", ")...
Replies the IPv4 loopback address. @return the IPv4 loopback address or <code>null</code> if none.
[ "Replies", "the", "IPv4", "loopback", "address", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/services/network/NetworkUtil.java#L95-L119
train
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/services/network/NetworkUtil.java
NetworkUtil.toURI
public static URI toURI(String uri) throws URISyntaxException { final URI u = new URI(uri); // Inspired by ZeroMQ String adr = u.getAuthority(); if (adr == null) { adr = u.getPath(); } if (adr != null && adr.endsWith(":*")) { //$NON-NLS-1$ return new URI(u.getScheme(), u.getUserInfo(), adr.substring(0...
java
public static URI toURI(String uri) throws URISyntaxException { final URI u = new URI(uri); // Inspired by ZeroMQ String adr = u.getAuthority(); if (adr == null) { adr = u.getPath(); } if (adr != null && adr.endsWith(":*")) { //$NON-NLS-1$ return new URI(u.getScheme(), u.getUserInfo(), adr.substring(0...
[ "public", "static", "URI", "toURI", "(", "String", "uri", ")", "throws", "URISyntaxException", "{", "final", "URI", "u", "=", "new", "URI", "(", "uri", ")", ";", "// Inspired by ZeroMQ", "String", "adr", "=", "u", ".", "getAuthority", "(", ")", ";", "if"...
Convert a string URI to an object URI. <p>This function support the syntax ":*" for the port. @param uri the string representation of the URI to parse. @return the URI. @throws URISyntaxException - if the given string has invalid format.
[ "Convert", "a", "string", "URI", "to", "an", "object", "URI", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/services/network/NetworkUtil.java#L150-L162
train
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/services/network/NetworkUtil.java
NetworkUtil.toURI
public static URI toURI(InetAddress adr) { try { return new URI("tcp", adr.getHostAddress(), null, null); //$NON-NLS-1$ } catch (URISyntaxException e) { throw new IOError(e); } }
java
public static URI toURI(InetAddress adr) { try { return new URI("tcp", adr.getHostAddress(), null, null); //$NON-NLS-1$ } catch (URISyntaxException e) { throw new IOError(e); } }
[ "public", "static", "URI", "toURI", "(", "InetAddress", "adr", ")", "{", "try", "{", "return", "new", "URI", "(", "\"tcp\"", ",", "adr", ".", "getHostAddress", "(", ")", ",", "null", ",", "null", ")", ";", "//$NON-NLS-1$", "}", "catch", "(", "URISyntax...
Convert an inet address to an URI. @param adr address to convert to URI. @return the URI.
[ "Convert", "an", "inet", "address", "to", "an", "URI", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/services/network/NetworkUtil.java#L170-L176
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.toLightweightTypeReference
protected LightweightTypeReference toLightweightTypeReference(JvmType type, EObject context) { final StandardTypeReferenceOwner owner = new StandardTypeReferenceOwner(getServices(), context); final LightweightTypeReferenceFactory factory = new LightweightTypeReferenceFactory(owner, false); return factory.toLightw...
java
protected LightweightTypeReference toLightweightTypeReference(JvmType type, EObject context) { final StandardTypeReferenceOwner owner = new StandardTypeReferenceOwner(getServices(), context); final LightweightTypeReferenceFactory factory = new LightweightTypeReferenceFactory(owner, false); return factory.toLightw...
[ "protected", "LightweightTypeReference", "toLightweightTypeReference", "(", "JvmType", "type", ",", "EObject", "context", ")", "{", "final", "StandardTypeReferenceOwner", "owner", "=", "new", "StandardTypeReferenceOwner", "(", "getServices", "(", ")", ",", "context", ")...
Create a lightweight type reference from the given type. @param type the type to point to. @param context the context in which the reference is located. @return the reference.
[ "Create", "a", "lightweight", "type", "reference", "from", "the", "given", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L472-L476
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.isIgnored
protected boolean isIgnored(String issueCode, EObject currentObject) { final IssueSeverities severities = getIssueSeverities(getContext(), currentObject); return severities.isIgnored(issueCode); }
java
protected boolean isIgnored(String issueCode, EObject currentObject) { final IssueSeverities severities = getIssueSeverities(getContext(), currentObject); return severities.isIgnored(issueCode); }
[ "protected", "boolean", "isIgnored", "(", "String", "issueCode", ",", "EObject", "currentObject", ")", "{", "final", "IssueSeverities", "severities", "=", "getIssueSeverities", "(", "getContext", "(", ")", ",", "currentObject", ")", ";", "return", "severities", "....
Replies if the given issue is ignored for the given object. @param issueCode the code if the issue. @param currentObject the current object. @return <code>true</code> if the issue is ignored. @see #isIgnored(String)
[ "Replies", "if", "the", "given", "issue", "is", "ignored", "for", "the", "given", "object", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L506-L509
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.canonicalName
protected String canonicalName(EObject object) { if (object instanceof JvmIdentifiableElement) { return ((JvmIdentifiableElement) object).getQualifiedName(); } final EObject jvmElement = this.associations.getPrimaryJvmElement(object); if (jvmElement instanceof JvmIdentifiableElement) { return ((JvmIdentif...
java
protected String canonicalName(EObject object) { if (object instanceof JvmIdentifiableElement) { return ((JvmIdentifiableElement) object).getQualifiedName(); } final EObject jvmElement = this.associations.getPrimaryJvmElement(object); if (jvmElement instanceof JvmIdentifiableElement) { return ((JvmIdentif...
[ "protected", "String", "canonicalName", "(", "EObject", "object", ")", "{", "if", "(", "object", "instanceof", "JvmIdentifiableElement", ")", "{", "return", "(", "(", "JvmIdentifiableElement", ")", "object", ")", ".", "getQualifiedName", "(", ")", ";", "}", "f...
Replies the canonical name of the given object. @param object the object. @return the canonical name or <code>null</code> if it cannot be computed.
[ "Replies", "the", "canonical", "name", "of", "the", "given", "object", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L516-L525
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkSpaceUse
@Check public void checkSpaceUse(SarlSpace space) { error(MessageFormat.format( Messages.SARLValidator_0, this.grammarAccess.getSpaceKeyword()), space, null); }
java
@Check public void checkSpaceUse(SarlSpace space) { error(MessageFormat.format( Messages.SARLValidator_0, this.grammarAccess.getSpaceKeyword()), space, null); }
[ "@", "Check", "public", "void", "checkSpaceUse", "(", "SarlSpace", "space", ")", "{", "error", "(", "MessageFormat", ".", "format", "(", "Messages", ".", "SARLValidator_0", ",", "this", ".", "grammarAccess", ".", "getSpaceKeyword", "(", ")", ")", ",", "space...
Space keyword is reserved. @param space the space to check.
[ "Space", "keyword", "is", "reserved", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L531-L538
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkArtifactUse
@Check public void checkArtifactUse(SarlArtifact artifact) { error(MessageFormat.format( Messages.SARLValidator_0, this.grammarAccess.getSpaceKeyword()), artifact, null); }
java
@Check public void checkArtifactUse(SarlArtifact artifact) { error(MessageFormat.format( Messages.SARLValidator_0, this.grammarAccess.getSpaceKeyword()), artifact, null); }
[ "@", "Check", "public", "void", "checkArtifactUse", "(", "SarlArtifact", "artifact", ")", "{", "error", "(", "MessageFormat", ".", "format", "(", "Messages", ".", "SARLValidator_0", ",", "this", ".", "grammarAccess", ".", "getSpaceKeyword", "(", ")", ")", ",",...
Artifact keyword is reserved. @param artifact the artifact to check.
[ "Artifact", "keyword", "is", "reserved", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L544-L551
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkEarlyExitEventInFires
@Check public void checkEarlyExitEventInFires(SarlAction action) { int i = 0; for (final JvmTypeReference event : action.getFiredEvents()) { if (!this.earlyExitComputer.isEarlyExitEvent(event)) { warning(MessageFormat.format( Messages.SARLValidator_95, event.getSimpleName()), action, ...
java
@Check public void checkEarlyExitEventInFires(SarlAction action) { int i = 0; for (final JvmTypeReference event : action.getFiredEvents()) { if (!this.earlyExitComputer.isEarlyExitEvent(event)) { warning(MessageFormat.format( Messages.SARLValidator_95, event.getSimpleName()), action, ...
[ "@", "Check", "public", "void", "checkEarlyExitEventInFires", "(", "SarlAction", "action", ")", "{", "int", "i", "=", "0", ";", "for", "(", "final", "JvmTypeReference", "event", ":", "action", ".", "getFiredEvents", "(", ")", ")", "{", "if", "(", "!", "t...
Emit a warning when the events after the "fires" keyword are not early-exit events. @param action the action to check.
[ "Emit", "a", "warning", "when", "the", "events", "after", "the", "fires", "keyword", "are", "not", "early", "-", "exit", "events", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L557-L571
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkRequiredCapacityUse
@Check public void checkRequiredCapacityUse(SarlRequiredCapacity statement) { warning(MessageFormat.format( Messages.SARLValidator_0, this.grammarAccess.getRequiresKeyword()), statement, null); }
java
@Check public void checkRequiredCapacityUse(SarlRequiredCapacity statement) { warning(MessageFormat.format( Messages.SARLValidator_0, this.grammarAccess.getRequiresKeyword()), statement, null); }
[ "@", "Check", "public", "void", "checkRequiredCapacityUse", "(", "SarlRequiredCapacity", "statement", ")", "{", "warning", "(", "MessageFormat", ".", "format", "(", "Messages", ".", "SARLValidator_0", ",", "this", ".", "grammarAccess", ".", "getRequiresKeyword", "("...
Emit a warning when the "requires" keyword is used. @param statement the statement to check.
[ "Emit", "a", "warning", "when", "the", "requires", "keyword", "is", "used", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L577-L584
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkModifiers
@Check protected void checkModifiers(SarlAgent agent) { this.agentModifierValidator.checkModifiers(agent, MessageFormat.format(Messages.SARLValidator_9, agent.getName())); }
java
@Check protected void checkModifiers(SarlAgent agent) { this.agentModifierValidator.checkModifiers(agent, MessageFormat.format(Messages.SARLValidator_9, agent.getName())); }
[ "@", "Check", "protected", "void", "checkModifiers", "(", "SarlAgent", "agent", ")", "{", "this", ".", "agentModifierValidator", ".", "checkModifiers", "(", "agent", ",", "MessageFormat", ".", "format", "(", "Messages", ".", "SARLValidator_9", ",", "agent", ".",...
Check the modifiers for the SARL agents. @param agent the agent.
[ "Check", "the", "modifiers", "for", "the", "SARL", "agents", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L778-L782
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkModifiers
@Check protected void checkModifiers(SarlBehavior behavior) { this.behaviorModifierValidator.checkModifiers(behavior, MessageFormat.format(Messages.SARLValidator_9, behavior.getName())); }
java
@Check protected void checkModifiers(SarlBehavior behavior) { this.behaviorModifierValidator.checkModifiers(behavior, MessageFormat.format(Messages.SARLValidator_9, behavior.getName())); }
[ "@", "Check", "protected", "void", "checkModifiers", "(", "SarlBehavior", "behavior", ")", "{", "this", ".", "behaviorModifierValidator", ".", "checkModifiers", "(", "behavior", ",", "MessageFormat", ".", "format", "(", "Messages", ".", "SARLValidator_9", ",", "be...
Check the modifiers for the SARL behaviors. @param behavior the behavior.
[ "Check", "the", "modifiers", "for", "the", "SARL", "behaviors", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L788-L792
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkModifiers
@Check protected void checkModifiers(SarlCapacity capacity) { this.capacityModifierValidator.checkModifiers(capacity, MessageFormat.format(Messages.SARLValidator_9, capacity.getName())); }
java
@Check protected void checkModifiers(SarlCapacity capacity) { this.capacityModifierValidator.checkModifiers(capacity, MessageFormat.format(Messages.SARLValidator_9, capacity.getName())); }
[ "@", "Check", "protected", "void", "checkModifiers", "(", "SarlCapacity", "capacity", ")", "{", "this", ".", "capacityModifierValidator", ".", "checkModifiers", "(", "capacity", ",", "MessageFormat", ".", "format", "(", "Messages", ".", "SARLValidator_9", ",", "ca...
Check the modifiers for the SARL capacities. @param capacity the capacity.
[ "Check", "the", "modifiers", "for", "the", "SARL", "capacities", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L798-L802
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkModifiers
@Check protected void checkModifiers(SarlSkill skill) { this.skillModifierValidator.checkModifiers(skill, MessageFormat.format(Messages.SARLValidator_9, skill.getName())); }
java
@Check protected void checkModifiers(SarlSkill skill) { this.skillModifierValidator.checkModifiers(skill, MessageFormat.format(Messages.SARLValidator_9, skill.getName())); }
[ "@", "Check", "protected", "void", "checkModifiers", "(", "SarlSkill", "skill", ")", "{", "this", ".", "skillModifierValidator", ".", "checkModifiers", "(", "skill", ",", "MessageFormat", ".", "format", "(", "Messages", ".", "SARLValidator_9", ",", "skill", ".",...
Check the modifiers for the SARL skills. @param skill the skill.
[ "Check", "the", "modifiers", "for", "the", "SARL", "skills", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L808-L812
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkContainerType
@Check public void checkContainerType(SarlAgent agent) { final XtendTypeDeclaration declaringType = agent.getDeclaringType(); if (declaringType != null) { final String name = canonicalName(declaringType); assert name != null; error(MessageFormat.format(Messages.SARLValidator_28, name), agent, nu...
java
@Check public void checkContainerType(SarlAgent agent) { final XtendTypeDeclaration declaringType = agent.getDeclaringType(); if (declaringType != null) { final String name = canonicalName(declaringType); assert name != null; error(MessageFormat.format(Messages.SARLValidator_28, name), agent, nu...
[ "@", "Check", "public", "void", "checkContainerType", "(", "SarlAgent", "agent", ")", "{", "final", "XtendTypeDeclaration", "declaringType", "=", "agent", ".", "getDeclaringType", "(", ")", ";", "if", "(", "declaringType", "!=", "null", ")", "{", "final", "Str...
Check the container for the SARL agents. @param agent the agent.
[ "Check", "the", "container", "for", "the", "SARL", "agents", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L873-L884
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkContainerType
@Check public void checkContainerType(SarlBehavior behavior) { final XtendTypeDeclaration declaringType = behavior.getDeclaringType(); if (declaringType != null) { final String name = canonicalName(declaringType); assert name != null; error(MessageFormat.format(Messages.SARLValidator_29, name), behav...
java
@Check public void checkContainerType(SarlBehavior behavior) { final XtendTypeDeclaration declaringType = behavior.getDeclaringType(); if (declaringType != null) { final String name = canonicalName(declaringType); assert name != null; error(MessageFormat.format(Messages.SARLValidator_29, name), behav...
[ "@", "Check", "public", "void", "checkContainerType", "(", "SarlBehavior", "behavior", ")", "{", "final", "XtendTypeDeclaration", "declaringType", "=", "behavior", ".", "getDeclaringType", "(", ")", ";", "if", "(", "declaringType", "!=", "null", ")", "{", "final...
Check the container for the SARL behaviors. @param behavior the behavior.
[ "Check", "the", "container", "for", "the", "SARL", "behaviors", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L890-L901
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkContainerType
@Check public void checkContainerType(SarlCapacity capacity) { final XtendTypeDeclaration declaringType = capacity.getDeclaringType(); if (declaringType != null) { final String name = canonicalName(declaringType); assert name != null; error(MessageFormat.format(Messages.SARLValidator_30, name), capac...
java
@Check public void checkContainerType(SarlCapacity capacity) { final XtendTypeDeclaration declaringType = capacity.getDeclaringType(); if (declaringType != null) { final String name = canonicalName(declaringType); assert name != null; error(MessageFormat.format(Messages.SARLValidator_30, name), capac...
[ "@", "Check", "public", "void", "checkContainerType", "(", "SarlCapacity", "capacity", ")", "{", "final", "XtendTypeDeclaration", "declaringType", "=", "capacity", ".", "getDeclaringType", "(", ")", ";", "if", "(", "declaringType", "!=", "null", ")", "{", "final...
Check the container for the SARL capacities. @param capacity the capacity.
[ "Check", "the", "container", "for", "the", "SARL", "capacities", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L907-L918
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkContainerType
@Check public void checkContainerType(SarlSkill skill) { final XtendTypeDeclaration declaringType = skill.getDeclaringType(); if (declaringType != null) { final String name = canonicalName(declaringType); assert name != null; error(MessageFormat.format(Messages.SARLValidator_31, name), skill, nu...
java
@Check public void checkContainerType(SarlSkill skill) { final XtendTypeDeclaration declaringType = skill.getDeclaringType(); if (declaringType != null) { final String name = canonicalName(declaringType); assert name != null; error(MessageFormat.format(Messages.SARLValidator_31, name), skill, nu...
[ "@", "Check", "public", "void", "checkContainerType", "(", "SarlSkill", "skill", ")", "{", "final", "XtendTypeDeclaration", "declaringType", "=", "skill", ".", "getDeclaringType", "(", ")", ";", "if", "(", "declaringType", "!=", "null", ")", "{", "final", "Str...
Check the container for the SARL skills. @param skill the skill.
[ "Check", "the", "container", "for", "the", "SARL", "skills", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L924-L935
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkFinalFieldInitialization
@Check public void checkFinalFieldInitialization(SarlEvent event) { final JvmGenericType inferredType = this.associations.getInferredType(event); if (inferredType != null) { checkFinalFieldInitialization(inferredType); } }
java
@Check public void checkFinalFieldInitialization(SarlEvent event) { final JvmGenericType inferredType = this.associations.getInferredType(event); if (inferredType != null) { checkFinalFieldInitialization(inferredType); } }
[ "@", "Check", "public", "void", "checkFinalFieldInitialization", "(", "SarlEvent", "event", ")", "{", "final", "JvmGenericType", "inferredType", "=", "this", ".", "associations", ".", "getInferredType", "(", "event", ")", ";", "if", "(", "inferredType", "!=", "n...
Check if all the fields are initialized in a SARL event. @param event the event.
[ "Check", "if", "all", "the", "fields", "are", "initialized", "in", "a", "SARL", "event", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L958-L964
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkFinalFieldInitialization
@Check public void checkFinalFieldInitialization(SarlBehavior behavior) { final JvmGenericType inferredType = this.associations.getInferredType(behavior); if (inferredType != null) { checkFinalFieldInitialization(inferredType); } }
java
@Check public void checkFinalFieldInitialization(SarlBehavior behavior) { final JvmGenericType inferredType = this.associations.getInferredType(behavior); if (inferredType != null) { checkFinalFieldInitialization(inferredType); } }
[ "@", "Check", "public", "void", "checkFinalFieldInitialization", "(", "SarlBehavior", "behavior", ")", "{", "final", "JvmGenericType", "inferredType", "=", "this", ".", "associations", ".", "getInferredType", "(", "behavior", ")", ";", "if", "(", "inferredType", "...
Check if all the fields are initialized in a SARL behavior. @param behavior the behavior.
[ "Check", "if", "all", "the", "fields", "are", "initialized", "in", "a", "SARL", "behavior", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L970-L976
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkFinalFieldInitialization
@Check public void checkFinalFieldInitialization(SarlSkill skill) { final JvmGenericType inferredType = this.associations.getInferredType(skill); if (inferredType != null) { checkFinalFieldInitialization(inferredType); } }
java
@Check public void checkFinalFieldInitialization(SarlSkill skill) { final JvmGenericType inferredType = this.associations.getInferredType(skill); if (inferredType != null) { checkFinalFieldInitialization(inferredType); } }
[ "@", "Check", "public", "void", "checkFinalFieldInitialization", "(", "SarlSkill", "skill", ")", "{", "final", "JvmGenericType", "inferredType", "=", "this", ".", "associations", ".", "getInferredType", "(", "skill", ")", ";", "if", "(", "inferredType", "!=", "n...
Check if all the fields are initialized in a SARL skill. @param skill the skill.
[ "Check", "if", "all", "the", "fields", "are", "initialized", "in", "a", "SARL", "skill", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L982-L988
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkFinalFieldInitialization
@Check public void checkFinalFieldInitialization(SarlAgent agent) { final JvmGenericType inferredType = this.associations.getInferredType(agent); if (inferredType != null) { checkFinalFieldInitialization(inferredType); } }
java
@Check public void checkFinalFieldInitialization(SarlAgent agent) { final JvmGenericType inferredType = this.associations.getInferredType(agent); if (inferredType != null) { checkFinalFieldInitialization(inferredType); } }
[ "@", "Check", "public", "void", "checkFinalFieldInitialization", "(", "SarlAgent", "agent", ")", "{", "final", "JvmGenericType", "inferredType", "=", "this", ".", "associations", ".", "getInferredType", "(", "agent", ")", ";", "if", "(", "inferredType", "!=", "n...
Check if all the fields are initialized in a SARL agent. @param agent the agent.
[ "Check", "if", "all", "the", "fields", "are", "initialized", "in", "a", "SARL", "agent", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L994-L1000
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkSuperConstructor
@SuppressWarnings({"checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity", "checkstyle:nestedifdepth"}) protected void checkSuperConstructor( XtendTypeDeclaration container, EStructuralFeature feature, Collection<ActionParameterTypes> defaultSignatures) { final JvmDeclaredType jvmElement = this.ass...
java
@SuppressWarnings({"checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity", "checkstyle:nestedifdepth"}) protected void checkSuperConstructor( XtendTypeDeclaration container, EStructuralFeature feature, Collection<ActionParameterTypes> defaultSignatures) { final JvmDeclaredType jvmElement = this.ass...
[ "@", "SuppressWarnings", "(", "{", "\"checkstyle:cyclomaticcomplexity\"", ",", "\"checkstyle:npathcomplexity\"", ",", "\"checkstyle:nestedifdepth\"", "}", ")", "protected", "void", "checkSuperConstructor", "(", "XtendTypeDeclaration", "container", ",", "EStructuralFeature", "fe...
Check the super constructors. @param container the container. @param feature the syntactic feature related to the supertypes. @param defaultSignatures the signatures of the default constructors for the given container.
[ "Check", "the", "super", "constructors", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1008-L1079
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkForbiddenCalls
@Check(CheckType.FAST) public void checkForbiddenCalls(XAbstractFeatureCall expression) { if (this.featureCallValidator.isDisallowedCall(expression)) { error( MessageFormat.format( Messages.SARLValidator_36, expression.getFeature().getIdentifier()), expression, null, ValidationMe...
java
@Check(CheckType.FAST) public void checkForbiddenCalls(XAbstractFeatureCall expression) { if (this.featureCallValidator.isDisallowedCall(expression)) { error( MessageFormat.format( Messages.SARLValidator_36, expression.getFeature().getIdentifier()), expression, null, ValidationMe...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkForbiddenCalls", "(", "XAbstractFeatureCall", "expression", ")", "{", "if", "(", "this", ".", "featureCallValidator", ".", "isDisallowedCall", "(", "expression", ")", ")", "{", "error", ...
Check if the call is forbidden. <p>One example of a forbidden feature is {@link System#exit(int)}. @param expression the expression.
[ "Check", "if", "the", "call", "is", "forbidden", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1168-L1180
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkDiscouragedCalls
@Check(CheckType.FAST) public void checkDiscouragedCalls(XAbstractFeatureCall expression) { if (!isIgnored(DISCOURAGED_REFERENCE) && this.featureCallValidator.isDiscouragedCall(expression)) { addIssue( MessageFormat.format(Messages.SARLValidator_37, expression.getConcreteSyntaxFeatureName()), ...
java
@Check(CheckType.FAST) public void checkDiscouragedCalls(XAbstractFeatureCall expression) { if (!isIgnored(DISCOURAGED_REFERENCE) && this.featureCallValidator.isDiscouragedCall(expression)) { addIssue( MessageFormat.format(Messages.SARLValidator_37, expression.getConcreteSyntaxFeatureName()), ...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkDiscouragedCalls", "(", "XAbstractFeatureCall", "expression", ")", "{", "if", "(", "!", "isIgnored", "(", "DISCOURAGED_REFERENCE", ")", "&&", "this", ".", "featureCallValidator", ".", "isD...
Check if the call is discouraged. <p>One example of a discouraged feature is {@link System#err}. @param expression the expression.
[ "Check", "if", "the", "call", "is", "discouraged", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1188-L1198
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkDefaultValueTypeCompatibleWithParameterType
@Check public void checkDefaultValueTypeCompatibleWithParameterType(SarlFormalParameter param) { final XExpression defaultValue = param.getDefaultValue(); if (defaultValue != null) { final JvmTypeReference rawType = param.getParameterType(); assert rawType != null; final LightweightTypeReference toType = ...
java
@Check public void checkDefaultValueTypeCompatibleWithParameterType(SarlFormalParameter param) { final XExpression defaultValue = param.getDefaultValue(); if (defaultValue != null) { final JvmTypeReference rawType = param.getParameterType(); assert rawType != null; final LightweightTypeReference toType = ...
[ "@", "Check", "public", "void", "checkDefaultValueTypeCompatibleWithParameterType", "(", "SarlFormalParameter", "param", ")", "{", "final", "XExpression", "defaultValue", "=", "param", ".", "getDefaultValue", "(", ")", ";", "if", "(", "defaultValue", "!=", "null", "...
Check if the default values of the formal parameters have a compatible type with the formal parameter. @param param the formal parameter to check.
[ "Check", "if", "the", "default", "values", "of", "the", "formal", "parameters", "have", "a", "compatible", "type", "with", "the", "formal", "parameter", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1204-L1247
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkDefaultValueFieldReference
@Check public void checkDefaultValueFieldReference(SarlFormalParameter param) { final XExpression defaultValue = param.getDefaultValue(); if (defaultValue != null) { final Iterator<XFeatureCall> iter; if (defaultValue instanceof XFeatureCall) { iter = Iterators.singletonIterator((XFeatureCall) defaultVal...
java
@Check public void checkDefaultValueFieldReference(SarlFormalParameter param) { final XExpression defaultValue = param.getDefaultValue(); if (defaultValue != null) { final Iterator<XFeatureCall> iter; if (defaultValue instanceof XFeatureCall) { iter = Iterators.singletonIterator((XFeatureCall) defaultVal...
[ "@", "Check", "public", "void", "checkDefaultValueFieldReference", "(", "SarlFormalParameter", "param", ")", "{", "final", "XExpression", "defaultValue", "=", "param", ".", "getDefaultValue", "(", ")", ";", "if", "(", "defaultValue", "!=", "null", ")", "{", "fin...
Check if the default values has not a reference to the not final fields. @param param the formal parameter to check.
[ "Check", "if", "the", "default", "values", "has", "not", "a", "reference", "to", "the", "not", "final", "fields", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1253-L1289
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkActionName
@Check(CheckType.FAST) public void checkActionName(SarlAction action) { final JvmOperation inferredType = this.associations.getDirectlyInferredOperation(action); final QualifiedName name = QualifiedName.create(inferredType.getQualifiedName('.').split("\\.")); //$NON-NLS-1$ if (this.featureNames.isDisallowedName(...
java
@Check(CheckType.FAST) public void checkActionName(SarlAction action) { final JvmOperation inferredType = this.associations.getDirectlyInferredOperation(action); final QualifiedName name = QualifiedName.create(inferredType.getQualifiedName('.').split("\\.")); //$NON-NLS-1$ if (this.featureNames.isDisallowedName(...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkActionName", "(", "SarlAction", "action", ")", "{", "final", "JvmOperation", "inferredType", "=", "this", ".", "associations", ".", "getDirectlyInferredOperation", "(", "action", ")", ";",...
Check if the given action has a valid name. @param action the action to test. @see SARLFeatureNameValidator
[ "Check", "if", "the", "given", "action", "has", "a", "valid", "name", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1296-L1320
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkFieldName
@Check(CheckType.FAST) public void checkFieldName(SarlField field) { final JvmField inferredType = this.associations.getJvmField(field); final QualifiedName name = Utils.getQualifiedName(inferredType); if (this.featureNames.isDisallowedName(name)) { final String validName = Utils.fixHiddenMember(field.getName...
java
@Check(CheckType.FAST) public void checkFieldName(SarlField field) { final JvmField inferredType = this.associations.getJvmField(field); final QualifiedName name = Utils.getQualifiedName(inferredType); if (this.featureNames.isDisallowedName(name)) { final String validName = Utils.fixHiddenMember(field.getName...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkFieldName", "(", "SarlField", "field", ")", "{", "final", "JvmField", "inferredType", "=", "this", ".", "associations", ".", "getJvmField", "(", "field", ")", ";", "final", "QualifiedN...
Check if the given field has a valid name. @param field the field to test. @see SARLFeatureNameValidator
[ "Check", "if", "the", "given", "field", "has", "a", "valid", "name", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1327-L1350
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkFieldNameShadowing
@Check public void checkFieldNameShadowing(SarlField field) { if (!isIgnored(VARIABLE_NAME_SHADOWING) && !Utils.isHiddenMember(field.getName())) { final JvmField inferredField = this.associations.getJvmField(field); final Map<String, JvmField> inheritedFields = new TreeMap<>(); Utils.populateInheritance...
java
@Check public void checkFieldNameShadowing(SarlField field) { if (!isIgnored(VARIABLE_NAME_SHADOWING) && !Utils.isHiddenMember(field.getName())) { final JvmField inferredField = this.associations.getJvmField(field); final Map<String, JvmField> inheritedFields = new TreeMap<>(); Utils.populateInheritance...
[ "@", "Check", "public", "void", "checkFieldNameShadowing", "(", "SarlField", "field", ")", "{", "if", "(", "!", "isIgnored", "(", "VARIABLE_NAME_SHADOWING", ")", "&&", "!", "Utils", ".", "isHiddenMember", "(", "field", ".", "getName", "(", ")", ")", ")", "...
Check if the given field has a name that is shadowing an inherited field. @param field the field to test.
[ "Check", "if", "the", "given", "field", "has", "a", "name", "that", "is", "shadowing", "an", "inherited", "field", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1356-L1389
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkParameterName
@Check(CheckType.FAST) public void checkParameterName(SarlFormalParameter parameter) { if (this.grammarAccess.getOccurrenceKeyword().equals(parameter.getName())) { error(MessageFormat.format( Messages.SARLValidator_14, this.grammarAccess.getOccurrenceKeyword()), parameter, XtendPackage.Literal...
java
@Check(CheckType.FAST) public void checkParameterName(SarlFormalParameter parameter) { if (this.grammarAccess.getOccurrenceKeyword().equals(parameter.getName())) { error(MessageFormat.format( Messages.SARLValidator_14, this.grammarAccess.getOccurrenceKeyword()), parameter, XtendPackage.Literal...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkParameterName", "(", "SarlFormalParameter", "parameter", ")", "{", "if", "(", "this", ".", "grammarAccess", ".", "getOccurrenceKeyword", "(", ")", ".", "equals", "(", "parameter", ".", ...
Check if the given parameter has a valid name. @param parameter the parameter to test. @see SARLFeatureNameValidator
[ "Check", "if", "the", "given", "parameter", "has", "a", "valid", "name", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1396-L1407
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkParameterName
@Check(CheckType.FAST) public void checkParameterName(XVariableDeclaration variable) { if (this.grammarAccess.getOccurrenceKeyword().equals(variable.getName())) { error(MessageFormat.format( Messages.SARLValidator_15, this.grammarAccess.getOccurrenceKeyword()), variable, XbasePackage.Literals....
java
@Check(CheckType.FAST) public void checkParameterName(XVariableDeclaration variable) { if (this.grammarAccess.getOccurrenceKeyword().equals(variable.getName())) { error(MessageFormat.format( Messages.SARLValidator_15, this.grammarAccess.getOccurrenceKeyword()), variable, XbasePackage.Literals....
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkParameterName", "(", "XVariableDeclaration", "variable", ")", "{", "if", "(", "this", ".", "grammarAccess", ".", "getOccurrenceKeyword", "(", ")", ".", "equals", "(", "variable", ".", ...
Check if the given local variable has a valid name. @param variable the variable to test. @see SARLFeatureNameValidator
[ "Check", "if", "the", "given", "local", "variable", "has", "a", "valid", "name", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1414-L1425
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkRedundantImplementedInterfaces
@Check public void checkRedundantImplementedInterfaces(SarlSkill skill) { checkRedundantInterfaces( skill, SARL_SKILL__IMPLEMENTS, skill.getImplements(), Utils.singletonList(skill.getExtends())); }
java
@Check public void checkRedundantImplementedInterfaces(SarlSkill skill) { checkRedundantInterfaces( skill, SARL_SKILL__IMPLEMENTS, skill.getImplements(), Utils.singletonList(skill.getExtends())); }
[ "@", "Check", "public", "void", "checkRedundantImplementedInterfaces", "(", "SarlSkill", "skill", ")", "{", "checkRedundantInterfaces", "(", "skill", ",", "SARL_SKILL__IMPLEMENTS", ",", "skill", ".", "getImplements", "(", ")", ",", "Utils", ".", "singletonList", "("...
Check if implemented interfaces of a skill are redundant. @param skill the skill.
[ "Check", "if", "implemented", "interfaces", "of", "a", "skill", "are", "redundant", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1599-L1606
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkRedundantImplementedInterfaces
@Check public void checkRedundantImplementedInterfaces(SarlClass xtendClass) { checkRedundantInterfaces( xtendClass, XTEND_CLASS__IMPLEMENTS, xtendClass.getImplements(), Utils.singletonList(xtendClass.getExtends())); }
java
@Check public void checkRedundantImplementedInterfaces(SarlClass xtendClass) { checkRedundantInterfaces( xtendClass, XTEND_CLASS__IMPLEMENTS, xtendClass.getImplements(), Utils.singletonList(xtendClass.getExtends())); }
[ "@", "Check", "public", "void", "checkRedundantImplementedInterfaces", "(", "SarlClass", "xtendClass", ")", "{", "checkRedundantInterfaces", "(", "xtendClass", ",", "XTEND_CLASS__IMPLEMENTS", ",", "xtendClass", ".", "getImplements", "(", ")", ",", "Utils", ".", "singl...
Check if implemented interfaces of a Xtend Class are redundant. @param xtendClass the class.
[ "Check", "if", "implemented", "interfaces", "of", "a", "Xtend", "Class", "are", "redundant", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1612-L1619
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkRedundantImplementedInterfaces
@Check public void checkRedundantImplementedInterfaces(SarlInterface xtendInterface) { checkRedundantInterfaces( xtendInterface, XTEND_INTERFACE__EXTENDS, xtendInterface.getExtends(), Collections.<JvmTypeReference>emptyList()); }
java
@Check public void checkRedundantImplementedInterfaces(SarlInterface xtendInterface) { checkRedundantInterfaces( xtendInterface, XTEND_INTERFACE__EXTENDS, xtendInterface.getExtends(), Collections.<JvmTypeReference>emptyList()); }
[ "@", "Check", "public", "void", "checkRedundantImplementedInterfaces", "(", "SarlInterface", "xtendInterface", ")", "{", "checkRedundantInterfaces", "(", "xtendInterface", ",", "XTEND_INTERFACE__EXTENDS", ",", "xtendInterface", ".", "getExtends", "(", ")", ",", "Collectio...
Check if implemented interfaces of a Xtend Interface are redundant. @param xtendInterface the interface.
[ "Check", "if", "implemented", "interfaces", "of", "a", "Xtend", "Interface", "are", "redundant", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1625-L1632
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkBehaviorUnitGuardType
@Check(CheckType.FAST) public void checkBehaviorUnitGuardType(SarlBehaviorUnit behaviorUnit) { final XExpression guard = behaviorUnit.getGuard(); if (guard != null) { if (this.operationHelper.hasSideEffects(null, guard)) { error(Messages.SARLValidator_53, guard, null, ValidationMessageAcce...
java
@Check(CheckType.FAST) public void checkBehaviorUnitGuardType(SarlBehaviorUnit behaviorUnit) { final XExpression guard = behaviorUnit.getGuard(); if (guard != null) { if (this.operationHelper.hasSideEffects(null, guard)) { error(Messages.SARLValidator_53, guard, null, ValidationMessageAcce...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkBehaviorUnitGuardType", "(", "SarlBehaviorUnit", "behaviorUnit", ")", "{", "final", "XExpression", "guard", "=", "behaviorUnit", ".", "getGuard", "(", ")", ";", "if", "(", "guard", "!=",...
Check the type of the behavior unit's guard. @param behaviorUnit the behavior unit.
[ "Check", "the", "type", "of", "the", "behavior", "unit", "s", "guard", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1638-L1682
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkCapacityTypeForUses
@Check(CheckType.FAST) public void checkCapacityTypeForUses(SarlCapacityUses uses) { for (final JvmParameterizedTypeReference usedType : uses.getCapacities()) { final LightweightTypeReference ref = toLightweightTypeReference(usedType); if (ref != null && !this.inheritanceHelper.isSarlCapacity(ref)) { error...
java
@Check(CheckType.FAST) public void checkCapacityTypeForUses(SarlCapacityUses uses) { for (final JvmParameterizedTypeReference usedType : uses.getCapacities()) { final LightweightTypeReference ref = toLightweightTypeReference(usedType); if (ref != null && !this.inheritanceHelper.isSarlCapacity(ref)) { error...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkCapacityTypeForUses", "(", "SarlCapacityUses", "uses", ")", "{", "for", "(", "final", "JvmParameterizedTypeReference", "usedType", ":", "uses", ".", "getCapacities", "(", ")", ")", "{", ...
Check the type of the capacity uses. @param uses the capacity uses.
[ "Check", "the", "type", "of", "the", "capacity", "uses", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1688-L1705
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkActionFires
@Check(CheckType.FAST) public void checkActionFires(SarlAction action) { for (final JvmTypeReference event : action.getFiredEvents()) { final LightweightTypeReference ref = toLightweightTypeReference(event); if (ref != null && !this.inheritanceHelper.isSarlEvent(ref)) { error(MessageFormat.format( Me...
java
@Check(CheckType.FAST) public void checkActionFires(SarlAction action) { for (final JvmTypeReference event : action.getFiredEvents()) { final LightweightTypeReference ref = toLightweightTypeReference(event); if (ref != null && !this.inheritanceHelper.isSarlEvent(ref)) { error(MessageFormat.format( Me...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkActionFires", "(", "SarlAction", "action", ")", "{", "for", "(", "final", "JvmTypeReference", "event", ":", "action", ".", "getFiredEvents", "(", ")", ")", "{", "final", "LightweightTy...
Check the types of the parameters of the "fires" statement. @param action the signature that contains the "fires" statement.
[ "Check", "the", "types", "of", "the", "parameters", "of", "the", "fires", "statement", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1711-L1728
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkSuperTypes
@Check(CheckType.FAST) public void checkSuperTypes(SarlCapacity capacity) { checkSuperTypes( capacity, SARL_CAPACITY__EXTENDS, capacity.getExtends(), Capacity.class, false); }
java
@Check(CheckType.FAST) public void checkSuperTypes(SarlCapacity capacity) { checkSuperTypes( capacity, SARL_CAPACITY__EXTENDS, capacity.getExtends(), Capacity.class, false); }
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkSuperTypes", "(", "SarlCapacity", "capacity", ")", "{", "checkSuperTypes", "(", "capacity", ",", "SARL_CAPACITY__EXTENDS", ",", "capacity", ".", "getExtends", "(", ")", ",", "Capacity", ...
Check if the supertype of the given capacity is a subtype of Capacity. @param capacity the type to test.
[ "Check", "if", "the", "supertype", "of", "the", "given", "capacity", "is", "a", "subtype", "of", "Capacity", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1838-L1846
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkSuperType
@Check(CheckType.FAST) public void checkSuperType(SarlSkill skill) { final int nbSuperTypes = checkSuperTypes( skill, SARL_SKILL__EXTENDS, Utils.singletonList(skill.getExtends()), Skill.class, false); checkImplementedTypes( skill, SARL_SKILL__IMPLEMENTS, skill.getImplements(), C...
java
@Check(CheckType.FAST) public void checkSuperType(SarlSkill skill) { final int nbSuperTypes = checkSuperTypes( skill, SARL_SKILL__EXTENDS, Utils.singletonList(skill.getExtends()), Skill.class, false); checkImplementedTypes( skill, SARL_SKILL__IMPLEMENTS, skill.getImplements(), C...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkSuperType", "(", "SarlSkill", "skill", ")", "{", "final", "int", "nbSuperTypes", "=", "checkSuperTypes", "(", "skill", ",", "SARL_SKILL__EXTENDS", ",", "Utils", ".", "singletonList", "("...
Check if the supertype of the given skill is a subtype of Skill. @param skill the type to test.
[ "Check", "if", "the", "supertype", "of", "the", "given", "skill", "is", "a", "subtype", "of", "Skill", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1852-L1867
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkSuperType
@Check(CheckType.FAST) public void checkSuperType(SarlEvent event) { checkSuperTypes( event, SARL_EVENT__EXTENDS, Utils.singletonList(event.getExtends()), Event.class, false); }
java
@Check(CheckType.FAST) public void checkSuperType(SarlEvent event) { checkSuperTypes( event, SARL_EVENT__EXTENDS, Utils.singletonList(event.getExtends()), Event.class, false); }
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkSuperType", "(", "SarlEvent", "event", ")", "{", "checkSuperTypes", "(", "event", ",", "SARL_EVENT__EXTENDS", ",", "Utils", ".", "singletonList", "(", "event", ".", "getExtends", "(", ...
Check if the supertype of the given event is a subtype of Event. @param event the type to test.
[ "Check", "if", "the", "supertype", "of", "the", "given", "event", "is", "a", "subtype", "of", "Event", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1873-L1881
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkSuperType
@Check(CheckType.FAST) public void checkSuperType(SarlBehavior behavior) { checkSuperTypes( behavior, SARL_BEHAVIOR__EXTENDS, Utils.singletonList(behavior.getExtends()), Behavior.class, false); }
java
@Check(CheckType.FAST) public void checkSuperType(SarlBehavior behavior) { checkSuperTypes( behavior, SARL_BEHAVIOR__EXTENDS, Utils.singletonList(behavior.getExtends()), Behavior.class, false); }
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkSuperType", "(", "SarlBehavior", "behavior", ")", "{", "checkSuperTypes", "(", "behavior", ",", "SARL_BEHAVIOR__EXTENDS", ",", "Utils", ".", "singletonList", "(", "behavior", ".", "getExte...
Check if the supertype of the given behavior is a subtype of Behavior. @param behavior the type to test.
[ "Check", "if", "the", "supertype", "of", "the", "given", "behavior", "is", "a", "subtype", "of", "Behavior", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1887-L1895
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkSuperType
@Check(CheckType.FAST) public void checkSuperType(SarlAgent agent) { checkSuperTypes( agent, SARL_AGENT__EXTENDS, Utils.singletonList(agent.getExtends()), Agent.class, false); }
java
@Check(CheckType.FAST) public void checkSuperType(SarlAgent agent) { checkSuperTypes( agent, SARL_AGENT__EXTENDS, Utils.singletonList(agent.getExtends()), Agent.class, false); }
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkSuperType", "(", "SarlAgent", "agent", ")", "{", "checkSuperTypes", "(", "agent", ",", "SARL_AGENT__EXTENDS", ",", "Utils", ".", "singletonList", "(", "agent", ".", "getExtends", "(", ...
Check if the supertype of the given agent is a subtype of Agent. @param agent the type to test.
[ "Check", "if", "the", "supertype", "of", "the", "given", "agent", "is", "a", "subtype", "of", "Agent", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1901-L1909
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkImplementedTypes
protected boolean checkImplementedTypes( XtendTypeDeclaration element, EReference feature, List<? extends JvmTypeReference> implementedTypes, Class<?> expectedType, int mandatoryNumberOfTypes, boolean onlySubTypes) { boolean success = true; int nb = 0; int index = 0; for (final JvmTypeReferenc...
java
protected boolean checkImplementedTypes( XtendTypeDeclaration element, EReference feature, List<? extends JvmTypeReference> implementedTypes, Class<?> expectedType, int mandatoryNumberOfTypes, boolean onlySubTypes) { boolean success = true; int nb = 0; int index = 0; for (final JvmTypeReferenc...
[ "protected", "boolean", "checkImplementedTypes", "(", "XtendTypeDeclaration", "element", ",", "EReference", "feature", ",", "List", "<", "?", "extends", "JvmTypeReference", ">", "implementedTypes", ",", "Class", "<", "?", ">", "expectedType", ",", "int", "mandatoryN...
Check the implemeted type. @param element the child type. @param feature the syntactic feature related to the supertypes. @param implementedTypes the current super types. @param expectedType the expected root type. @param mandatoryNumberOfTypes the minimal number of implemented types. @param onlySubTypes if <code>true...
[ "Check", "the", "implemeted", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1922-L1971
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkBehaviorUnitEventType
@Check(CheckType.FAST) public void checkBehaviorUnitEventType(SarlBehaviorUnit behaviorUnit) { final JvmTypeReference event = behaviorUnit.getName(); final LightweightTypeReference ref = toLightweightTypeReference(event); if (ref == null || !this.inheritanceHelper.isSarlEvent(ref)) { error(MessageFormat.forma...
java
@Check(CheckType.FAST) public void checkBehaviorUnitEventType(SarlBehaviorUnit behaviorUnit) { final JvmTypeReference event = behaviorUnit.getName(); final LightweightTypeReference ref = toLightweightTypeReference(event); if (ref == null || !this.inheritanceHelper.isSarlEvent(ref)) { error(MessageFormat.forma...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkBehaviorUnitEventType", "(", "SarlBehaviorUnit", "behaviorUnit", ")", "{", "final", "JvmTypeReference", "event", "=", "behaviorUnit", ".", "getName", "(", ")", ";", "final", "LightweightType...
Check if the parameter of the bahavior unit is an event. @param behaviorUnit the behavior unit to test.
[ "Check", "if", "the", "parameter", "of", "the", "bahavior", "unit", "is", "an", "event", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1977-L1992
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkCapacityFeatures
@Check(CheckType.FAST) public void checkCapacityFeatures(SarlCapacity capacity) { if (capacity.getMembers().isEmpty()) { if (!isIgnored(DISCOURAGED_CAPACITY_DEFINITION)) { addIssue(Messages.SARLValidator_77, capacity, null, ValidationMessageAcceptor.INSIGNIFICANT_INDEX, DISCOURAGED_CAP...
java
@Check(CheckType.FAST) public void checkCapacityFeatures(SarlCapacity capacity) { if (capacity.getMembers().isEmpty()) { if (!isIgnored(DISCOURAGED_CAPACITY_DEFINITION)) { addIssue(Messages.SARLValidator_77, capacity, null, ValidationMessageAcceptor.INSIGNIFICANT_INDEX, DISCOURAGED_CAP...
[ "@", "Check", "(", "CheckType", ".", "FAST", ")", "public", "void", "checkCapacityFeatures", "(", "SarlCapacity", "capacity", ")", "{", "if", "(", "capacity", ".", "getMembers", "(", ")", ".", "isEmpty", "(", ")", ")", "{", "if", "(", "!", "isIgnored", ...
Check if a capacity has a feature defined inside. @param capacity the capacity to test.
[ "Check", "if", "a", "capacity", "has", "a", "feature", "defined", "inside", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L1998-L2011
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkUnusedCapacities
@Check(CheckType.NORMAL) public void checkUnusedCapacities(SarlCapacityUses uses) { if (!isIgnored(UNUSED_AGENT_CAPACITY)) { final XtendTypeDeclaration container = uses.getDeclaringType(); final JvmDeclaredType jvmContainer = (JvmDeclaredType) this.associations.getPrimaryJvmElement(container); final Map<Str...
java
@Check(CheckType.NORMAL) public void checkUnusedCapacities(SarlCapacityUses uses) { if (!isIgnored(UNUSED_AGENT_CAPACITY)) { final XtendTypeDeclaration container = uses.getDeclaringType(); final JvmDeclaredType jvmContainer = (JvmDeclaredType) this.associations.getPrimaryJvmElement(container); final Map<Str...
[ "@", "Check", "(", "CheckType", ".", "NORMAL", ")", "public", "void", "checkUnusedCapacities", "(", "SarlCapacityUses", "uses", ")", "{", "if", "(", "!", "isIgnored", "(", "UNUSED_AGENT_CAPACITY", ")", ")", "{", "final", "XtendTypeDeclaration", "container", "=",...
Check for unused capacities. @param uses the capacity use declaration.
[ "Check", "for", "unused", "capacities", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2017-L2058
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkMultipleCapacityUses
@Check(CheckType.NORMAL) public void checkMultipleCapacityUses(SarlCapacityUses uses) { if (!isIgnored(REDUNDANT_CAPACITY_USE)) { final XtendTypeDeclaration declaringType = uses.getDeclaringType(); if (declaringType != null) { final Set<String> previousCapacityUses = doGetPreviousCapacities(uses, dec...
java
@Check(CheckType.NORMAL) public void checkMultipleCapacityUses(SarlCapacityUses uses) { if (!isIgnored(REDUNDANT_CAPACITY_USE)) { final XtendTypeDeclaration declaringType = uses.getDeclaringType(); if (declaringType != null) { final Set<String> previousCapacityUses = doGetPreviousCapacities(uses, dec...
[ "@", "Check", "(", "CheckType", ".", "NORMAL", ")", "public", "void", "checkMultipleCapacityUses", "(", "SarlCapacityUses", "uses", ")", "{", "if", "(", "!", "isIgnored", "(", "REDUNDANT_CAPACITY_USE", ")", ")", "{", "final", "XtendTypeDeclaration", "declaringType...
Check for multiple capacity use declaration. @param uses the capacity use declaration.
[ "Check", "for", "multiple", "capacity", "use", "declaration", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2083-L2108
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkReservedAnnotation
@Check public void checkReservedAnnotation(XtendAnnotationTarget annotationTarget) { if (!isIgnored(USED_RESERVED_SARL_ANNOTATION)) { if (annotationTarget.getAnnotations().isEmpty() || !isRelevantAnnotationTarget(annotationTarget)) { return; } final QualifiedName reservedPackage = this.qualifiedNameConv...
java
@Check public void checkReservedAnnotation(XtendAnnotationTarget annotationTarget) { if (!isIgnored(USED_RESERVED_SARL_ANNOTATION)) { if (annotationTarget.getAnnotations().isEmpty() || !isRelevantAnnotationTarget(annotationTarget)) { return; } final QualifiedName reservedPackage = this.qualifiedNameConv...
[ "@", "Check", "public", "void", "checkReservedAnnotation", "(", "XtendAnnotationTarget", "annotationTarget", ")", "{", "if", "(", "!", "isIgnored", "(", "USED_RESERVED_SARL_ANNOTATION", ")", ")", "{", "if", "(", "annotationTarget", ".", "getAnnotations", "(", ")", ...
Check for reserved annotations. @param annotationTarget thee target to test.
[ "Check", "for", "reserved", "annotations", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2197-L2230
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.getRootOfMemberFeatureCallSequence
protected static XMemberFeatureCall getRootOfMemberFeatureCallSequence(EObject leaf, EObject container, Procedure1<XMemberFeatureCall> feedback) { EObject call = leaf; EObject obj = EcoreUtil2.getContainerOfType(leaf.eContainer(), XExpression.class); while (obj != null && (container == null || obj != container...
java
protected static XMemberFeatureCall getRootOfMemberFeatureCallSequence(EObject leaf, EObject container, Procedure1<XMemberFeatureCall> feedback) { EObject call = leaf; EObject obj = EcoreUtil2.getContainerOfType(leaf.eContainer(), XExpression.class); while (obj != null && (container == null || obj != container...
[ "protected", "static", "XMemberFeatureCall", "getRootOfMemberFeatureCallSequence", "(", "EObject", "leaf", ",", "EObject", "container", ",", "Procedure1", "<", "XMemberFeatureCall", ">", "feedback", ")", "{", "EObject", "call", "=", "leaf", ";", "EObject", "obj", "=...
Replies the member feature call that is the root of a sequence of member feature calls. <p>While the current feature call is the actual receiver of a member feature call, and not an argument, the sequence is still active. Otherwise, the sequence is stopped. @param leaf the expression at the leaf of the feature call. ...
[ "Replies", "the", "member", "feature", "call", "that", "is", "the", "root", "of", "a", "sequence", "of", "member", "feature", "calls", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2267-L2294
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.getParamTypeReferences
protected List<LightweightTypeReference> getParamTypeReferences(JvmExecutable jvmExecutable, boolean wrapFromPrimitives, boolean wrapToPrimitives) { assert (wrapFromPrimitives && !wrapToPrimitives) || (wrapToPrimitives && !wrapFromPrimitives); final List<LightweightTypeReference> types = newArrayList(); for (f...
java
protected List<LightweightTypeReference> getParamTypeReferences(JvmExecutable jvmExecutable, boolean wrapFromPrimitives, boolean wrapToPrimitives) { assert (wrapFromPrimitives && !wrapToPrimitives) || (wrapToPrimitives && !wrapFromPrimitives); final List<LightweightTypeReference> types = newArrayList(); for (f...
[ "protected", "List", "<", "LightweightTypeReference", ">", "getParamTypeReferences", "(", "JvmExecutable", "jvmExecutable", ",", "boolean", "wrapFromPrimitives", ",", "boolean", "wrapToPrimitives", ")", "{", "assert", "(", "wrapFromPrimitives", "&&", "!", "wrapToPrimitive...
Retrieve the types of the formal parameters of the given JVM executable object. @param jvmExecutable the JVM executable. @param wrapFromPrimitives indicates if the primitive types must be wrapped to object type equivalent. @param wrapToPrimitives indicates if the object types must be wrapped to primitive type equivale...
[ "Retrieve", "the", "types", "of", "the", "formal", "parameters", "of", "the", "given", "JVM", "executable", "object", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2429-L2443
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkUnmodifiableEventAccess
@Check public void checkUnmodifiableEventAccess(SarlBehaviorUnit unit) { final boolean enable1 = !isIgnored(DISCOURAGED_OCCURRENCE_READONLY_USE); final XExpression root = unit.getExpression(); final String occurrenceKw = this.grammarAccess.getOccurrenceKeyword(); for (final XFeatureCall child : EcoreUtil2.getA...
java
@Check public void checkUnmodifiableEventAccess(SarlBehaviorUnit unit) { final boolean enable1 = !isIgnored(DISCOURAGED_OCCURRENCE_READONLY_USE); final XExpression root = unit.getExpression(); final String occurrenceKw = this.grammarAccess.getOccurrenceKeyword(); for (final XFeatureCall child : EcoreUtil2.getA...
[ "@", "Check", "public", "void", "checkUnmodifiableEventAccess", "(", "SarlBehaviorUnit", "unit", ")", "{", "final", "boolean", "enable1", "=", "!", "isIgnored", "(", "DISCOURAGED_OCCURRENCE_READONLY_USE", ")", ";", "final", "XExpression", "root", "=", "unit", ".", ...
Check for usage of the event functions in the behavior units. @param unit the unit to analyze.
[ "Check", "for", "usage", "of", "the", "event", "functions", "in", "the", "behavior", "units", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2449-L2459
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkBreakKeywordUse
@Check public void checkBreakKeywordUse(SarlBreakExpression expression) { final EObject container = Utils.getFirstContainerForPredicate(expression, it -> !(it instanceof XExpression) || it instanceof XAbstractWhileExpression || it instanceof XBasicForLoopExpression || it instanceof XForLoopExpression); if ...
java
@Check public void checkBreakKeywordUse(SarlBreakExpression expression) { final EObject container = Utils.getFirstContainerForPredicate(expression, it -> !(it instanceof XExpression) || it instanceof XAbstractWhileExpression || it instanceof XBasicForLoopExpression || it instanceof XForLoopExpression); if ...
[ "@", "Check", "public", "void", "checkBreakKeywordUse", "(", "SarlBreakExpression", "expression", ")", "{", "final", "EObject", "container", "=", "Utils", ".", "getFirstContainerForPredicate", "(", "expression", ",", "it", "->", "!", "(", "it", "instanceof", "XExp...
Check for usage of break inside loops. @param expression the expression to analyze.
[ "Check", "for", "usage", "of", "break", "inside", "loops", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2465-L2487
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkStaticConstructorPrototype
@Check public void checkStaticConstructorPrototype(XtendConstructor constructor) { if (constructor.isStatic()) { if (!constructor.getAnnotations().isEmpty()) { error(Messages.SARLValidator_23, constructor, XtendPackage.eINSTANCE.getXtendAnnotationTarget_Annotations(), ValidationMessageAccept...
java
@Check public void checkStaticConstructorPrototype(XtendConstructor constructor) { if (constructor.isStatic()) { if (!constructor.getAnnotations().isEmpty()) { error(Messages.SARLValidator_23, constructor, XtendPackage.eINSTANCE.getXtendAnnotationTarget_Annotations(), ValidationMessageAccept...
[ "@", "Check", "public", "void", "checkStaticConstructorPrototype", "(", "XtendConstructor", "constructor", ")", "{", "if", "(", "constructor", ".", "isStatic", "(", ")", ")", "{", "if", "(", "!", "constructor", ".", "getAnnotations", "(", ")", ".", "isEmpty", ...
Check for a valid prototype of a static constructor. @param constructor the constructor to analyze.
[ "Check", "for", "a", "valid", "prototype", "of", "a", "static", "constructor", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2572-L2611
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkUnsynchronizedField
@Check @SuppressWarnings({"checkstyle:nestedifdepth", "checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity"}) public void checkUnsynchronizedField(XtendField field) { if (doCheckValidMemberName(field) && !isIgnored(POTENTIAL_FIELD_SYNCHRONIZATION_PROBLEM)) { final JvmField jvmField = this.associations....
java
@Check @SuppressWarnings({"checkstyle:nestedifdepth", "checkstyle:npathcomplexity", "checkstyle:cyclomaticcomplexity"}) public void checkUnsynchronizedField(XtendField field) { if (doCheckValidMemberName(field) && !isIgnored(POTENTIAL_FIELD_SYNCHRONIZATION_PROBLEM)) { final JvmField jvmField = this.associations....
[ "@", "Check", "@", "SuppressWarnings", "(", "{", "\"checkstyle:nestedifdepth\"", ",", "\"checkstyle:npathcomplexity\"", ",", "\"checkstyle:cyclomaticcomplexity\"", "}", ")", "public", "void", "checkUnsynchronizedField", "(", "XtendField", "field", ")", "{", "if", "(", "...
Check if a field needs to be synchronized. @param field the field. @since 0.7
[ "Check", "if", "a", "field", "needs", "to", "be", "synchronized", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2618-L2678
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.isLocallyAssigned
protected boolean isLocallyAssigned(EObject target, EObject containerToFindUsage) { if (this.readAndWriteTracking.isAssigned(target)) { return true; } final Collection<Setting> usages = XbaseUsageCrossReferencer.find(target, containerToFindUsage); // field are assigned when they are not used as the left oper...
java
protected boolean isLocallyAssigned(EObject target, EObject containerToFindUsage) { if (this.readAndWriteTracking.isAssigned(target)) { return true; } final Collection<Setting> usages = XbaseUsageCrossReferencer.find(target, containerToFindUsage); // field are assigned when they are not used as the left oper...
[ "protected", "boolean", "isLocallyAssigned", "(", "EObject", "target", ",", "EObject", "containerToFindUsage", ")", "{", "if", "(", "this", ".", "readAndWriteTracking", ".", "isAssigned", "(", "target", ")", ")", "{", "return", "true", ";", "}", "final", "Coll...
Replies if the given object is locally assigned. <p>An object is locally assigned when it is the left operand of an assignment operation. @param target the object to test. @param containerToFindUsage the container in which the usages should be find. @return {@code true} if the given object is assigned. @since 0.7
[ "Replies", "if", "the", "given", "object", "is", "locally", "assigned", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2718-L2736
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.isOOType
@SuppressWarnings("static-method") protected boolean isOOType(XtendTypeDeclaration type) { return type instanceof XtendClass || type instanceof XtendInterface || type instanceof XtendEnum || type instanceof XtendAnnotationType; }
java
@SuppressWarnings("static-method") protected boolean isOOType(XtendTypeDeclaration type) { return type instanceof XtendClass || type instanceof XtendInterface || type instanceof XtendEnum || type instanceof XtendAnnotationType; }
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "boolean", "isOOType", "(", "XtendTypeDeclaration", "type", ")", "{", "return", "type", "instanceof", "XtendClass", "||", "type", "instanceof", "XtendInterface", "||", "type", "instanceof", "XtendEnu...
Replies if the given element is an object oriented type. @param type the type to test. @return {@code true} if the type is an object oriented type.
[ "Replies", "if", "the", "given", "element", "is", "an", "object", "oriented", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2844-L2850
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.isOOActiveAnnotation
@SuppressWarnings("static-method") protected boolean isOOActiveAnnotation(XAnnotation annotation) { final String name = annotation.getAnnotationType().getQualifiedName(); return Strings.equal(Accessors.class.getName(), name) || Strings.equal(Data.class.getName(), name) || Strings.equal(Delegate.class.getNa...
java
@SuppressWarnings("static-method") protected boolean isOOActiveAnnotation(XAnnotation annotation) { final String name = annotation.getAnnotationType().getQualifiedName(); return Strings.equal(Accessors.class.getName(), name) || Strings.equal(Data.class.getName(), name) || Strings.equal(Delegate.class.getNa...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "boolean", "isOOActiveAnnotation", "(", "XAnnotation", "annotation", ")", "{", "final", "String", "name", "=", "annotation", ".", "getAnnotationType", "(", ")", ".", "getQualifiedName", "(", ")", ...
Replies if the given annotation is an active annotation for object-oriented elements. @param annotation the annotation. @return {@code true} if the annotation should be used only for OO elements. @see #isAOActiveAnnotation(XAnnotation)
[ "Replies", "if", "the", "given", "annotation", "is", "an", "active", "annotation", "for", "object", "-", "oriented", "elements", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2858-L2865
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.isAOActiveAnnotation
@SuppressWarnings("static-method") protected boolean isAOActiveAnnotation(XAnnotation annotation) { final String name = annotation.getAnnotationType().getQualifiedName(); return Strings.equal(Accessors.class.getName(), name); }
java
@SuppressWarnings("static-method") protected boolean isAOActiveAnnotation(XAnnotation annotation) { final String name = annotation.getAnnotationType().getQualifiedName(); return Strings.equal(Accessors.class.getName(), name); }
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "boolean", "isAOActiveAnnotation", "(", "XAnnotation", "annotation", ")", "{", "final", "String", "name", "=", "annotation", ".", "getAnnotationType", "(", ")", ".", "getQualifiedName", "(", ")", ...
Replies if the given container can receive an active annotation. @param annotation the annotation. @return {@code true} if the annotation should be used only for OO elements. @see #isOOActiveAnnotation(XAnnotation) @see #isAOActiveAnnotationReceiver(XtendTypeDeclaration)
[ "Replies", "if", "the", "given", "container", "can", "receive", "an", "active", "annotation", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2874-L2878
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.isAOActiveAnnotationReceiver
@SuppressWarnings("static-method") protected boolean isAOActiveAnnotationReceiver(XtendTypeDeclaration container) { return container instanceof SarlAgent || container instanceof SarlBehavior || container instanceof SarlSkill; }
java
@SuppressWarnings("static-method") protected boolean isAOActiveAnnotationReceiver(XtendTypeDeclaration container) { return container instanceof SarlAgent || container instanceof SarlBehavior || container instanceof SarlSkill; }
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "boolean", "isAOActiveAnnotationReceiver", "(", "XtendTypeDeclaration", "container", ")", "{", "return", "container", "instanceof", "SarlAgent", "||", "container", "instanceof", "SarlBehavior", "||", "co...
Replies if the given annotation is an active annotation for agent-oriented elements. @param container the container to test. @return {@code true} if the container could receive an active annotation. @see #isOOActiveAnnotation(XAnnotation) @see #isAOActiveAnnotation(XAnnotation)
[ "Replies", "if", "the", "given", "annotation", "is", "an", "active", "annotation", "for", "agent", "-", "oriented", "elements", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2887-L2892
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.isForbiddenActiveAnnotation
@SuppressWarnings("static-method") protected boolean isForbiddenActiveAnnotation(XAnnotation annotation) { final String name = annotation.getAnnotationType().getQualifiedName(); return Strings.equal(EqualsHashCode.class.getName(), name) || Strings.equal(FinalFieldsConstructor.class.getName(), name); }
java
@SuppressWarnings("static-method") protected boolean isForbiddenActiveAnnotation(XAnnotation annotation) { final String name = annotation.getAnnotationType().getQualifiedName(); return Strings.equal(EqualsHashCode.class.getName(), name) || Strings.equal(FinalFieldsConstructor.class.getName(), name); }
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "boolean", "isForbiddenActiveAnnotation", "(", "XAnnotation", "annotation", ")", "{", "final", "String", "name", "=", "annotation", ".", "getAnnotationType", "(", ")", ".", "getQualifiedName", "(", ...
Replies if the given annotation is a forbidden active annotation. @param annotation the annotation. @return {@code true} if the annotation is forbidden.
[ "Replies", "if", "the", "given", "annotation", "is", "a", "forbidden", "active", "annotation", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2899-L2904
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.checkTopElementsAreUnique
@Check public void checkTopElementsAreUnique(SarlScript script) { final Multimap<String, XtendTypeDeclaration> name2type = HashMultimap.create(); for (final XtendTypeDeclaration declaration : script.getXtendTypes()) { final String name = declaration.getName(); if (!Strings.isEmpty(name)) { name2type.put(...
java
@Check public void checkTopElementsAreUnique(SarlScript script) { final Multimap<String, XtendTypeDeclaration> name2type = HashMultimap.create(); for (final XtendTypeDeclaration declaration : script.getXtendTypes()) { final String name = declaration.getName(); if (!Strings.isEmpty(name)) { name2type.put(...
[ "@", "Check", "public", "void", "checkTopElementsAreUnique", "(", "SarlScript", "script", ")", "{", "final", "Multimap", "<", "String", ",", "XtendTypeDeclaration", ">", "name2type", "=", "HashMultimap", ".", "create", "(", ")", ";", "for", "(", "final", "Xten...
Check the top elements within a script are not duplicated. @param script the SARL script
[ "Check", "the", "top", "elements", "within", "a", "script", "are", "not", "duplicated", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2910-L2931
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.isDefaultValuedParameterFunction
@SuppressWarnings("static-method") protected boolean isDefaultValuedParameterFunction(XtendFunction function) { for (final XtendParameter parameter : function.getParameters()) { if (parameter instanceof SarlFormalParameter) { final SarlFormalParameter sarlParameter = (SarlFormalParameter) parameter; if (s...
java
@SuppressWarnings("static-method") protected boolean isDefaultValuedParameterFunction(XtendFunction function) { for (final XtendParameter parameter : function.getParameters()) { if (parameter instanceof SarlFormalParameter) { final SarlFormalParameter sarlParameter = (SarlFormalParameter) parameter; if (s...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "boolean", "isDefaultValuedParameterFunction", "(", "XtendFunction", "function", ")", "{", "for", "(", "final", "XtendParameter", "parameter", ":", "function", ".", "getParameters", "(", ")", ")", ...
Replies if the given function has a default value for one of its parameters. @param function the function to test. @return {@code true} if one parameter has a default value.
[ "Replies", "if", "the", "given", "function", "has", "a", "default", "value", "for", "one", "of", "its", "parameters", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L2938-L2949
train
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java
SARLValidator.reportCastWarnings
protected void reportCastWarnings(JvmTypeReference concreteSyntax, LightweightTypeReference toType, LightweightTypeReference fromType) { if (!isIgnored(OBSOLETE_CAST) && toType.isAssignableFrom(fromType)) { addIssue(MessageFormat.format(Messages.SARLValidator_96, fromType.getHumanReadableName(), toType.getHum...
java
protected void reportCastWarnings(JvmTypeReference concreteSyntax, LightweightTypeReference toType, LightweightTypeReference fromType) { if (!isIgnored(OBSOLETE_CAST) && toType.isAssignableFrom(fromType)) { addIssue(MessageFormat.format(Messages.SARLValidator_96, fromType.getHumanReadableName(), toType.getHum...
[ "protected", "void", "reportCastWarnings", "(", "JvmTypeReference", "concreteSyntax", ",", "LightweightTypeReference", "toType", ",", "LightweightTypeReference", "fromType", ")", "{", "if", "(", "!", "isIgnored", "(", "OBSOLETE_CAST", ")", "&&", "toType", ".", "isAssi...
Report the warnings associated to the casted expressions. @param concreteSyntax the type specified into the casted expression. @param toType the type specified into the casted expression. @param fromType the type of the source expression.
[ "Report", "the", "warnings", "associated", "to", "the", "casted", "expressions", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLValidator.java#L3036-L3041
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.finalizeScript
public void finalizeScript() { if (this.isFinalized) { throw new IllegalStateException("already finalized"); } this.isFinalized = true; ImportManager concreteImports = new ImportManager(true); XImportSection importSection = getScript().getImportSection(); if (importSection != null) { for (XImportDecla...
java
public void finalizeScript() { if (this.isFinalized) { throw new IllegalStateException("already finalized"); } this.isFinalized = true; ImportManager concreteImports = new ImportManager(true); XImportSection importSection = getScript().getImportSection(); if (importSection != null) { for (XImportDecla...
[ "public", "void", "finalizeScript", "(", ")", "{", "if", "(", "this", ".", "isFinalized", ")", "{", "throw", "new", "IllegalStateException", "(", "\"already finalized\"", ")", ";", "}", "this", ".", "isFinalized", "=", "true", ";", "ImportManager", "concreteIm...
Finalize the script. <p>The finalization includes: <ul> <li>The import section is created.</li> </ul>
[ "Finalize", "the", "script", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L89-L117
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlEvent
public ISarlEventBuilder addSarlEvent(String name) { ISarlEventBuilder builder = this.sarlEventProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlEventBuilder addSarlEvent(String name) { ISarlEventBuilder builder = this.sarlEventProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlEventBuilder", "addSarlEvent", "(", "String", "name", ")", "{", "ISarlEventBuilder", "builder", "=", "this", ".", "sarlEventProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")", ",", "name", ",", "getTypeR...
Create a SarlEvent builder. @param name the name of the SarlEvent. @return the builder.
[ "Create", "a", "SarlEvent", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L138-L142
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlCapacity
public ISarlCapacityBuilder addSarlCapacity(String name) { ISarlCapacityBuilder builder = this.sarlCapacityProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlCapacityBuilder addSarlCapacity(String name) { ISarlCapacityBuilder builder = this.sarlCapacityProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlCapacityBuilder", "addSarlCapacity", "(", "String", "name", ")", "{", "ISarlCapacityBuilder", "builder", "=", "this", ".", "sarlCapacityProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")", ",", "name", ",",...
Create a SarlCapacity builder. @param name the name of the SarlCapacity. @return the builder.
[ "Create", "a", "SarlCapacity", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L151-L155
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlAgent
public ISarlAgentBuilder addSarlAgent(String name) { ISarlAgentBuilder builder = this.sarlAgentProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlAgentBuilder addSarlAgent(String name) { ISarlAgentBuilder builder = this.sarlAgentProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlAgentBuilder", "addSarlAgent", "(", "String", "name", ")", "{", "ISarlAgentBuilder", "builder", "=", "this", ".", "sarlAgentProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")", ",", "name", ",", "getTypeR...
Create a SarlAgent builder. @param name the name of the SarlAgent. @return the builder.
[ "Create", "a", "SarlAgent", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L164-L168
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlBehavior
public ISarlBehaviorBuilder addSarlBehavior(String name) { ISarlBehaviorBuilder builder = this.sarlBehaviorProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlBehaviorBuilder addSarlBehavior(String name) { ISarlBehaviorBuilder builder = this.sarlBehaviorProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlBehaviorBuilder", "addSarlBehavior", "(", "String", "name", ")", "{", "ISarlBehaviorBuilder", "builder", "=", "this", ".", "sarlBehaviorProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")", ",", "name", ",",...
Create a SarlBehavior builder. @param name the name of the SarlBehavior. @return the builder.
[ "Create", "a", "SarlBehavior", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L177-L181
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlSkill
public ISarlSkillBuilder addSarlSkill(String name) { ISarlSkillBuilder builder = this.sarlSkillProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlSkillBuilder addSarlSkill(String name) { ISarlSkillBuilder builder = this.sarlSkillProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlSkillBuilder", "addSarlSkill", "(", "String", "name", ")", "{", "ISarlSkillBuilder", "builder", "=", "this", ".", "sarlSkillProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")", ",", "name", ",", "getTypeR...
Create a SarlSkill builder. @param name the name of the SarlSkill. @return the builder.
[ "Create", "a", "SarlSkill", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L190-L194
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlSpace
public ISarlSpaceBuilder addSarlSpace(String name) { ISarlSpaceBuilder builder = this.sarlSpaceProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlSpaceBuilder addSarlSpace(String name) { ISarlSpaceBuilder builder = this.sarlSpaceProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlSpaceBuilder", "addSarlSpace", "(", "String", "name", ")", "{", "ISarlSpaceBuilder", "builder", "=", "this", ".", "sarlSpaceProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")", ",", "name", ",", "getTypeR...
Create a SarlSpace builder. @param name the name of the SarlSpace. @return the builder.
[ "Create", "a", "SarlSpace", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L203-L207
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlArtifact
public ISarlArtifactBuilder addSarlArtifact(String name) { ISarlArtifactBuilder builder = this.sarlArtifactProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlArtifactBuilder addSarlArtifact(String name) { ISarlArtifactBuilder builder = this.sarlArtifactProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlArtifactBuilder", "addSarlArtifact", "(", "String", "name", ")", "{", "ISarlArtifactBuilder", "builder", "=", "this", ".", "sarlArtifactProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")", ",", "name", ",",...
Create a SarlArtifact builder. @param name the name of the SarlArtifact. @return the builder.
[ "Create", "a", "SarlArtifact", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L216-L220
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlClass
public ISarlClassBuilder addSarlClass(String name) { ISarlClassBuilder builder = this.sarlClassProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlClassBuilder addSarlClass(String name) { ISarlClassBuilder builder = this.sarlClassProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlClassBuilder", "addSarlClass", "(", "String", "name", ")", "{", "ISarlClassBuilder", "builder", "=", "this", ".", "sarlClassProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")", ",", "name", ",", "getTypeR...
Create a SarlClass builder. @param name the name of the SarlClass. @return the builder.
[ "Create", "a", "SarlClass", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L229-L233
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlInterface
public ISarlInterfaceBuilder addSarlInterface(String name) { ISarlInterfaceBuilder builder = this.sarlInterfaceProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlInterfaceBuilder addSarlInterface(String name) { ISarlInterfaceBuilder builder = this.sarlInterfaceProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlInterfaceBuilder", "addSarlInterface", "(", "String", "name", ")", "{", "ISarlInterfaceBuilder", "builder", "=", "this", ".", "sarlInterfaceProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")", ",", "name", ...
Create a SarlInterface builder. @param name the name of the SarlInterface. @return the builder.
[ "Create", "a", "SarlInterface", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L242-L246
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlEnumeration
public ISarlEnumerationBuilder addSarlEnumeration(String name) { ISarlEnumerationBuilder builder = this.sarlEnumerationProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlEnumerationBuilder addSarlEnumeration(String name) { ISarlEnumerationBuilder builder = this.sarlEnumerationProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlEnumerationBuilder", "addSarlEnumeration", "(", "String", "name", ")", "{", "ISarlEnumerationBuilder", "builder", "=", "this", ".", "sarlEnumerationProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")", ",", "n...
Create a SarlEnumeration builder. @param name the name of the SarlEnumeration. @return the builder.
[ "Create", "a", "SarlEnumeration", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L255-L259
train
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java
ScriptBuilderImpl.addSarlAnnotationType
public ISarlAnnotationTypeBuilder addSarlAnnotationType(String name) { ISarlAnnotationTypeBuilder builder = this.sarlAnnotationTypeProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
java
public ISarlAnnotationTypeBuilder addSarlAnnotationType(String name) { ISarlAnnotationTypeBuilder builder = this.sarlAnnotationTypeProvider.get(); builder.eInit(getScript(), name, getTypeResolutionContext()); return builder; }
[ "public", "ISarlAnnotationTypeBuilder", "addSarlAnnotationType", "(", "String", "name", ")", "{", "ISarlAnnotationTypeBuilder", "builder", "=", "this", ".", "sarlAnnotationTypeProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "getScript", "(", ")",...
Create a SarlAnnotationType builder. @param name the name of the SarlAnnotationType. @return the builder.
[ "Create", "a", "SarlAnnotationType", "builder", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/ScriptBuilderImpl.java#L268-L272
train
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java
SARLAgentMainLaunchConfigurationTab.createAgentNameEditor
protected void createAgentNameEditor(Composite parent, String text) { final Group group = SWTFactory.createGroup(parent, text, 2, 1, GridData.FILL_HORIZONTAL); this.agentNameTextField = SWTFactory.createSingleText(group, 1); this.agentNameTextField.addModifyListener(new ModifyListener() { @SuppressWarnings("sy...
java
protected void createAgentNameEditor(Composite parent, String text) { final Group group = SWTFactory.createGroup(parent, text, 2, 1, GridData.FILL_HORIZONTAL); this.agentNameTextField = SWTFactory.createSingleText(group, 1); this.agentNameTextField.addModifyListener(new ModifyListener() { @SuppressWarnings("sy...
[ "protected", "void", "createAgentNameEditor", "(", "Composite", "parent", ",", "String", "text", ")", "{", "final", "Group", "group", "=", "SWTFactory", ".", "createGroup", "(", "parent", ",", "text", ",", "2", ",", "1", ",", "GridData", ".", "FILL_HORIZONTA...
Creates the widgets for specifying a agent name. @param parent the parent composite. @param text the label of the group.
[ "Creates", "the", "widgets", "for", "specifying", "a", "agent", "name", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java#L164-L188
train
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java
SARLAgentMainLaunchConfigurationTab.createContextIdentifierTypeEditor
protected void createContextIdentifierTypeEditor(Composite parent, String text) { final Group group = SWTFactory.createGroup(parent, text, 1, 1, GridData.FILL_HORIZONTAL); this.defaultContextIdentifierButton = createRadioButton(group, Messages.MainLaunchConfigurationTab_11); this.defaultContextIdentifierButton.ad...
java
protected void createContextIdentifierTypeEditor(Composite parent, String text) { final Group group = SWTFactory.createGroup(parent, text, 1, 1, GridData.FILL_HORIZONTAL); this.defaultContextIdentifierButton = createRadioButton(group, Messages.MainLaunchConfigurationTab_11); this.defaultContextIdentifierButton.ad...
[ "protected", "void", "createContextIdentifierTypeEditor", "(", "Composite", "parent", ",", "String", "text", ")", "{", "final", "Group", "group", "=", "SWTFactory", ".", "createGroup", "(", "parent", ",", "text", ",", "1", ",", "1", ",", "GridData", ".", "FI...
Creates the widgets for configuring the context identifier. @param parent the parent composite. @param text the label of the group.
[ "Creates", "the", "widgets", "for", "configuring", "the", "context", "identifier", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java#L196-L204
train
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java
SARLAgentMainLaunchConfigurationTab.getSelectedContextIdentifierType
protected RootContextIdentifierType getSelectedContextIdentifierType() { if (this.randomContextIdentifierButton.getSelection()) { return RootContextIdentifierType.RANDOM_CONTEXT_ID; } if (this.bootContextIdentifierButton.getSelection()) { return RootContextIdentifierType.BOOT_AGENT_CONTEXT_ID; } return ...
java
protected RootContextIdentifierType getSelectedContextIdentifierType() { if (this.randomContextIdentifierButton.getSelection()) { return RootContextIdentifierType.RANDOM_CONTEXT_ID; } if (this.bootContextIdentifierButton.getSelection()) { return RootContextIdentifierType.BOOT_AGENT_CONTEXT_ID; } return ...
[ "protected", "RootContextIdentifierType", "getSelectedContextIdentifierType", "(", ")", "{", "if", "(", "this", ".", "randomContextIdentifierButton", ".", "getSelection", "(", ")", ")", "{", "return", "RootContextIdentifierType", ".", "RANDOM_CONTEXT_ID", ";", "}", "if"...
Replies the type of context identifier selected by the user. @return the type of context identifier.
[ "Replies", "the", "type", "of", "context", "identifier", "selected", "by", "the", "user", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java#L210-L218
train
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java
SARLAgentMainLaunchConfigurationTab.updateContextIdentifierTypeFromConfig
protected void updateContextIdentifierTypeFromConfig(ILaunchConfiguration config) { final RootContextIdentifierType type = this.accessor.getDefaultContextIdentifier(config); assert type != null; switch (type) { case RANDOM_CONTEXT_ID: this.randomContextIdentifierButton.setSelection(true); break; case BO...
java
protected void updateContextIdentifierTypeFromConfig(ILaunchConfiguration config) { final RootContextIdentifierType type = this.accessor.getDefaultContextIdentifier(config); assert type != null; switch (type) { case RANDOM_CONTEXT_ID: this.randomContextIdentifierButton.setSelection(true); break; case BO...
[ "protected", "void", "updateContextIdentifierTypeFromConfig", "(", "ILaunchConfiguration", "config", ")", "{", "final", "RootContextIdentifierType", "type", "=", "this", ".", "accessor", ".", "getDefaultContextIdentifier", "(", "config", ")", ";", "assert", "type", "!="...
Loads the context identifier type from the launch configuration's preference store. @param config the config to load the agent name from
[ "Loads", "the", "context", "identifier", "type", "from", "the", "launch", "configuration", "s", "preference", "store", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java#L255-L270
train
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java
SARLAgentMainLaunchConfigurationTab.updateAgentNameFromConfig
protected void updateAgentNameFromConfig(ILaunchConfiguration config) { final String agentName = this.accessor.getAgent(config); this.agentNameTextField.setText(Strings.nullToEmpty(agentName)); }
java
protected void updateAgentNameFromConfig(ILaunchConfiguration config) { final String agentName = this.accessor.getAgent(config); this.agentNameTextField.setText(Strings.nullToEmpty(agentName)); }
[ "protected", "void", "updateAgentNameFromConfig", "(", "ILaunchConfiguration", "config", ")", "{", "final", "String", "agentName", "=", "this", ".", "accessor", ".", "getAgent", "(", "config", ")", ";", "this", ".", "agentNameTextField", ".", "setText", "(", "St...
Loads the agent name from the launch configuration's preference store. @param config the config to load the agent name from
[ "Loads", "the", "agent", "name", "from", "the", "launch", "configuration", "s", "preference", "store", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java#L297-L300
train
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java
SARLAgentMainLaunchConfigurationTab.isValidAgentName
protected boolean isValidAgentName() { if (this.lastAgentNameError != null) { final boolean isValid = Strings.isNullOrEmpty(this.lastAgentNameError); if (!isValid) { setErrorMessage(this.lastAgentNameError); } return isValid; } final String name = this.agentNameTextField.getText(); if (Strings.i...
java
protected boolean isValidAgentName() { if (this.lastAgentNameError != null) { final boolean isValid = Strings.isNullOrEmpty(this.lastAgentNameError); if (!isValid) { setErrorMessage(this.lastAgentNameError); } return isValid; } final String name = this.agentNameTextField.getText(); if (Strings.i...
[ "protected", "boolean", "isValidAgentName", "(", ")", "{", "if", "(", "this", ".", "lastAgentNameError", "!=", "null", ")", "{", "final", "boolean", "isValid", "=", "Strings", ".", "isNullOrEmpty", "(", "this", ".", "lastAgentNameError", ")", ";", "if", "(",...
Replies if the agent name is valid. @return the validity state.
[ "Replies", "if", "the", "agent", "name", "is", "valid", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java#L332-L353
train
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java
SARLAgentMainLaunchConfigurationTab.isValidProjectName
protected boolean isValidProjectName() { final String name = this.fProjText.getText(); if (Strings.isNullOrEmpty(name)) { setErrorMessage(Messages.MainLaunchConfigurationTab_3); return false; } final IWorkspace workspace = ResourcesPlugin.getWorkspace(); final IStatus status = workspace.validateName(nam...
java
protected boolean isValidProjectName() { final String name = this.fProjText.getText(); if (Strings.isNullOrEmpty(name)) { setErrorMessage(Messages.MainLaunchConfigurationTab_3); return false; } final IWorkspace workspace = ResourcesPlugin.getWorkspace(); final IStatus status = workspace.validateName(nam...
[ "protected", "boolean", "isValidProjectName", "(", ")", "{", "final", "String", "name", "=", "this", ".", "fProjText", ".", "getText", "(", ")", ";", "if", "(", "Strings", ".", "isNullOrEmpty", "(", "name", ")", ")", "{", "setErrorMessage", "(", "Messages"...
Replies if the project name is valid. <p>Copied from JDT. @return the validity state.
[ "Replies", "if", "the", "project", "name", "is", "valid", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java#L361-L387
train
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java
SARLAgentMainLaunchConfigurationTab.initializeAgentName
protected void initializeAgentName(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) { String name = extractNameFromJavaElement(javaElement); // Set the attribute this.configurator.setAgent(config, name); // Rename the launch configuration if (name.length() > 0) { final int index = name.l...
java
protected void initializeAgentName(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) { String name = extractNameFromJavaElement(javaElement); // Set the attribute this.configurator.setAgent(config, name); // Rename the launch configuration if (name.length() > 0) { final int index = name.l...
[ "protected", "void", "initializeAgentName", "(", "IJavaElement", "javaElement", ",", "ILaunchConfigurationWorkingCopy", "config", ")", "{", "String", "name", "=", "extractNameFromJavaElement", "(", "javaElement", ")", ";", "// Set the attribute", "this", ".", "configurato...
Reset the given configuration with the agent name attributes associated to the given element. @param javaElement the element from which information may be retrieved. @param config the config to set with the agent name.
[ "Reset", "the", "given", "configuration", "with", "the", "agent", "name", "attributes", "associated", "to", "the", "given", "element", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java#L473-L488
train
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java
SARLAgentMainLaunchConfigurationTab.handleAgentNameSearchButtonSelected
protected void handleAgentNameSearchButtonSelected() { final IType[] types = searchAgentNames(); // Ask to the user final DebugTypeSelectionDialog mmsd = new DebugTypeSelectionDialog(getShell(), types, ""); //$NON-NLS-1$ if (mmsd.open() == Window.CANCEL) { return; } final IType type = (IType) mmsd.ge...
java
protected void handleAgentNameSearchButtonSelected() { final IType[] types = searchAgentNames(); // Ask to the user final DebugTypeSelectionDialog mmsd = new DebugTypeSelectionDialog(getShell(), types, ""); //$NON-NLS-1$ if (mmsd.open() == Window.CANCEL) { return; } final IType type = (IType) mmsd.ge...
[ "protected", "void", "handleAgentNameSearchButtonSelected", "(", ")", "{", "final", "IType", "[", "]", "types", "=", "searchAgentNames", "(", ")", ";", "// Ask to the user", "final", "DebugTypeSelectionDialog", "mmsd", "=", "new", "DebugTypeSelectionDialog", "(", "get...
Invoked when the search button for the agent agent was clocked.
[ "Invoked", "when", "the", "search", "button", "for", "the", "agent", "agent", "was", "clocked", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/launching/dialog/SARLAgentMainLaunchConfigurationTab.java#L556-L569
train
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/properties/RuntimeEnvironmentPropertyPage.java
RuntimeEnvironmentPropertyPage.saveProjectSpecificOptions
@SuppressWarnings("static-method") protected boolean saveProjectSpecificOptions(IProject project, boolean useSpecificOptions) { if (project != null) { try { project.setPersistentProperty( qualify(PROPERTY_NAME_HAS_PROJECT_SPECIFIC), Boolean.toString(useSpecificOptions)); return true; } catc...
java
@SuppressWarnings("static-method") protected boolean saveProjectSpecificOptions(IProject project, boolean useSpecificOptions) { if (project != null) { try { project.setPersistentProperty( qualify(PROPERTY_NAME_HAS_PROJECT_SPECIFIC), Boolean.toString(useSpecificOptions)); return true; } catc...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "boolean", "saveProjectSpecificOptions", "(", "IProject", "project", ",", "boolean", "useSpecificOptions", ")", "{", "if", "(", "project", "!=", "null", ")", "{", "try", "{", "project", ".", "s...
Save the flag that indicates if the specific project options must be used. @param project the project. @param useSpecificOptions indicates if the specific options must be used. @return <code>true</code> if the property was saved successfully.
[ "Save", "the", "flag", "that", "indicates", "if", "the", "specific", "project", "options", "must", "be", "used", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/properties/RuntimeEnvironmentPropertyPage.java#L149-L162
train
sarl/sarl
main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/utils/M2EUtilities.java
M2EUtilities.compareOsgiVersions
public static int compareOsgiVersions(String v1, String v2) { return Version.parseVersion(v1).compareTo(Version.parseVersion(v2)); }
java
public static int compareOsgiVersions(String v1, String v2) { return Version.parseVersion(v1).compareTo(Version.parseVersion(v2)); }
[ "public", "static", "int", "compareOsgiVersions", "(", "String", "v1", ",", "String", "v2", ")", "{", "return", "Version", ".", "parseVersion", "(", "v1", ")", ".", "compareTo", "(", "Version", ".", "parseVersion", "(", "v2", ")", ")", ";", "}" ]
Compare two OSGI versions. @param v1 first OSGI version. @param v2 second OSGI version. @return an integer that the sign indicates if v1 is lower, equal ot greater than v2.
[ "Compare", "two", "OSGI", "versions", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/utils/M2EUtilities.java#L63-L65
train
sarl/sarl
main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/utils/M2EUtilities.java
M2EUtilities.compareMavenVersions
public static int compareMavenVersions(String v1, String v2) { return parseMavenVersion(v1).compareTo(parseMavenVersion(v2)); }
java
public static int compareMavenVersions(String v1, String v2) { return parseMavenVersion(v1).compareTo(parseMavenVersion(v2)); }
[ "public", "static", "int", "compareMavenVersions", "(", "String", "v1", ",", "String", "v2", ")", "{", "return", "parseMavenVersion", "(", "v1", ")", ".", "compareTo", "(", "parseMavenVersion", "(", "v2", ")", ")", ";", "}" ]
Compare two Maven versions. @param v1 first Maven version. @param v2 second Maven version. @return an integer that the sign indicates if v1 is lower, equal ot greater than v2.
[ "Compare", "two", "Maven", "versions", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/utils/M2EUtilities.java#L73-L75
train
sarl/sarl
main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/utils/M2EUtilities.java
M2EUtilities.parseMavenVersion
public static Version parseMavenVersion(String version) { if (Strings.isNullOrEmpty(version)) { return new Version(0, 0, 0); } // Detect the snapshot final boolean isSnapshot; final String coreVersion; Matcher matcher = Artifact.VERSION_FILE_PATTERN.matcher(version); if (matcher.matches()) { coreVe...
java
public static Version parseMavenVersion(String version) { if (Strings.isNullOrEmpty(version)) { return new Version(0, 0, 0); } // Detect the snapshot final boolean isSnapshot; final String coreVersion; Matcher matcher = Artifact.VERSION_FILE_PATTERN.matcher(version); if (matcher.matches()) { coreVe...
[ "public", "static", "Version", "parseMavenVersion", "(", "String", "version", ")", "{", "if", "(", "Strings", ".", "isNullOrEmpty", "(", "version", ")", ")", "{", "return", "new", "Version", "(", "0", ",", "0", ",", "0", ")", ";", "}", "// Detect the sna...
Maven version parser. @param version the version string. @return the version.
[ "Maven", "version", "parser", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/utils/M2EUtilities.java#L82-L123
train
sarl/sarl
main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/SREutils.java
SREutils.getInternalSkill
@Pure public static <S extends Capacity> S getInternalSkill(Agent agent, Class<S> type) { return agent.getSkill(type); }
java
@Pure public static <S extends Capacity> S getInternalSkill(Agent agent, Class<S> type) { return agent.getSkill(type); }
[ "@", "Pure", "public", "static", "<", "S", "extends", "Capacity", ">", "S", "getInternalSkill", "(", "Agent", "agent", ",", "Class", "<", "S", ">", "type", ")", "{", "return", "agent", ".", "getSkill", "(", "type", ")", ";", "}" ]
Replies the internal skill of an agent. @param <S> the type of the capacity. @param agent the agent. @param type the type of the capacity. @return the skill. @throws UnimplementedCapacityException if the agent has not a skill for the given capacity. @since 0.6
[ "Replies", "the", "internal", "skill", "of", "an", "agent", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.core/src/io/sarl/lang/core/SREutils.java#L139-L142
train
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/services/network/NetworkConfig.java
NetworkConfig.getStringEncodingCharset
public static Charset getStringEncodingCharset() { if (currentStringEncoding == null) { final String value = JanusConfig.getSystemProperty(BYTE_ARRAY_STRING_CHARSET_NAME, null); if (value != null) { try { currentStringEncoding = Charset.forName(value); if (currentStringEncoding == null) { cu...
java
public static Charset getStringEncodingCharset() { if (currentStringEncoding == null) { final String value = JanusConfig.getSystemProperty(BYTE_ARRAY_STRING_CHARSET_NAME, null); if (value != null) { try { currentStringEncoding = Charset.forName(value); if (currentStringEncoding == null) { cu...
[ "public", "static", "Charset", "getStringEncodingCharset", "(", ")", "{", "if", "(", "currentStringEncoding", "==", "null", ")", "{", "final", "String", "value", "=", "JanusConfig", ".", "getSystemProperty", "(", "BYTE_ARRAY_STRING_CHARSET_NAME", ",", "null", ")", ...
Replies the charset that must be used for encoding the strings. @return the encoding charset.
[ "Replies", "the", "charset", "that", "must", "be", "used", "for", "encoding", "the", "strings", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/services/network/NetworkConfig.java#L97-L114
train
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/AbstractMemberBuilderFragment.java
AbstractMemberBuilderFragment.generateIMemberBuilder
protected void generateIMemberBuilder(MemberDescription description) { if (description.isTopElement()) { return; } final TypeReference builder = description.getElementDescription().getBuilderInterfaceType(); final StringConcatenationClient content = new StringConcatenationClient() { @Override protected...
java
protected void generateIMemberBuilder(MemberDescription description) { if (description.isTopElement()) { return; } final TypeReference builder = description.getElementDescription().getBuilderInterfaceType(); final StringConcatenationClient content = new StringConcatenationClient() { @Override protected...
[ "protected", "void", "generateIMemberBuilder", "(", "MemberDescription", "description", ")", "{", "if", "(", "description", ".", "isTopElement", "(", ")", ")", "{", "return", ";", "}", "final", "TypeReference", "builder", "=", "description", ".", "getElementDescri...
Generate the member builder interface. @param description the description of the member.
[ "Generate", "the", "member", "builder", "interface", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/AbstractMemberBuilderFragment.java#L102-L130
train
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/AbstractMemberBuilderFragment.java
AbstractMemberBuilderFragment.generateMemberAppender
protected void generateMemberAppender(MemberDescription description) { if (description.isTopElement()) { return; } final TypeReference appender = description.getElementDescription().getAppenderType(); final String generatedFieldAccessor = getGeneratedMemberAccessor(description); final StringConcatenationCl...
java
protected void generateMemberAppender(MemberDescription description) { if (description.isTopElement()) { return; } final TypeReference appender = description.getElementDescription().getAppenderType(); final String generatedFieldAccessor = getGeneratedMemberAccessor(description); final StringConcatenationCl...
[ "protected", "void", "generateMemberAppender", "(", "MemberDescription", "description", ")", "{", "if", "(", "description", ".", "isTopElement", "(", ")", ")", "{", "return", ";", "}", "final", "TypeReference", "appender", "=", "description", ".", "getElementDescr...
Generate the member appender. @param description the description of the member.
[ "Generate", "the", "member", "appender", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/AbstractMemberBuilderFragment.java#L175-L210
train