id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
57,300
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/InternalEventBusSkill.java
InternalEventBusSkill.runDestructionStage
private void runDestructionStage(Event event) { // Immediate synchronous dispatching of Destroy event try { setOwnerState(OwnerState.DYING); try { this.eventDispatcher.immediateDispatch(event); } finally { setOwnerState(OwnerState.DEAD); } } catch (Exception e) { // Log the exception fin...
java
private void runDestructionStage(Event event) { // Immediate synchronous dispatching of Destroy event try { setOwnerState(OwnerState.DYING); try { this.eventDispatcher.immediateDispatch(event); } finally { setOwnerState(OwnerState.DEAD); } } catch (Exception e) { // Log the exception fin...
[ "private", "void", "runDestructionStage", "(", "Event", "event", ")", "{", "// Immediate synchronous dispatching of Destroy event", "try", "{", "setOwnerState", "(", "OwnerState", ".", "DYING", ")", ";", "try", "{", "this", ".", "eventDispatcher", ".", "immediateDispa...
This function runs the destruction of the agent. @param event the {@link Destroy} occurrence.
[ "This", "function", "runs", "the", "destruction", "of", "the", "agent", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/bic/InternalEventBusSkill.java#L272-L293
57,301
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/highlighting/SARLHighlightingCalculator.java
SARLHighlightingCalculator.isCapacityMethodCall
protected boolean isCapacityMethodCall(JvmOperation feature) { if (feature != null) { final JvmDeclaredType container = feature.getDeclaringType(); if (container instanceof JvmGenericType) { return this.inheritanceHelper.isSarlCapacity((JvmGenericType) container); } } return false; }
java
protected boolean isCapacityMethodCall(JvmOperation feature) { if (feature != null) { final JvmDeclaredType container = feature.getDeclaringType(); if (container instanceof JvmGenericType) { return this.inheritanceHelper.isSarlCapacity((JvmGenericType) container); } } return false; }
[ "protected", "boolean", "isCapacityMethodCall", "(", "JvmOperation", "feature", ")", "{", "if", "(", "feature", "!=", "null", ")", "{", "final", "JvmDeclaredType", "container", "=", "feature", ".", "getDeclaringType", "(", ")", ";", "if", "(", "container", "in...
Replies if the given call is for a capacity function call. @param feature the feature to test. @return {@code true} if the feature is capacity(s method.
[ "Replies", "if", "the", "given", "call", "is", "for", "a", "capacity", "function", "call", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/highlighting/SARLHighlightingCalculator.java#L87-L95
57,302
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java
SARLProposalProvider.completeJavaTypes
protected void completeJavaTypes(ContentAssistContext context, ITypesProposalProvider.Filter filter, ICompletionProposalAcceptor acceptor) { completeJavaTypes(context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, true, getQualifiedNameValueConverter(), filter, acceptor); }
java
protected void completeJavaTypes(ContentAssistContext context, ITypesProposalProvider.Filter filter, ICompletionProposalAcceptor acceptor) { completeJavaTypes(context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, true, getQualifiedNameValueConverter(), filter, acceptor); }
[ "protected", "void", "completeJavaTypes", "(", "ContentAssistContext", "context", ",", "ITypesProposalProvider", ".", "Filter", "filter", ",", "ICompletionProposalAcceptor", "acceptor", ")", "{", "completeJavaTypes", "(", "context", ",", "TypesPackage", ".", "Literals", ...
Complete for Java types. @param context the completion context. @param filter the filter for the types. @param acceptor the proposal acceptor.
[ "Complete", "for", "Java", "types", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java#L136-L144
57,303
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java
SARLProposalProvider.completeSarlEvents
protected void completeSarlEvents(boolean allowEventType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Event.class, allowEventType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, ...
java
protected void completeSarlEvents(boolean allowEventType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Event.class, allowEventType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, ...
[ "protected", "void", "completeSarlEvents", "(", "boolean", "allowEventType", ",", "boolean", "isExtensionFilter", ",", "ContentAssistContext", "context", ",", "ICompletionProposalAcceptor", "acceptor", ")", "{", "if", "(", "isSarlProposalEnabled", "(", ")", ")", "{", ...
Complete for obtaining SARL events if the proposals are enabled. @param allowEventType is <code>true</code> for enabling the {@link Event} type to be in the proposals. @param isExtensionFilter indicates if the type filter is for "extends" or only based on visibility. @param context the completion context. @param accep...
[ "Complete", "for", "obtaining", "SARL", "events", "if", "the", "proposals", "are", "enabled", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java#L154-L163
57,304
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java
SARLProposalProvider.completeSarlCapacities
protected void completeSarlCapacities(boolean allowCapacityType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Capacity.class, allowCapacityType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFE...
java
protected void completeSarlCapacities(boolean allowCapacityType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Capacity.class, allowCapacityType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFE...
[ "protected", "void", "completeSarlCapacities", "(", "boolean", "allowCapacityType", ",", "boolean", "isExtensionFilter", ",", "ContentAssistContext", "context", ",", "ICompletionProposalAcceptor", "acceptor", ")", "{", "if", "(", "isSarlProposalEnabled", "(", ")", ")", ...
Complete for obtaining SARL capacities if the proposals are enabled. @param allowCapacityType is <code>true</code> for enabling the {@link Capacity} type to be in the proposals. @param isExtensionFilter indicates if the type filter is for "extends" or only based on visibility. @param context the completion context. @p...
[ "Complete", "for", "obtaining", "SARL", "capacities", "if", "the", "proposals", "are", "enabled", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java#L173-L182
57,305
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java
SARLProposalProvider.completeSarlAgents
protected void completeSarlAgents(boolean allowAgentType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Agent.class, allowAgentType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, ...
java
protected void completeSarlAgents(boolean allowAgentType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Agent.class, allowAgentType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, ...
[ "protected", "void", "completeSarlAgents", "(", "boolean", "allowAgentType", ",", "boolean", "isExtensionFilter", ",", "ContentAssistContext", "context", ",", "ICompletionProposalAcceptor", "acceptor", ")", "{", "if", "(", "isSarlProposalEnabled", "(", ")", ")", "{", ...
Complete for obtaining SARL agents if the proposals are enabled. @param allowAgentType is <code>true</code> for enabling the {@link Agent} type to be in the proposals. @param isExtensionFilter indicates if the type filter is for "extends" or only based on visibility. @param context the completion context. @param accep...
[ "Complete", "for", "obtaining", "SARL", "agents", "if", "the", "proposals", "are", "enabled", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java#L192-L201
57,306
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java
SARLProposalProvider.completeSarlBehaviors
protected void completeSarlBehaviors(boolean allowBehaviorType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Behavior.class, allowBehaviorType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFER...
java
protected void completeSarlBehaviors(boolean allowBehaviorType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Behavior.class, allowBehaviorType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFER...
[ "protected", "void", "completeSarlBehaviors", "(", "boolean", "allowBehaviorType", ",", "boolean", "isExtensionFilter", ",", "ContentAssistContext", "context", ",", "ICompletionProposalAcceptor", "acceptor", ")", "{", "if", "(", "isSarlProposalEnabled", "(", ")", ")", "...
Complete for obtaining SARL behaviors if the proposals are enabled. @param allowBehaviorType is <code>true</code> for enabling the {@link Behavior} type to be in the proposals. @param isExtensionFilter indicates if the type filter is for "extends" or only based on visibility. @param context the completion context. @pa...
[ "Complete", "for", "obtaining", "SARL", "behaviors", "if", "the", "proposals", "are", "enabled", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java#L211-L220
57,307
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java
SARLProposalProvider.completeSarlSkills
protected void completeSarlSkills(boolean allowSkillType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Skill.class, allowSkillType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, ...
java
protected void completeSarlSkills(boolean allowSkillType, boolean isExtensionFilter, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Skill.class, allowSkillType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, ...
[ "protected", "void", "completeSarlSkills", "(", "boolean", "allowSkillType", ",", "boolean", "isExtensionFilter", ",", "ContentAssistContext", "context", ",", "ICompletionProposalAcceptor", "acceptor", ")", "{", "if", "(", "isSarlProposalEnabled", "(", ")", ")", "{", ...
Complete for obtaining SARL skills if proposals are enabled. @param allowSkillType is <code>true</code> for enabling the {@link Skill} type to be in the proposals. @param isExtensionFilter indicates if the type filter is for "extends" or only based on visibility. @param context the completion context. @param acceptor ...
[ "Complete", "for", "obtaining", "SARL", "skills", "if", "proposals", "are", "enabled", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java#L230-L239
57,308
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java
SARLProposalProvider.completeExceptions
protected void completeExceptions(boolean allowExceptionType, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Exception.class, allowExceptionType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, getQualifi...
java
protected void completeExceptions(boolean allowExceptionType, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { completeSubJavaTypes(Exception.class, allowExceptionType, context, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, getQualifi...
[ "protected", "void", "completeExceptions", "(", "boolean", "allowExceptionType", ",", "ContentAssistContext", "context", ",", "ICompletionProposalAcceptor", "acceptor", ")", "{", "if", "(", "isSarlProposalEnabled", "(", ")", ")", "{", "completeSubJavaTypes", "(", "Excep...
Complete for obtaining exception types if proposals are enabled. @param allowExceptionType is <code>true</code> for enabling the {@link Exception} type to be in the proposals. @param context the completion context. @param acceptor the proposal acceptor. @see #isSarlProposalEnabled()
[ "Complete", "for", "obtaining", "exception", "types", "if", "proposals", "are", "enabled", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java#L248-L256
57,309
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java
SARLProposalProvider.completeSubJavaTypes
protected void completeSubJavaTypes(Class<?> superType, boolean allowSuperTypeItself, ContentAssistContext context, EReference reference, IValueConverter<String> valueConverter, final ITypesProposalProvider.Filter filter, ICompletionProposalAcceptor acceptor) { assert superType != null; final INode lastComple...
java
protected void completeSubJavaTypes(Class<?> superType, boolean allowSuperTypeItself, ContentAssistContext context, EReference reference, IValueConverter<String> valueConverter, final ITypesProposalProvider.Filter filter, ICompletionProposalAcceptor acceptor) { assert superType != null; final INode lastComple...
[ "protected", "void", "completeSubJavaTypes", "(", "Class", "<", "?", ">", "superType", ",", "boolean", "allowSuperTypeItself", ",", "ContentAssistContext", "context", ",", "EReference", "reference", ",", "IValueConverter", "<", "String", ">", "valueConverter", ",", ...
Complete for obtaining SARL types that are subtypes of the given type. @param superType the super-type. @param allowSuperTypeItself indicates if the super-type itself is allowed to be in the proposals. @param context the content assist context. @param reference the reference to the rule part to be complete. @param val...
[ "Complete", "for", "obtaining", "SARL", "types", "that", "are", "subtypes", "of", "the", "given", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java#L268-L314
57,310
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java
SARLProposalProvider.getExpectedPackageName
protected String getExpectedPackageName(EObject model) { final URI fileURI = model.eResource().getURI(); for (final Pair<IStorage, IProject> storage: this.storage2UriMapper.getStorages(fileURI)) { if (storage.getFirst() instanceof IFile) { final IPath fileWorkspacePath = storage.getFirst().getFullPath(); ...
java
protected String getExpectedPackageName(EObject model) { final URI fileURI = model.eResource().getURI(); for (final Pair<IStorage, IProject> storage: this.storage2UriMapper.getStorages(fileURI)) { if (storage.getFirst() instanceof IFile) { final IPath fileWorkspacePath = storage.getFirst().getFullPath(); ...
[ "protected", "String", "getExpectedPackageName", "(", "EObject", "model", ")", "{", "final", "URI", "fileURI", "=", "model", ".", "eResource", "(", ")", ".", "getURI", "(", ")", ";", "for", "(", "final", "Pair", "<", "IStorage", ",", "IProject", ">", "st...
Replies the expected package for the given model. @param model the model. @return the expected package name.
[ "Replies", "the", "expected", "package", "for", "the", "given", "model", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java#L337-L347
57,311
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java
SARLProposalProvider.completeExtends
protected void completeExtends(EObject model, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { if (model instanceof SarlAgent) { completeSarlAgents(false, true, context, acceptor); } else if (model instanceof SarlBehavior) { completeSarlBehaviors(fa...
java
protected void completeExtends(EObject model, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { if (isSarlProposalEnabled()) { if (model instanceof SarlAgent) { completeSarlAgents(false, true, context, acceptor); } else if (model instanceof SarlBehavior) { completeSarlBehaviors(fa...
[ "protected", "void", "completeExtends", "(", "EObject", "model", ",", "ContentAssistContext", "context", ",", "ICompletionProposalAcceptor", "acceptor", ")", "{", "if", "(", "isSarlProposalEnabled", "(", ")", ")", "{", "if", "(", "model", "instanceof", "SarlAgent", ...
Complete the "extends" if the proposals are enabled. @param model the model. @param context the context. @param acceptor the proposal acceptor. @see #isSarlProposalEnabled()
[ "Complete", "the", "extends", "if", "the", "proposals", "are", "enabled", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/contentassist/SARLProposalProvider.java#L379-L404
57,312
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/outline/SARLOutlineTreeProvider.java
SARLOutlineTreeProvider._createChildren
protected void _createChildren(DocumentRootNode parentNode, SarlScript modelElement) { if (!Strings.isNullOrEmpty(modelElement.getPackage())) { // Create the node for the package declaration. createEStructuralFeatureNode( parentNode, modelElement, XtendPackage.Literals.XTEND_FILE__PACKAGE, this.i...
java
protected void _createChildren(DocumentRootNode parentNode, SarlScript modelElement) { if (!Strings.isNullOrEmpty(modelElement.getPackage())) { // Create the node for the package declaration. createEStructuralFeatureNode( parentNode, modelElement, XtendPackage.Literals.XTEND_FILE__PACKAGE, this.i...
[ "protected", "void", "_createChildren", "(", "DocumentRootNode", "parentNode", ",", "SarlScript", "modelElement", ")", "{", "if", "(", "!", "Strings", ".", "isNullOrEmpty", "(", "modelElement", ".", "getPackage", "(", ")", ")", ")", "{", "// Create the node for th...
Create a node for the SARL script. @param parentNode the parent node. @param modelElement the feature container for which a node should be created.
[ "Create", "a", "node", "for", "the", "SARL", "script", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/outline/SARLOutlineTreeProvider.java#L103-L123
57,313
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/outline/SARLOutlineTreeProvider.java
SARLOutlineTreeProvider._createNode
@SuppressWarnings("checkstyle:cyclomaticcomplexity") protected void _createNode(DocumentRootNode parentNode, XtendTypeDeclaration modelElement) { // // The text region is set to the model element, not to the model element's name as in the // default implementation of createStructuralFeatureNode(). // The text ...
java
@SuppressWarnings("checkstyle:cyclomaticcomplexity") protected void _createNode(DocumentRootNode parentNode, XtendTypeDeclaration modelElement) { // // The text region is set to the model element, not to the model element's name as in the // default implementation of createStructuralFeatureNode(). // The text ...
[ "@", "SuppressWarnings", "(", "\"checkstyle:cyclomaticcomplexity\"", ")", "protected", "void", "_createNode", "(", "DocumentRootNode", "parentNode", ",", "XtendTypeDeclaration", "modelElement", ")", "{", "//", "// The text region is set to the model element, not to the model elemen...
Create a node for the given feature container. @param parentNode the parent node. @param modelElement the feature container for which a node should be created.
[ "Create", "a", "node", "for", "the", "given", "feature", "container", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/outline/SARLOutlineTreeProvider.java#L130-L178
57,314
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/outline/SARLOutlineTreeProvider.java
SARLOutlineTreeProvider._image
protected Image _image(XtendMember modelElement) { final Image img = super._image(modelElement); return this.diagnoticDecorator.decorateImage(img, modelElement); }
java
protected Image _image(XtendMember modelElement) { final Image img = super._image(modelElement); return this.diagnoticDecorator.decorateImage(img, modelElement); }
[ "protected", "Image", "_image", "(", "XtendMember", "modelElement", ")", "{", "final", "Image", "img", "=", "super", ".", "_image", "(", "modelElement", ")", ";", "return", "this", ".", "diagnoticDecorator", ".", "decorateImage", "(", "img", ",", "modelElement...
Get the image for the Xtend members. @param modelElement the member. @return the image.
[ "Get", "the", "image", "for", "the", "Xtend", "members", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/outline/SARLOutlineTreeProvider.java#L395-L398
57,315
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlConstructorBuilderImpl.java
SarlConstructorBuilderImpl.addParameter
public IFormalParameterBuilder addParameter(String name) { IFormalParameterBuilder builder = this.parameterProvider.get(); builder.eInit(this.sarlConstructor, name, getTypeResolutionContext()); return builder; }
java
public IFormalParameterBuilder addParameter(String name) { IFormalParameterBuilder builder = this.parameterProvider.get(); builder.eInit(this.sarlConstructor, name, getTypeResolutionContext()); return builder; }
[ "public", "IFormalParameterBuilder", "addParameter", "(", "String", "name", ")", "{", "IFormalParameterBuilder", "builder", "=", "this", ".", "parameterProvider", ".", "get", "(", ")", ";", "builder", ".", "eInit", "(", "this", ".", "sarlConstructor", ",", "name...
Add a formal parameter. @param name the name of the formal parameter.
[ "Add", "a", "formal", "parameter", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlConstructorBuilderImpl.java#L113-L117
57,316
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/AbstractSarlScriptInteractiveSelector.java
AbstractSarlScriptInteractiveSelector.isValidResource
@SuppressWarnings("static-method") protected boolean isValidResource(IResource resource) { return resource.isAccessible() && !resource.isHidden() && !resource.isPhantom() && !resource.isDerived(); }
java
@SuppressWarnings("static-method") protected boolean isValidResource(IResource resource) { return resource.isAccessible() && !resource.isHidden() && !resource.isPhantom() && !resource.isDerived(); }
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "boolean", "isValidResource", "(", "IResource", "resource", ")", "{", "return", "resource", ".", "isAccessible", "(", ")", "&&", "!", "resource", ".", "isHidden", "(", ")", "&&", "!", "resour...
Replies if the given resource could be considered for discovering an agent to be launched. @param resource the resource. @return {@code true} if the resource could be explored.
[ "Replies", "if", "the", "given", "resource", "could", "be", "considered", "for", "discovering", "an", "agent", "to", "be", "launched", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/AbstractSarlScriptInteractiveSelector.java#L113-L116
57,317
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/AbstractSarlScriptInteractiveSelector.java
AbstractSarlScriptInteractiveSelector.searchAndSelect
public ElementDescription searchAndSelect(boolean showEmptySelectionError, Object... scope) { try { final List<ElementDescription> elements = findElements(scope, PlatformUI.getWorkbench().getProgressService()); ElementDescription element = null; if (elements == null || elements.isEmpty()) { if (showEmpty...
java
public ElementDescription searchAndSelect(boolean showEmptySelectionError, Object... scope) { try { final List<ElementDescription> elements = findElements(scope, PlatformUI.getWorkbench().getProgressService()); ElementDescription element = null; if (elements == null || elements.isEmpty()) { if (showEmpty...
[ "public", "ElementDescription", "searchAndSelect", "(", "boolean", "showEmptySelectionError", ",", "Object", "...", "scope", ")", "{", "try", "{", "final", "List", "<", "ElementDescription", ">", "elements", "=", "findElements", "(", "scope", ",", "PlatformUI", "....
Search the elements based on the given scope, and select one. If more than one element was found, the user selects interactively one. @param showEmptySelectionError indicates if this function shows an error when the selection is empty. @param scope the elements to consider for an element type that can be launched. @re...
[ "Search", "the", "elements", "based", "on", "the", "given", "scope", "and", "select", "one", ".", "If", "more", "than", "one", "element", "was", "found", "the", "user", "selects", "interactively", "one", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/AbstractSarlScriptInteractiveSelector.java#L277-L301
57,318
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/AbstractSarlScriptInteractiveSelector.java
AbstractSarlScriptInteractiveSelector.chooseElement
private ElementDescription chooseElement(List<ElementDescription> elements) { final ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), new LabelProvider()); dialog.setElements(elements.toArray()); dialog.setTitle(MessageFormat.format(Messages.AbstractSarlScriptInteractiveSelector_3...
java
private ElementDescription chooseElement(List<ElementDescription> elements) { final ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), new LabelProvider()); dialog.setElements(elements.toArray()); dialog.setTitle(MessageFormat.format(Messages.AbstractSarlScriptInteractiveSelector_3...
[ "private", "ElementDescription", "chooseElement", "(", "List", "<", "ElementDescription", ">", "elements", ")", "{", "final", "ElementListSelectionDialog", "dialog", "=", "new", "ElementListSelectionDialog", "(", "getShell", "(", ")", ",", "new", "LabelProvider", "(",...
Prompts the user to select an element from the given element types. @param elements the element types to choose from. @return the selected element or <code>null</code> if none.
[ "Prompts", "the", "user", "to", "select", "an", "element", "from", "the", "given", "element", "types", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/util/AbstractSarlScriptInteractiveSelector.java#L327-L340
57,319
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastOperatorLinkingCandidate.java
CastOperatorLinkingCandidate.getValidationDescription
public String getValidationDescription() { final JvmOperation feature = getOperation(); String message = null; if (!getDeclaredTypeParameters().isEmpty()) { message = MessageFormat.format(Messages.CastOperatorLinkingCandidate_0, getFeatureTypeParametersAsString(true), feature.getSimpleName(), ge...
java
public String getValidationDescription() { final JvmOperation feature = getOperation(); String message = null; if (!getDeclaredTypeParameters().isEmpty()) { message = MessageFormat.format(Messages.CastOperatorLinkingCandidate_0, getFeatureTypeParametersAsString(true), feature.getSimpleName(), ge...
[ "public", "String", "getValidationDescription", "(", ")", "{", "final", "JvmOperation", "feature", "=", "getOperation", "(", ")", ";", "String", "message", "=", "null", ";", "if", "(", "!", "getDeclaredTypeParameters", "(", ")", ".", "isEmpty", "(", ")", ")"...
Replies the string representation of the candidate. @return the description of the candidate.
[ "Replies", "the", "string", "representation", "of", "the", "candidate", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastOperatorLinkingCandidate.java#L389-L405
57,320
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.annotationClassRef
private JvmAnnotationReference annotationClassRef(Class<? extends Annotation> type, List<? extends JvmTypeReference> values) { try { final JvmAnnotationReference annot = this._annotationTypesBuilder.annotationRef(type); final JvmTypeAnnotationValue annotationValue = this.services.getTypesFactory().createJvmT...
java
private JvmAnnotationReference annotationClassRef(Class<? extends Annotation> type, List<? extends JvmTypeReference> values) { try { final JvmAnnotationReference annot = this._annotationTypesBuilder.annotationRef(type); final JvmTypeAnnotationValue annotationValue = this.services.getTypesFactory().createJvmT...
[ "private", "JvmAnnotationReference", "annotationClassRef", "(", "Class", "<", "?", "extends", "Annotation", ">", "type", ",", "List", "<", "?", "extends", "JvmTypeReference", ">", "values", ")", "{", "try", "{", "final", "JvmAnnotationReference", "annot", "=", "...
Create an annotation with classes as values. @param type the type of the annotation. @param values the values. @return the reference to the JVM annotation.
[ "Create", "an", "annotation", "with", "classes", "as", "values", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L434-L448
57,321
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.initializeLocalTypes
protected void initializeLocalTypes(GenerationContext context, JvmFeature feature, XExpression expression) { if (expression != null) { int localTypeIndex = context.getLocalTypeIndex(); final TreeIterator<EObject> iterator = EcoreUtil2.getAllNonDerivedContents(expression, true); final String nameStub = "__" +...
java
protected void initializeLocalTypes(GenerationContext context, JvmFeature feature, XExpression expression) { if (expression != null) { int localTypeIndex = context.getLocalTypeIndex(); final TreeIterator<EObject> iterator = EcoreUtil2.getAllNonDerivedContents(expression, true); final String nameStub = "__" +...
[ "protected", "void", "initializeLocalTypes", "(", "GenerationContext", "context", ",", "JvmFeature", "feature", ",", "XExpression", "expression", ")", "{", "if", "(", "expression", "!=", "null", ")", "{", "int", "localTypeIndex", "=", "context", ".", "getLocalType...
Initialize the local class to the given expression. @param context the generation context. @param feature the feature which contains the expression. @param expression the expression which contains the local class.
[ "Initialize", "the", "local", "class", "to", "the", "given", "expression", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L456-L471
57,322
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.setBody
protected void setBody(JvmExecutable executable, Procedure1<ITreeAppendable> expression) { this.typeBuilder.setBody(executable, expression); }
java
protected void setBody(JvmExecutable executable, Procedure1<ITreeAppendable> expression) { this.typeBuilder.setBody(executable, expression); }
[ "protected", "void", "setBody", "(", "JvmExecutable", "executable", ",", "Procedure1", "<", "ITreeAppendable", ">", "expression", ")", "{", "this", ".", "typeBuilder", ".", "setBody", "(", "executable", ",", "expression", ")", ";", "}" ]
Set the body of the executable. @param executable the executable. @param expression the body definition.
[ "Set", "the", "body", "of", "the", "executable", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L510-L512
57,323
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.openContext
protected final synchronized GenerationContext openContext(EObject sarlObject, JvmDeclaredType type, final Iterable<Class<? extends XtendMember>> supportedMemberTypes) { assert type != null; assert supportedMemberTypes != null; this.sarlSignatureProvider.clear(type); final GenerationContext context = new Gen...
java
protected final synchronized GenerationContext openContext(EObject sarlObject, JvmDeclaredType type, final Iterable<Class<? extends XtendMember>> supportedMemberTypes) { assert type != null; assert supportedMemberTypes != null; this.sarlSignatureProvider.clear(type); final GenerationContext context = new Gen...
[ "protected", "final", "synchronized", "GenerationContext", "openContext", "(", "EObject", "sarlObject", ",", "JvmDeclaredType", "type", ",", "final", "Iterable", "<", "Class", "<", "?", "extends", "XtendMember", ">", ">", "supportedMemberTypes", ")", "{", "assert", ...
Open the context for the generation of a SARL-specific element. @param sarlObject the SARL object that is the cause of the generation. @param type the generated type. @param supportedMemberTypes the types of the supported members. @return the created context.
[ "Open", "the", "context", "for", "the", "generation", "of", "a", "SARL", "-", "specific", "element", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L521-L540
57,324
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.closeContext
protected final void closeContext(GenerationContext context) { boolean runPostElements = false; GenerationContext selectedContext = null; synchronized (this) { final Iterator<GenerationContext> iterator = this.bufferedContexes.iterator(); while (selectedContext == null && iterator.hasNext()) { final Gen...
java
protected final void closeContext(GenerationContext context) { boolean runPostElements = false; GenerationContext selectedContext = null; synchronized (this) { final Iterator<GenerationContext> iterator = this.bufferedContexes.iterator(); while (selectedContext == null && iterator.hasNext()) { final Gen...
[ "protected", "final", "void", "closeContext", "(", "GenerationContext", "context", ")", "{", "boolean", "runPostElements", "=", "false", ";", "GenerationContext", "selectedContext", "=", "null", ";", "synchronized", "(", "this", ")", "{", "final", "Iterator", "<",...
Close a generation context. @param context the context to be closed.
[ "Close", "a", "generation", "context", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L546-L578
57,325
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.getContext
protected final synchronized GenerationContext getContext(JvmIdentifiableElement type) { for (final GenerationContext candidate : this.bufferedContexes) { if (Objects.equal(candidate.getTypeIdentifier(), type.getIdentifier())) { return candidate; } } throw new GenerationContextNotFoundInternalError(type...
java
protected final synchronized GenerationContext getContext(JvmIdentifiableElement type) { for (final GenerationContext candidate : this.bufferedContexes) { if (Objects.equal(candidate.getTypeIdentifier(), type.getIdentifier())) { return candidate; } } throw new GenerationContextNotFoundInternalError(type...
[ "protected", "final", "synchronized", "GenerationContext", "getContext", "(", "JvmIdentifiableElement", "type", ")", "{", "for", "(", "final", "GenerationContext", "candidate", ":", "this", ".", "bufferedContexes", ")", "{", "if", "(", "Objects", ".", "equal", "("...
Replies the SARL-specific generation context. @param type the generated type. @return the SARL-specific generation context.
[ "Replies", "the", "SARL", "-", "specific", "generation", "context", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L585-L592
57,326
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.appendDefaultConstructors
protected void appendDefaultConstructors(XtendTypeDeclaration source, JvmGenericType target) { final GenerationContext context = getContext(target); if (!context.hasConstructor()) { // Special case: if a value was not set, we cannot create implicit constructors // in order to have the issue message "The blan...
java
protected void appendDefaultConstructors(XtendTypeDeclaration source, JvmGenericType target) { final GenerationContext context = getContext(target); if (!context.hasConstructor()) { // Special case: if a value was not set, we cannot create implicit constructors // in order to have the issue message "The blan...
[ "protected", "void", "appendDefaultConstructors", "(", "XtendTypeDeclaration", "source", ",", "JvmGenericType", "target", ")", "{", "final", "GenerationContext", "context", "=", "getContext", "(", "target", ")", ";", "if", "(", "!", "context", ".", "hasConstructor",...
Add the default constructors. <p>The default constructors have the same signature as the constructors of the super class. <p>This function adds the default constructors if no constructor was already added. This condition is determined with a call to {@link GenerationContext#hasConstructor()}. @param source the SARL ...
[ "Add", "the", "default", "constructors", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L755-L786
57,327
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.initialize
protected void initialize(SarlSkill source, JvmGenericType inferredJvmType) { // Issue #356: do not generate if the skill has no name. assert source != null; assert inferredJvmType != null; if (Strings.isNullOrEmpty(source.getName())) { return; } // Create the generation context that is used by the other...
java
protected void initialize(SarlSkill source, JvmGenericType inferredJvmType) { // Issue #356: do not generate if the skill has no name. assert source != null; assert inferredJvmType != null; if (Strings.isNullOrEmpty(source.getName())) { return; } // Create the generation context that is used by the other...
[ "protected", "void", "initialize", "(", "SarlSkill", "source", ",", "JvmGenericType", "inferredJvmType", ")", "{", "// Issue #356: do not generate if the skill has no name.", "assert", "source", "!=", "null", ";", "assert", "inferredJvmType", "!=", "null", ";", "if", "(...
Initialize the SARL skill type. @param source the source. @param inferredJvmType the JVM type.
[ "Initialize", "the", "SARL", "skill", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L1259-L1321
57,328
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.initialize
protected void initialize(SarlCapacity source, JvmGenericType inferredJvmType) { // Issue #356: do not generate if the capacity has no name. assert source != null; assert inferredJvmType != null; if (Strings.isNullOrEmpty(source.getName())) { return; } // Create the generation context that is used by the...
java
protected void initialize(SarlCapacity source, JvmGenericType inferredJvmType) { // Issue #356: do not generate if the capacity has no name. assert source != null; assert inferredJvmType != null; if (Strings.isNullOrEmpty(source.getName())) { return; } // Create the generation context that is used by the...
[ "protected", "void", "initialize", "(", "SarlCapacity", "source", ",", "JvmGenericType", "inferredJvmType", ")", "{", "// Issue #356: do not generate if the capacity has no name.", "assert", "source", "!=", "null", ";", "assert", "inferredJvmType", "!=", "null", ";", "if"...
Initialize the SARL capacity type. @param source the source. @param inferredJvmType the JVM type.
[ "Initialize", "the", "SARL", "capacity", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L1328-L1382
57,329
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.initialize
@SuppressWarnings("static-method") protected void initialize(SarlSpace source, JvmGenericType inferredJvmType) { // Issue #356: do not generate if the space has no name. assert source != null; assert inferredJvmType != null; if (Strings.isNullOrEmpty(source.getName())) { return; } }
java
@SuppressWarnings("static-method") protected void initialize(SarlSpace source, JvmGenericType inferredJvmType) { // Issue #356: do not generate if the space has no name. assert source != null; assert inferredJvmType != null; if (Strings.isNullOrEmpty(source.getName())) { return; } }
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "void", "initialize", "(", "SarlSpace", "source", ",", "JvmGenericType", "inferredJvmType", ")", "{", "// Issue #356: do not generate if the space has no name.", "assert", "source", "!=", "null", ";", "a...
Initialize the SARL space type. @param source the source. @param inferredJvmType the JVM type.
[ "Initialize", "the", "SARL", "space", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L1389-L1397
57,330
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.transform
@Override protected void transform(XtendField source, JvmGenericType container) { super.transform(source, container); // Override the visibility final JvmField field = (JvmField) this.sarlAssociations.getPrimaryJvmElement(source); setVisibility(field, source); final GenerationContext context = getContext(co...
java
@Override protected void transform(XtendField source, JvmGenericType container) { super.transform(source, container); // Override the visibility final JvmField field = (JvmField) this.sarlAssociations.getPrimaryJvmElement(source); setVisibility(field, source); final GenerationContext context = getContext(co...
[ "@", "Override", "protected", "void", "transform", "(", "XtendField", "source", ",", "JvmGenericType", "container", ")", "{", "super", ".", "transform", "(", "source", ",", "container", ")", ";", "// Override the visibility", "final", "JvmField", "field", "=", "...
Transform the field. @param source the feature to transform. @param container the target container of the transformation result.
[ "Transform", "the", "field", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L1555-L1573
57,331
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.appendAOPMembers
protected void appendAOPMembers( JvmGenericType featureContainerType, XtendTypeDeclaration container, GenerationContext context) { Utils.populateInheritanceContext( featureContainerType, context.getInheritedFinalOperations(), context.getInheritedOverridableOperations(), null, context.get...
java
protected void appendAOPMembers( JvmGenericType featureContainerType, XtendTypeDeclaration container, GenerationContext context) { Utils.populateInheritanceContext( featureContainerType, context.getInheritedFinalOperations(), context.getInheritedOverridableOperations(), null, context.get...
[ "protected", "void", "appendAOPMembers", "(", "JvmGenericType", "featureContainerType", ",", "XtendTypeDeclaration", "container", ",", "GenerationContext", "context", ")", "{", "Utils", ".", "populateInheritanceContext", "(", "featureContainerType", ",", "context", ".", "...
Generate the code for the given SARL members in a agent-oriented container. @param featureContainerType the feature container. @param container the SARL container. @param context description of the generation context in which the members must be considered.
[ "Generate", "the", "code", "for", "the", "given", "SARL", "members", "in", "a", "agent", "-", "oriented", "container", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2185-L2227
57,332
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.toStringConcatenation
private static StringConcatenationClient toStringConcatenation(final String... javaCodeLines) { return new StringConcatenationClient() { @Override protected void appendTo(StringConcatenationClient.TargetStringConcatenation builder) { for (final String line : javaCodeLines) { builder.append(line); ...
java
private static StringConcatenationClient toStringConcatenation(final String... javaCodeLines) { return new StringConcatenationClient() { @Override protected void appendTo(StringConcatenationClient.TargetStringConcatenation builder) { for (final String line : javaCodeLines) { builder.append(line); ...
[ "private", "static", "StringConcatenationClient", "toStringConcatenation", "(", "final", "String", "...", "javaCodeLines", ")", "{", "return", "new", "StringConcatenationClient", "(", ")", "{", "@", "Override", "protected", "void", "appendTo", "(", "StringConcatenationC...
Create a string concatenation client from a set of Java code lines. @param javaCodeLines the Java code lines. @return the client.
[ "Create", "a", "string", "concatenation", "client", "from", "a", "set", "of", "Java", "code", "lines", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2367-L2377
57,333
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.appendConstrainedImplements
protected void appendConstrainedImplements( GenerationContext context, JvmGenericType owner, Class<?> defaultJvmType, Class<? extends XtendTypeDeclaration> defaultSarlType, List<? extends JvmParameterizedTypeReference> implementedtypes) { boolean explicitType = false; for (final JvmParameterizedTypeRefe...
java
protected void appendConstrainedImplements( GenerationContext context, JvmGenericType owner, Class<?> defaultJvmType, Class<? extends XtendTypeDeclaration> defaultSarlType, List<? extends JvmParameterizedTypeReference> implementedtypes) { boolean explicitType = false; for (final JvmParameterizedTypeRefe...
[ "protected", "void", "appendConstrainedImplements", "(", "GenerationContext", "context", ",", "JvmGenericType", "owner", ",", "Class", "<", "?", ">", "defaultJvmType", ",", "Class", "<", "?", "extends", "XtendTypeDeclaration", ">", "defaultSarlType", ",", "List", "<...
Generate the implemented types for the given SARL statement. @param context the context of the generation. @param owner the JVM element to change. @param defaultJvmType the default JVM type. @param defaultSarlType the default SARL type. @param implementedtypes the implemented types.
[ "Generate", "the", "implemented", "types", "for", "the", "given", "SARL", "statement", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2448-L2468
57,334
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.appendEventGuardEvaluators
protected void appendEventGuardEvaluators(JvmGenericType container) { final GenerationContext context = getContext(container); if (context != null) { final Collection<Pair<SarlBehaviorUnit, Collection<Procedure1<? super ITreeAppendable>>>> allEvaluators = context.getGuardEvaluationCodes(); if (allEvaluat...
java
protected void appendEventGuardEvaluators(JvmGenericType container) { final GenerationContext context = getContext(container); if (context != null) { final Collection<Pair<SarlBehaviorUnit, Collection<Procedure1<? super ITreeAppendable>>>> allEvaluators = context.getGuardEvaluationCodes(); if (allEvaluat...
[ "protected", "void", "appendEventGuardEvaluators", "(", "JvmGenericType", "container", ")", "{", "final", "GenerationContext", "context", "=", "getContext", "(", "container", ")", ";", "if", "(", "context", "!=", "null", ")", "{", "final", "Collection", "<", "Pa...
Append the guard evaluators. @param container the container type.
[ "Append", "the", "guard", "evaluators", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2505-L2572
57,335
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.appendSerialNumber
protected void appendSerialNumber(GenerationContext context, XtendTypeDeclaration source, JvmGenericType target) { if (!isAppendSerialNumbersEnable(context)) { return; } for (final JvmField field : target.getDeclaredFields()) { if (SERIAL_FIELD_NAME.equals(field.getSimpleName())) { return; } } f...
java
protected void appendSerialNumber(GenerationContext context, XtendTypeDeclaration source, JvmGenericType target) { if (!isAppendSerialNumbersEnable(context)) { return; } for (final JvmField field : target.getDeclaredFields()) { if (SERIAL_FIELD_NAME.equals(field.getSimpleName())) { return; } } f...
[ "protected", "void", "appendSerialNumber", "(", "GenerationContext", "context", ",", "XtendTypeDeclaration", "source", ",", "JvmGenericType", "target", ")", "{", "if", "(", "!", "isAppendSerialNumbersEnable", "(", "context", ")", ")", "{", "return", ";", "}", "for...
Append the serial number field. <p>The serial number field is computed from the given context and from the generated fields. The field is added if no field with name "serialVersionUID" was defined. <p>This function does not test if the field container is serializable. @param context the current generation context. @...
[ "Append", "the", "serial", "number", "field", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2767-L2790
57,336
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.appendSerialNumberIfSerializable
protected void appendSerialNumberIfSerializable(GenerationContext context, XtendTypeDeclaration source, JvmGenericType target) { if (!target.isInterface() && this.inheritanceHelper.isSubTypeOf(target, Serializable.class, null)) { appendSerialNumber(context, source, target); } }
java
protected void appendSerialNumberIfSerializable(GenerationContext context, XtendTypeDeclaration source, JvmGenericType target) { if (!target.isInterface() && this.inheritanceHelper.isSubTypeOf(target, Serializable.class, null)) { appendSerialNumber(context, source, target); } }
[ "protected", "void", "appendSerialNumberIfSerializable", "(", "GenerationContext", "context", ",", "XtendTypeDeclaration", "source", ",", "JvmGenericType", "target", ")", "{", "if", "(", "!", "target", ".", "isInterface", "(", ")", "&&", "this", ".", "inheritanceHel...
Append the serial number field if and only if the container type is serializable. <p>The serial number field is computed from the given context and from the generated fields. @param context the current generation context. @param source the source object. @param target the inferred JVM object. @see #appendSerialNumber...
[ "Append", "the", "serial", "number", "field", "if", "and", "only", "if", "the", "container", "type", "is", "serializable", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2801-L2805
57,337
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.appendCloneFunction
protected void appendCloneFunction(GenerationContext context, XtendTypeDeclaration source, JvmGenericType target) { if (!isAppendCloneFunctionsEnable(context)) { return; } for (final JvmOperation operation : target.getDeclaredOperations()) { if (CLONE_FUNCTION_NAME.equals(operation.getSimpleName())) { r...
java
protected void appendCloneFunction(GenerationContext context, XtendTypeDeclaration source, JvmGenericType target) { if (!isAppendCloneFunctionsEnable(context)) { return; } for (final JvmOperation operation : target.getDeclaredOperations()) { if (CLONE_FUNCTION_NAME.equals(operation.getSimpleName())) { r...
[ "protected", "void", "appendCloneFunction", "(", "GenerationContext", "context", ",", "XtendTypeDeclaration", "source", ",", "JvmGenericType", "target", ")", "{", "if", "(", "!", "isAppendCloneFunctionsEnable", "(", "context", ")", ")", "{", "return", ";", "}", "f...
Append the clone function. <p>The clone function replies a value of the current type, not {@code Object}. @param context the current generation context. @param source the source object. @param target the inferred JVM object. @since 0.6 @see #appendCloneFunctionIfCloneable(GenerationContext, XtendTypeDeclaration, JvmG...
[ "Append", "the", "clone", "function", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2817-L2865
57,338
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.appendSARLSpecificationVersion
protected void appendSARLSpecificationVersion(GenerationContext context, XtendTypeDeclaration source, JvmDeclaredType target) { addAnnotationSafe(target, SarlSpecification.class, SARLVersion.SPECIFICATION_RELEASE_VERSION_STRING); }
java
protected void appendSARLSpecificationVersion(GenerationContext context, XtendTypeDeclaration source, JvmDeclaredType target) { addAnnotationSafe(target, SarlSpecification.class, SARLVersion.SPECIFICATION_RELEASE_VERSION_STRING); }
[ "protected", "void", "appendSARLSpecificationVersion", "(", "GenerationContext", "context", ",", "XtendTypeDeclaration", "source", ",", "JvmDeclaredType", "target", ")", "{", "addAnnotationSafe", "(", "target", ",", "SarlSpecification", ".", "class", ",", "SARLVersion", ...
Append the SARL specification version as an annotation to the given container. <p>The added annotation may be used by any underground platform for determining what is the version of the SARL specification that was used for generating the container. @param context the current generation context. @param source the sour...
[ "Append", "the", "SARL", "specification", "version", "as", "an", "annotation", "to", "the", "given", "container", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2892-L2895
57,339
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.appendSARLElementType
protected void appendSARLElementType(XtendTypeDeclaration source, JvmDeclaredType target) { addAnnotationSafe(target, SarlElementType.class, source.eClass().getClassifierID()); }
java
protected void appendSARLElementType(XtendTypeDeclaration source, JvmDeclaredType target) { addAnnotationSafe(target, SarlElementType.class, source.eClass().getClassifierID()); }
[ "protected", "void", "appendSARLElementType", "(", "XtendTypeDeclaration", "source", ",", "JvmDeclaredType", "target", ")", "{", "addAnnotationSafe", "(", "target", ",", "SarlElementType", ".", "class", ",", "source", ".", "eClass", "(", ")", ".", "getClassifierID",...
Append the SARL element type as an annotation to the given container. <p>The added annotation may be used by any underground platform for determining what is the type of the SARL element without invoking the costly "instanceof" operations. @param source the source object. @param target the inferred JVM object.
[ "Append", "the", "SARL", "element", "type", "as", "an", "annotation", "to", "the", "given", "container", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2905-L2907
57,340
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.skipTypeParameters
protected JvmTypeReference skipTypeParameters(JvmTypeReference type, Notifier context) { final LightweightTypeReference ltr = Utils.toLightweightTypeReference(type, this.services); return ltr.getRawTypeReference().toJavaCompliantTypeReference(); }
java
protected JvmTypeReference skipTypeParameters(JvmTypeReference type, Notifier context) { final LightweightTypeReference ltr = Utils.toLightweightTypeReference(type, this.services); return ltr.getRawTypeReference().toJavaCompliantTypeReference(); }
[ "protected", "JvmTypeReference", "skipTypeParameters", "(", "JvmTypeReference", "type", ",", "Notifier", "context", ")", "{", "final", "LightweightTypeReference", "ltr", "=", "Utils", ".", "toLightweightTypeReference", "(", "type", ",", "this", ".", "services", ")", ...
Remove the type parameters from the given type. <p><table> <thead><tr><th>Referenced type</th><th>Input</th><th>Replied referenced type</th><th>Output</th></tr></thead> <tbody> <tr><td>Type with generic type parameter</td><td>{@code T<G>}</td><td>the type itself</td><td>{@code T}</td></tr> <tr><td>Type without generic...
[ "Remove", "the", "type", "parameters", "from", "the", "given", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L2926-L2929
57,341
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.translateAnnotationsTo
@SuppressWarnings("static-method") protected void translateAnnotationsTo(List<JvmAnnotationReference> annotations, JvmAnnotationTarget target, Class<?>... exceptions) { final Set<String> excepts = new HashSet<>(); for (final Class<?> type : exceptions) { excepts.add(type.getName()); } final List<JvmAnnot...
java
@SuppressWarnings("static-method") protected void translateAnnotationsTo(List<JvmAnnotationReference> annotations, JvmAnnotationTarget target, Class<?>... exceptions) { final Set<String> excepts = new HashSet<>(); for (final Class<?> type : exceptions) { excepts.add(type.getName()); } final List<JvmAnnot...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "void", "translateAnnotationsTo", "(", "List", "<", "JvmAnnotationReference", ">", "annotations", ",", "JvmAnnotationTarget", "target", ",", "Class", "<", "?", ">", "...", "exceptions", ")", "{", ...
Copy the annotations, except the ones given as parameters. @param annotations the annotations to copy. @param target the target. @param exceptions the annotations to skip.
[ "Copy", "the", "annotations", "except", "the", "ones", "given", "as", "parameters", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L3053-L3070
57,342
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.getTypeParametersFor
@SuppressWarnings("static-method") protected List<JvmTypeParameter> getTypeParametersFor(XtendTypeDeclaration type) { if (type instanceof XtendClass) { return ((XtendClass) type).getTypeParameters(); } if (type instanceof XtendInterface) { return ((XtendInterface) type).getTypeParameters(); } return Co...
java
@SuppressWarnings("static-method") protected List<JvmTypeParameter> getTypeParametersFor(XtendTypeDeclaration type) { if (type instanceof XtendClass) { return ((XtendClass) type).getTypeParameters(); } if (type instanceof XtendInterface) { return ((XtendInterface) type).getTypeParameters(); } return Co...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "List", "<", "JvmTypeParameter", ">", "getTypeParametersFor", "(", "XtendTypeDeclaration", "type", ")", "{", "if", "(", "type", "instanceof", "XtendClass", ")", "{", "return", "(", "(", "XtendCla...
Replies the type parameters for the given type. @param type the type. @return the type parameters for the given type.
[ "Replies", "the", "type", "parameters", "for", "the", "given", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L3077-L3086
57,343
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.cloneWithTypeParametersAndProxies
protected JvmTypeReference cloneWithTypeParametersAndProxies(JvmTypeReference type, JvmExecutable forExecutable) { // Ensure that the executable is inside a container. Otherwise, the cloning function will fail. assert forExecutable.getDeclaringType() != null; // Get the type parameter mapping that is a consequenc...
java
protected JvmTypeReference cloneWithTypeParametersAndProxies(JvmTypeReference type, JvmExecutable forExecutable) { // Ensure that the executable is inside a container. Otherwise, the cloning function will fail. assert forExecutable.getDeclaringType() != null; // Get the type parameter mapping that is a consequenc...
[ "protected", "JvmTypeReference", "cloneWithTypeParametersAndProxies", "(", "JvmTypeReference", "type", ",", "JvmExecutable", "forExecutable", ")", "{", "// Ensure that the executable is inside a container. Otherwise, the cloning function will fail.", "assert", "forExecutable", ".", "ge...
Clone the given type reference that for being link to the given executable component. <p>The proxies are not resolved, and the type parameters are clone when they are related to the type parameter of the executable or the type container. @param type the source type. @param forExecutable the executable component that ...
[ "Clone", "the", "given", "type", "reference", "that", "for", "being", "link", "to", "the", "given", "executable", "component", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L3296-L3309
57,344
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.cloneWithProxiesFromOtherResource
protected JvmTypeReference cloneWithProxiesFromOtherResource(JvmTypeReference type, JvmOperation target) { if (type == null) { return this._typeReferenceBuilder.typeRef(Void.TYPE); } // Do not clone inferred types because they are not yet resolved and it is located within the current resource. if (InferredTy...
java
protected JvmTypeReference cloneWithProxiesFromOtherResource(JvmTypeReference type, JvmOperation target) { if (type == null) { return this._typeReferenceBuilder.typeRef(Void.TYPE); } // Do not clone inferred types because they are not yet resolved and it is located within the current resource. if (InferredTy...
[ "protected", "JvmTypeReference", "cloneWithProxiesFromOtherResource", "(", "JvmTypeReference", "type", ",", "JvmOperation", "target", ")", "{", "if", "(", "type", "==", "null", ")", "{", "return", "this", ".", "_typeReferenceBuilder", ".", "typeRef", "(", "Void", ...
Clone the given type reference that is associated to another Xtext resource. <p>This function ensures that the resource of the reference clone is not pointing to the resource of the original reference. <p>This function calls {@link JvmTypesBuilder#cloneWithProxies(JvmTypeReference)} or {@link #cloneWithTypeParameters...
[ "Clone", "the", "given", "type", "reference", "that", "is", "associated", "to", "another", "Xtext", "resource", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L3324-L3345
57,345
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.copyNonStaticPublicJvmOperations
@SuppressWarnings("checkstyle:npathcomplexity") protected void copyNonStaticPublicJvmOperations(JvmGenericType source, JvmGenericType target, Set<ActionPrototype> createdActions, Procedure2<? super JvmOperation, ? super ITreeAppendable> bodyBuilder) { final Iterable<JvmOperation> operations = Iterables.transform(...
java
@SuppressWarnings("checkstyle:npathcomplexity") protected void copyNonStaticPublicJvmOperations(JvmGenericType source, JvmGenericType target, Set<ActionPrototype> createdActions, Procedure2<? super JvmOperation, ? super ITreeAppendable> bodyBuilder) { final Iterable<JvmOperation> operations = Iterables.transform(...
[ "@", "SuppressWarnings", "(", "\"checkstyle:npathcomplexity\"", ")", "protected", "void", "copyNonStaticPublicJvmOperations", "(", "JvmGenericType", "source", ",", "JvmGenericType", "target", ",", "Set", "<", "ActionPrototype", ">", "createdActions", ",", "Procedure2", "<...
Copy the JVM operations from the source to the destination. @param source the source. @param target the destination. @param createdActions the set of actions that are created before (input) or during (output) the invocation. @param bodyBuilder the builder of the target's operations. @since 0.5
[ "Copy", "the", "JVM", "operations", "from", "the", "source", "to", "the", "destination", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L3448-L3499
57,346
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.inferFunctionReturnType
protected JvmTypeReference inferFunctionReturnType(XExpression body) { XExpression expr = body; boolean stop = false; while (!stop && expr instanceof XBlockExpression) { final XBlockExpression block = (XBlockExpression) expr; switch (block.getExpressions().size()) { case 0: expr = null; break; ...
java
protected JvmTypeReference inferFunctionReturnType(XExpression body) { XExpression expr = body; boolean stop = false; while (!stop && expr instanceof XBlockExpression) { final XBlockExpression block = (XBlockExpression) expr; switch (block.getExpressions().size()) { case 0: expr = null; break; ...
[ "protected", "JvmTypeReference", "inferFunctionReturnType", "(", "XExpression", "body", ")", "{", "XExpression", "expr", "=", "body", ";", "boolean", "stop", "=", "false", ";", "while", "(", "!", "stop", "&&", "expr", "instanceof", "XBlockExpression", ")", "{", ...
Infer the function's return type. @param body the body of the function. @return the return type.
[ "Infer", "the", "function", "s", "return", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L3611-L3633
57,347
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java
SARLJvmModelInferrer.inferFunctionReturnType
protected JvmTypeReference inferFunctionReturnType(XtendFunction source, JvmOperation target, JvmOperation overriddenOperation) { // The return type is explicitly given if (source.getReturnType() != null) { return ensureValidType(source.eResource(), source.getReturnType()); } // An super operation was detec...
java
protected JvmTypeReference inferFunctionReturnType(XtendFunction source, JvmOperation target, JvmOperation overriddenOperation) { // The return type is explicitly given if (source.getReturnType() != null) { return ensureValidType(source.eResource(), source.getReturnType()); } // An super operation was detec...
[ "protected", "JvmTypeReference", "inferFunctionReturnType", "(", "XtendFunction", "source", ",", "JvmOperation", "target", ",", "JvmOperation", "overriddenOperation", ")", "{", "// The return type is explicitly given", "if", "(", "source", ".", "getReturnType", "(", ")", ...
Infer the return type for the given source function. @param source the source function. @param target the target operation. @param overriddenOperation reference to the overridden operation. @return the inferred return type. @since 0.7
[ "Infer", "the", "return", "type", "for", "the", "given", "source", "function", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/jvmmodel/SARLJvmModelInferrer.java#L3643-L3665
57,348
sarl/sarl
main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/config/SARLConfiguration.java
SARLConfiguration.setFrom
@SuppressWarnings("checkstyle:npathcomplexity") public void setFrom(SARLConfiguration config) { if (this.input == null) { this.input = config.getInput(); } if (this.output == null) { this.output = config.getOutput(); } if (this.binOutput == null) { this.binOutput = config.getBinOutput(); } if (t...
java
@SuppressWarnings("checkstyle:npathcomplexity") public void setFrom(SARLConfiguration config) { if (this.input == null) { this.input = config.getInput(); } if (this.output == null) { this.output = config.getOutput(); } if (this.binOutput == null) { this.binOutput = config.getBinOutput(); } if (t...
[ "@", "SuppressWarnings", "(", "\"checkstyle:npathcomplexity\"", ")", "public", "void", "setFrom", "(", "SARLConfiguration", "config", ")", "{", "if", "(", "this", ".", "input", "==", "null", ")", "{", "this", ".", "input", "=", "config", ".", "getInput", "("...
Set the uninitialized field with given configuration. @param config the configured values.
[ "Set", "the", "uninitialized", "field", "with", "given", "configuration", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.m2e/src/io/sarl/m2e/config/SARLConfiguration.java#L57-L86
57,349
sarl/sarl
products/sarlc/src/main/java/io/sarl/lang/sarlc/modules/general/SarlBatchCompilerModule.java
SarlBatchCompilerModule.provideSarlBatchCompiler
@SuppressWarnings({"static-method", "checkstyle:npathcomplexity"}) @Provides @Singleton public SarlBatchCompiler provideSarlBatchCompiler( Injector injector, Provider<SarlConfig> config, Provider<SARLBootClasspathProvider> defaultBootClasspath, Provider<IssueMessageFormatter> issueMessageFormater, Provider<...
java
@SuppressWarnings({"static-method", "checkstyle:npathcomplexity"}) @Provides @Singleton public SarlBatchCompiler provideSarlBatchCompiler( Injector injector, Provider<SarlConfig> config, Provider<SARLBootClasspathProvider> defaultBootClasspath, Provider<IssueMessageFormatter> issueMessageFormater, Provider<...
[ "@", "SuppressWarnings", "(", "{", "\"static-method\"", ",", "\"checkstyle:npathcomplexity\"", "}", ")", "@", "Provides", "@", "Singleton", "public", "SarlBatchCompiler", "provideSarlBatchCompiler", "(", "Injector", "injector", ",", "Provider", "<", "SarlConfig", ">", ...
Replies the SARL batch compiler. @param injector the current injector. @param config the configuration for the paths. @param defaultBootClasspath the SARL boot class path that must be used by default. @param issueMessageFormater the formatter of the issue messages. @param javaCompilerProvider a provider of Java batch ...
[ "Replies", "the", "SARL", "batch", "compiler", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/products/sarlc/src/main/java/io/sarl/lang/sarlc/modules/general/SarlBatchCompilerModule.java#L82-L147
57,350
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/macro/SarlAccessorsProcessor.java
SarlAccessorsProcessor.applyMinMaxVisibility
@SuppressWarnings("static-method") protected Visibility applyMinMaxVisibility(Visibility visibility, MutableFieldDeclaration it, TransformationContext context) { if (context.findTypeGlobally(Agent.class).isAssignableFrom(it.getDeclaringType())) { if (visibility.compareTo(Visibility.PROTECTED) > 0) { return Vi...
java
@SuppressWarnings("static-method") protected Visibility applyMinMaxVisibility(Visibility visibility, MutableFieldDeclaration it, TransformationContext context) { if (context.findTypeGlobally(Agent.class).isAssignableFrom(it.getDeclaringType())) { if (visibility.compareTo(Visibility.PROTECTED) > 0) { return Vi...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "Visibility", "applyMinMaxVisibility", "(", "Visibility", "visibility", ",", "MutableFieldDeclaration", "it", ",", "TransformationContext", "context", ")", "{", "if", "(", "context", ".", "findTypeGlob...
Apply the minimum and maximum visibilities to the given one. @param visibility the visibility. @param it the field associated to the accessors to generate. @param context the transformation context. @return the given {@code visibility}, or the min/max visibility if the given one is too high.
[ "Apply", "the", "minimum", "and", "maximum", "visibilities", "to", "the", "given", "one", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/macro/SarlAccessorsProcessor.java#L68-L76
57,351
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/util/ReflectMethod.java
ReflectMethod.of
public static <RT, T> ReflectMethod<RT, T> of(Class<RT> receiverType, Class<T> returnType, String methodName) { return new ReflectMethod<>(receiverType, returnType, methodName); }
java
public static <RT, T> ReflectMethod<RT, T> of(Class<RT> receiverType, Class<T> returnType, String methodName) { return new ReflectMethod<>(receiverType, returnType, methodName); }
[ "public", "static", "<", "RT", ",", "T", ">", "ReflectMethod", "<", "RT", ",", "T", ">", "of", "(", "Class", "<", "RT", ">", "receiverType", ",", "Class", "<", "T", ">", "returnType", ",", "String", "methodName", ")", "{", "return", "new", "ReflectMe...
Static constructor. @param <RT> the type of the receiver. @param <T> the type of the returned value. @param receiverType the type of the receiver. @param returnType the type of the returned values. @param methodName the name of the method. @return the instance.
[ "Static", "constructor", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/util/ReflectMethod.java#L68-L70
57,352
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/util/ReflectMethod.java
ReflectMethod.invoke
public T invoke(RT receiver, Object... arguments) { assert receiver != null; final Method method; synchronized (this) { if (this.method == null) { this.method = getMethod(receiver, arguments); method = this.method; } else { method = this.method; } } try { return this.returnType.cast(me...
java
public T invoke(RT receiver, Object... arguments) { assert receiver != null; final Method method; synchronized (this) { if (this.method == null) { this.method = getMethod(receiver, arguments); method = this.method; } else { method = this.method; } } try { return this.returnType.cast(me...
[ "public", "T", "invoke", "(", "RT", "receiver", ",", "Object", "...", "arguments", ")", "{", "assert", "receiver", "!=", "null", ";", "final", "Method", "method", ";", "synchronized", "(", "this", ")", "{", "if", "(", "this", ".", "method", "==", "null...
Invoke the method. @param receiver the receiver, never {@code null}. @param arguments the arguments. @return the result of the invocation.
[ "Invoke", "the", "method", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/util/ReflectMethod.java#L78-L96
57,353
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/preferences/ExtraLanguagePreferenceAccess.java
ExtraLanguagePreferenceAccess.getXtextKey
private static String getXtextKey(String preferenceContainerID, String preferenceName) { return GENERATOR_PREFERENCE_TAG + PreferenceConstants.SEPARATOR + preferenceContainerID + PreferenceConstants.SEPARATOR + preferenceName; }
java
private static String getXtextKey(String preferenceContainerID, String preferenceName) { return GENERATOR_PREFERENCE_TAG + PreferenceConstants.SEPARATOR + preferenceContainerID + PreferenceConstants.SEPARATOR + preferenceName; }
[ "private", "static", "String", "getXtextKey", "(", "String", "preferenceContainerID", ",", "String", "preferenceName", ")", "{", "return", "GENERATOR_PREFERENCE_TAG", "+", "PreferenceConstants", ".", "SEPARATOR", "+", "preferenceContainerID", "+", "PreferenceConstants", "...
Create a preference key according to the Xtext option block standards. @param preferenceContainerID the identifier of the generator's preference container. @param preferenceName the name of the preference. @return the key.
[ "Create", "a", "preference", "key", "according", "to", "the", "Xtext", "option", "block", "standards", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/preferences/ExtraLanguagePreferenceAccess.java#L100-L103
57,354
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/preferences/ExtraLanguagePreferenceAccess.java
ExtraLanguagePreferenceAccess.getPrefixedKey
public static String getPrefixedKey(String preferenceContainerID, String preferenceName) { return getXtextKey(getPropertyPrefix(preferenceContainerID), preferenceName); }
java
public static String getPrefixedKey(String preferenceContainerID, String preferenceName) { return getXtextKey(getPropertyPrefix(preferenceContainerID), preferenceName); }
[ "public", "static", "String", "getPrefixedKey", "(", "String", "preferenceContainerID", ",", "String", "preferenceName", ")", "{", "return", "getXtextKey", "(", "getPropertyPrefix", "(", "preferenceContainerID", ")", ",", "preferenceName", ")", ";", "}" ]
Create a preference key. @param preferenceContainerID the identifier of the generator's preference container. @param preferenceName the name of the preference. @return the key.
[ "Create", "a", "preference", "key", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/preferences/ExtraLanguagePreferenceAccess.java#L111-L113
57,355
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/preferences/ExtraLanguagePreferenceAccess.java
ExtraLanguagePreferenceAccess.hasProjectSpecificOptions
public boolean hasProjectSpecificOptions(String preferenceContainerID, IProject project) { final IPreferenceStore store = getWritablePreferenceStore(project); // Compute the key String key = IS_PROJECT_SPECIFIC; if (preferenceContainerID != null) { key = getPropertyPrefix(preferenceContainerID) + "." + IS_PR...
java
public boolean hasProjectSpecificOptions(String preferenceContainerID, IProject project) { final IPreferenceStore store = getWritablePreferenceStore(project); // Compute the key String key = IS_PROJECT_SPECIFIC; if (preferenceContainerID != null) { key = getPropertyPrefix(preferenceContainerID) + "." + IS_PR...
[ "public", "boolean", "hasProjectSpecificOptions", "(", "String", "preferenceContainerID", ",", "IProject", "project", ")", "{", "final", "IPreferenceStore", "store", "=", "getWritablePreferenceStore", "(", "project", ")", ";", "// Compute the key", "String", "key", "=",...
Replies if the project has specific configuration for extra language generation provided by the given container. <p>This code is copied from {@link AbstractGeneratorConfigurationBlock} and its super types. @param preferenceContainerID the identifier of the generator's preference container. @param project the context....
[ "Replies", "if", "the", "project", "has", "specific", "configuration", "for", "extra", "language", "generation", "provided", "by", "the", "given", "container", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/preferences/ExtraLanguagePreferenceAccess.java#L221-L236
57,356
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/preferences/ExtraLanguagePreferenceAccess.java
ExtraLanguagePreferenceAccess.ifSpecificConfiguration
public IProject ifSpecificConfiguration(String preferenceContainerID, IProject project) { if (project != null && hasProjectSpecificOptions(preferenceContainerID, project)) { return project; } return null; }
java
public IProject ifSpecificConfiguration(String preferenceContainerID, IProject project) { if (project != null && hasProjectSpecificOptions(preferenceContainerID, project)) { return project; } return null; }
[ "public", "IProject", "ifSpecificConfiguration", "(", "String", "preferenceContainerID", ",", "IProject", "project", ")", "{", "if", "(", "project", "!=", "null", "&&", "hasProjectSpecificOptions", "(", "preferenceContainerID", ",", "project", ")", ")", "{", "return...
Filter the project according to the specific configuration. <p>If the given project has a specific configuration, it is replied. Otherwise, {@code null} is replied. @param preferenceContainerID the identifier of the generator's preference container. @param project the context. If {@code null}, the global context is a...
[ "Filter", "the", "project", "according", "to", "the", "specific", "configuration", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/preferences/ExtraLanguagePreferenceAccess.java#L247-L252
57,357
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/preferences/ExtraLanguagePreferenceAccess.java
ExtraLanguagePreferenceAccess.parseConverterPreferenceValue
public static boolean parseConverterPreferenceValue(String input, Procedure2<? super String, ? super String> output) { final StringTokenizer tokenizer = new StringTokenizer(input, PREFERENCE_SEPARATOR); String key = null; boolean foundValue = false; while (tokenizer.hasMoreTokens()) { final String token = to...
java
public static boolean parseConverterPreferenceValue(String input, Procedure2<? super String, ? super String> output) { final StringTokenizer tokenizer = new StringTokenizer(input, PREFERENCE_SEPARATOR); String key = null; boolean foundValue = false; while (tokenizer.hasMoreTokens()) { final String token = to...
[ "public", "static", "boolean", "parseConverterPreferenceValue", "(", "String", "input", ",", "Procedure2", "<", "?", "super", "String", ",", "?", "super", "String", ">", "output", ")", "{", "final", "StringTokenizer", "tokenizer", "=", "new", "StringTokenizer", ...
Parse the given input which is the preference string representation. @param input the string representation from the preferences. @param output the function to call for saving the parsed element. The first parameter is the element to be converted. The second parameter is the target string. @return {@code true} if a da...
[ "Parse", "the", "given", "input", "which", "is", "the", "preference", "string", "representation", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/extralanguage/preferences/ExtraLanguagePreferenceAccess.java#L271-L286
57,358
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLEarlyExitValidator.java
SARLEarlyExitValidator.markAsDeadCode
private boolean markAsDeadCode(XExpression expression) { if (expression instanceof XBlockExpression) { final XBlockExpression block = (XBlockExpression) expression; final EList<XExpression> expressions = block.getExpressions(); if (!expressions.isEmpty()) { markAsDeadCode(expressions.get(0)); return ...
java
private boolean markAsDeadCode(XExpression expression) { if (expression instanceof XBlockExpression) { final XBlockExpression block = (XBlockExpression) expression; final EList<XExpression> expressions = block.getExpressions(); if (!expressions.isEmpty()) { markAsDeadCode(expressions.get(0)); return ...
[ "private", "boolean", "markAsDeadCode", "(", "XExpression", "expression", ")", "{", "if", "(", "expression", "instanceof", "XBlockExpression", ")", "{", "final", "XBlockExpression", "block", "=", "(", "XBlockExpression", ")", "expression", ";", "final", "EList", "...
This code is copied from the super type
[ "This", "code", "is", "copied", "from", "the", "super", "type" ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/validation/SARLEarlyExitValidator.java#L111-L125
57,359
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/config/CodeBuilderConfig.java
CodeBuilderConfig.addForbiddenInjectionPrefix
public void addForbiddenInjectionPrefix(String prefix) { if (!Strings.isEmpty(prefix)) { final String real = prefix.endsWith(".") ? prefix.substring(0, prefix.length() - 1) : prefix; //$NON-NLS-1$ this.forbiddenInjectionPrefixes.add(real); } }
java
public void addForbiddenInjectionPrefix(String prefix) { if (!Strings.isEmpty(prefix)) { final String real = prefix.endsWith(".") ? prefix.substring(0, prefix.length() - 1) : prefix; //$NON-NLS-1$ this.forbiddenInjectionPrefixes.add(real); } }
[ "public", "void", "addForbiddenInjectionPrefix", "(", "String", "prefix", ")", "{", "if", "(", "!", "Strings", ".", "isEmpty", "(", "prefix", ")", ")", "{", "final", "String", "real", "=", "prefix", ".", "endsWith", "(", "\".\"", ")", "?", "prefix", ".",...
Add a prefix of typenames that should not be considered for injection overriding. @param prefix the prefix.
[ "Add", "a", "prefix", "of", "typenames", "that", "should", "not", "be", "considered", "for", "injection", "overriding", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/config/CodeBuilderConfig.java#L223-L228
57,360
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/config/CodeBuilderConfig.java
CodeBuilderConfig.addForbiddenInjectionPostfixes
public void addForbiddenInjectionPostfixes(String postfix) { if (!Strings.isEmpty(postfix)) { final String real = postfix.startsWith(".") ? postfix.substring(1) : postfix; //$NON-NLS-1$ this.forbiddenInjectionPrefixes.add(real); } }
java
public void addForbiddenInjectionPostfixes(String postfix) { if (!Strings.isEmpty(postfix)) { final String real = postfix.startsWith(".") ? postfix.substring(1) : postfix; //$NON-NLS-1$ this.forbiddenInjectionPrefixes.add(real); } }
[ "public", "void", "addForbiddenInjectionPostfixes", "(", "String", "postfix", ")", "{", "if", "(", "!", "Strings", ".", "isEmpty", "(", "postfix", ")", ")", "{", "final", "String", "real", "=", "postfix", ".", "startsWith", "(", "\".\"", ")", "?", "postfix...
Add a postfix of typenames that should not be considered for injection overriding. @param postfix the postfix.
[ "Add", "a", "postfix", "of", "typenames", "that", "should", "not", "be", "considered", "for", "injection", "overriding", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/config/CodeBuilderConfig.java#L234-L239
57,361
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/config/CodeBuilderConfig.java
CodeBuilderConfig.addModifier
public void addModifier(Modifier modifier) { if (modifier != null) { final String ruleName = modifier.getType(); if (!Strings.isEmpty(ruleName)) { List<String> modifiers = this.modifiers.get(ruleName); if (modifiers == null) { modifiers = new ArrayList<>(); this.modifiers.put(ruleName, modifie...
java
public void addModifier(Modifier modifier) { if (modifier != null) { final String ruleName = modifier.getType(); if (!Strings.isEmpty(ruleName)) { List<String> modifiers = this.modifiers.get(ruleName); if (modifiers == null) { modifiers = new ArrayList<>(); this.modifiers.put(ruleName, modifie...
[ "public", "void", "addModifier", "(", "Modifier", "modifier", ")", "{", "if", "(", "modifier", "!=", "null", ")", "{", "final", "String", "ruleName", "=", "modifier", ".", "getType", "(", ")", ";", "if", "(", "!", "Strings", ".", "isEmpty", "(", "ruleN...
Add a modifier for a rule. <p>The first modifier is the default modifier. @param modifier the modifier.
[ "Add", "a", "modifier", "for", "a", "rule", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/config/CodeBuilderConfig.java#L450-L462
57,362
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/config/CodeBuilderConfig.java
CodeBuilderConfig.addDefaultSuper
public void addDefaultSuper(SuperTypeMapping mapping) { if (mapping != null) { this.superTypeMapping.put(mapping.getType(), mapping.getSuper()); } }
java
public void addDefaultSuper(SuperTypeMapping mapping) { if (mapping != null) { this.superTypeMapping.put(mapping.getType(), mapping.getSuper()); } }
[ "public", "void", "addDefaultSuper", "(", "SuperTypeMapping", "mapping", ")", "{", "if", "(", "mapping", "!=", "null", ")", "{", "this", ".", "superTypeMapping", ".", "put", "(", "mapping", ".", "getType", "(", ")", ",", "mapping", ".", "getSuper", "(", ...
Add a default super type. @param mapping the mapping for the super type.
[ "Add", "a", "default", "super", "type", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/config/CodeBuilderConfig.java#L779-L783
57,363
sarl/sarl
docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/utils/Reflect.java
Reflect.getField
public static <T> T getField(Object obj, String string, Class<?> clazz, Class<T> fieldType) { try { final Field field = clazz.getDeclaredField(string); field.setAccessible(true); final Object value = field.get(obj); return fieldType.cast(value); } catch (Exception exception) { throw new Error(excepti...
java
public static <T> T getField(Object obj, String string, Class<?> clazz, Class<T> fieldType) { try { final Field field = clazz.getDeclaredField(string); field.setAccessible(true); final Object value = field.get(obj); return fieldType.cast(value); } catch (Exception exception) { throw new Error(excepti...
[ "public", "static", "<", "T", ">", "T", "getField", "(", "Object", "obj", ",", "String", "string", ",", "Class", "<", "?", ">", "clazz", ",", "Class", "<", "T", ">", "fieldType", ")", "{", "try", "{", "final", "Field", "field", "=", "clazz", ".", ...
Replies the value of the field. @param <T> the field type. @param obj the instance. @param string the field name. @param clazz the container type. @param fieldType the field type. @return the value.
[ "Replies", "the", "value", "of", "the", "field", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/utils/Reflect.java#L118-L127
57,364
sarl/sarl
docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/utils/Reflect.java
Reflect.copyFields
public static <T> void copyFields(Class<T> type, T dest, T source) { Class<?> clazz = type; while (clazz != null && !Object.class.equals(clazz)) { for (final Field field : clazz.getDeclaredFields()) { if (!Modifier.isStatic(field.getModifiers())) { field.setAccessible(true); try { field.set(d...
java
public static <T> void copyFields(Class<T> type, T dest, T source) { Class<?> clazz = type; while (clazz != null && !Object.class.equals(clazz)) { for (final Field field : clazz.getDeclaredFields()) { if (!Modifier.isStatic(field.getModifiers())) { field.setAccessible(true); try { field.set(d...
[ "public", "static", "<", "T", ">", "void", "copyFields", "(", "Class", "<", "T", ">", "type", ",", "T", "dest", ",", "T", "source", ")", "{", "Class", "<", "?", ">", "clazz", "=", "type", ";", "while", "(", "clazz", "!=", "null", "&&", "!", "Ob...
Clone the fields. @param <T> the type of the objects. @param type the type of the objects. @param dest the destination. @param source the source.
[ "Clone", "the", "fields", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/utils/Reflect.java#L136-L151
57,365
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java
SREConfigurationBlock.createControl
public Control createControl(Composite parent) { this.control = SWTFactory.createComposite( parent, parent.getFont(), 1, 1, GridData.FILL_HORIZONTAL); final int nbColumns = this.enableSystemWideSelector ? 3 : 2; final Group group = SWTFactory.createGroup(this.control, MoreObjects.firstNonNull(this.title,...
java
public Control createControl(Composite parent) { this.control = SWTFactory.createComposite( parent, parent.getFont(), 1, 1, GridData.FILL_HORIZONTAL); final int nbColumns = this.enableSystemWideSelector ? 3 : 2; final Group group = SWTFactory.createGroup(this.control, MoreObjects.firstNonNull(this.title,...
[ "public", "Control", "createControl", "(", "Composite", "parent", ")", "{", "this", ".", "control", "=", "SWTFactory", ".", "createComposite", "(", "parent", ",", "parent", ".", "getFont", "(", ")", ",", "1", ",", "1", ",", "GridData", ".", "FILL_HORIZONTA...
Creates this block's control in the given control. @param parent containing control @return the control. @see #getControl()
[ "Creates", "this", "block", "s", "control", "in", "the", "given", "control", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java#L314-L346
57,366
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java
SREConfigurationBlock.updateExternalSREButtonLabels
public void updateExternalSREButtonLabels() { if (this.enableSystemWideSelector) { final ISREInstall wideSystemSRE = SARLRuntime.getDefaultSREInstall(); final String wideSystemSRELabel; if (wideSystemSRE == null) { wideSystemSRELabel = Messages.SREConfigurationBlock_0; } else { wideSystemSRELabel ...
java
public void updateExternalSREButtonLabels() { if (this.enableSystemWideSelector) { final ISREInstall wideSystemSRE = SARLRuntime.getDefaultSREInstall(); final String wideSystemSRELabel; if (wideSystemSRE == null) { wideSystemSRELabel = Messages.SREConfigurationBlock_0; } else { wideSystemSRELabel ...
[ "public", "void", "updateExternalSREButtonLabels", "(", ")", "{", "if", "(", "this", ".", "enableSystemWideSelector", ")", "{", "final", "ISREInstall", "wideSystemSRE", "=", "SARLRuntime", ".", "getDefaultSREInstall", "(", ")", ";", "final", "String", "wideSystemSRE...
Update the label of the "system-wide" and "project" configuration buttons.
[ "Update", "the", "label", "of", "the", "system", "-", "wide", "and", "project", "configuration", "buttons", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java#L350-L373
57,367
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java
SREConfigurationBlock.selectSpecificSRE
@SuppressWarnings("checkstyle:npathcomplexity") public boolean selectSpecificSRE(ISREInstall sre) { ISREInstall theSRE = sre; if (theSRE == null) { theSRE = SARLRuntime.getDefaultSREInstall(); } if (theSRE != null) { boolean changed = false; final boolean oldNotify = this.notify; try { this.not...
java
@SuppressWarnings("checkstyle:npathcomplexity") public boolean selectSpecificSRE(ISREInstall sre) { ISREInstall theSRE = sre; if (theSRE == null) { theSRE = SARLRuntime.getDefaultSREInstall(); } if (theSRE != null) { boolean changed = false; final boolean oldNotify = this.notify; try { this.not...
[ "@", "SuppressWarnings", "(", "\"checkstyle:npathcomplexity\"", ")", "public", "boolean", "selectSpecificSRE", "(", "ISREInstall", "sre", ")", "{", "ISREInstall", "theSRE", "=", "sre", ";", "if", "(", "theSRE", "==", "null", ")", "{", "theSRE", "=", "SARLRuntime...
Select a specific SRE. @param sre the sre, if <code>null</code> reset to default. @return <code>true</code> if the selection changed.
[ "Select", "a", "specific", "SRE", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java#L447-L488
57,368
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java
SREConfigurationBlock.getSelectedSRE
public ISREInstall getSelectedSRE() { if (this.enableSystemWideSelector && this.systemSREButton.getSelection()) { return SARLRuntime.getDefaultSREInstall(); } if (!this.projectProviderFactories.isEmpty() && this.projectSREButton.getSelection()) { return retreiveProjectSRE(); } return getSpecificSRE(); ...
java
public ISREInstall getSelectedSRE() { if (this.enableSystemWideSelector && this.systemSREButton.getSelection()) { return SARLRuntime.getDefaultSREInstall(); } if (!this.projectProviderFactories.isEmpty() && this.projectSREButton.getSelection()) { return retreiveProjectSRE(); } return getSpecificSRE(); ...
[ "public", "ISREInstall", "getSelectedSRE", "(", ")", "{", "if", "(", "this", ".", "enableSystemWideSelector", "&&", "this", ".", "systemSREButton", ".", "getSelection", "(", ")", ")", "{", "return", "SARLRuntime", ".", "getDefaultSREInstall", "(", ")", ";", "}...
Replies the selected SARL runtime environment. @return the SARL runtime environment or <code>null</code> if there is no selected SRE. @see #isSystemWideDefaultSRE()
[ "Replies", "the", "selected", "SARL", "runtime", "environment", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java#L536-L544
57,369
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java
SREConfigurationBlock.getSpecificSRE
public ISREInstall getSpecificSRE() { final int index = this.runtimeEnvironmentCombo.getSelectionIndex(); if (index >= 0 && index < this.runtimeEnvironments.size()) { return this.runtimeEnvironments.get(index); } return null; }
java
public ISREInstall getSpecificSRE() { final int index = this.runtimeEnvironmentCombo.getSelectionIndex(); if (index >= 0 && index < this.runtimeEnvironments.size()) { return this.runtimeEnvironments.get(index); } return null; }
[ "public", "ISREInstall", "getSpecificSRE", "(", ")", "{", "final", "int", "index", "=", "this", ".", "runtimeEnvironmentCombo", ".", "getSelectionIndex", "(", ")", ";", "if", "(", "index", ">=", "0", "&&", "index", "<", "this", ".", "runtimeEnvironments", "....
Replies the specific SARL runtime environment. @return the SARL runtime environment or <code>null</code> if there is no selected SRE. @see #isSystemWideDefaultSRE()
[ "Replies", "the", "specific", "SARL", "runtime", "environment", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java#L552-L558
57,370
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java
SREConfigurationBlock.updateEnableState
public void updateEnableState() { boolean comboEnabled = !this.runtimeEnvironments.isEmpty(); boolean searchEnabled = true; if (isSystemWideDefaultSRE() || isProjectSRE()) { comboEnabled = false; searchEnabled = false; } this.runtimeEnvironmentCombo.setEnabled(comboEnabled); this.runtimeEnvironmentSea...
java
public void updateEnableState() { boolean comboEnabled = !this.runtimeEnvironments.isEmpty(); boolean searchEnabled = true; if (isSystemWideDefaultSRE() || isProjectSRE()) { comboEnabled = false; searchEnabled = false; } this.runtimeEnvironmentCombo.setEnabled(comboEnabled); this.runtimeEnvironmentSea...
[ "public", "void", "updateEnableState", "(", ")", "{", "boolean", "comboEnabled", "=", "!", "this", ".", "runtimeEnvironments", ".", "isEmpty", "(", ")", ";", "boolean", "searchEnabled", "=", "true", ";", "if", "(", "isSystemWideDefaultSRE", "(", ")", "||", "...
Update the enable state of the block.
[ "Update", "the", "enable", "state", "of", "the", "block", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java#L562-L571
57,371
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java
SREConfigurationBlock.initialize
public void initialize() { // Initialize the SRE list this.runtimeEnvironments.clear(); final ISREInstall[] sres = SARLRuntime.getSREInstalls(); Arrays.sort(sres, new Comparator<ISREInstall>() { @Override public int compare(ISREInstall o1, ISREInstall o2) { return o1.getName().compareTo(o2.getName());...
java
public void initialize() { // Initialize the SRE list this.runtimeEnvironments.clear(); final ISREInstall[] sres = SARLRuntime.getSREInstalls(); Arrays.sort(sres, new Comparator<ISREInstall>() { @Override public int compare(ISREInstall o1, ISREInstall o2) { return o1.getName().compareTo(o2.getName());...
[ "public", "void", "initialize", "(", ")", "{", "// Initialize the SRE list", "this", ".", "runtimeEnvironments", ".", "clear", "(", ")", ";", "final", "ISREInstall", "[", "]", "sres", "=", "SARLRuntime", ".", "getSREInstalls", "(", ")", ";", "Arrays", ".", "...
Initialize the block with the installed JREs. The selection and the components states are not updated by this function.
[ "Initialize", "the", "block", "with", "the", "installed", "JREs", ".", "The", "selection", "and", "the", "components", "states", "are", "not", "updated", "by", "this", "function", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java#L577-L619
57,372
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java
SREConfigurationBlock.handleInstalledSREsButtonSelected
protected void handleInstalledSREsButtonSelected() { PreferencesUtil.createPreferenceDialogOn( getControl().getShell(), SREsPreferencePage.ID, new String[] {SREsPreferencePage.ID}, null).open(); }
java
protected void handleInstalledSREsButtonSelected() { PreferencesUtil.createPreferenceDialogOn( getControl().getShell(), SREsPreferencePage.ID, new String[] {SREsPreferencePage.ID}, null).open(); }
[ "protected", "void", "handleInstalledSREsButtonSelected", "(", ")", "{", "PreferencesUtil", ".", "createPreferenceDialogOn", "(", "getControl", "(", ")", ".", "getShell", "(", ")", ",", "SREsPreferencePage", ".", "ID", ",", "new", "String", "[", "]", "{", "SREsP...
Invoked when the user want to search for a SARL runtime environment.
[ "Invoked", "when", "the", "user", "want", "to", "search", "for", "a", "SARL", "runtime", "environment", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java#L632-L638
57,373
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java
SREConfigurationBlock.validate
public IStatus validate(ISREInstall sre) { final IStatus status; if (this.enableSystemWideSelector && this.systemSREButton.getSelection()) { if (SARLRuntime.getDefaultSREInstall() == null) { status = SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR, Messages.SREConfigurationBlock_5); } else { ...
java
public IStatus validate(ISREInstall sre) { final IStatus status; if (this.enableSystemWideSelector && this.systemSREButton.getSelection()) { if (SARLRuntime.getDefaultSREInstall() == null) { status = SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR, Messages.SREConfigurationBlock_5); } else { ...
[ "public", "IStatus", "validate", "(", "ISREInstall", "sre", ")", "{", "final", "IStatus", "status", ";", "if", "(", "this", ".", "enableSystemWideSelector", "&&", "this", ".", "systemSREButton", ".", "getSelection", "(", ")", ")", "{", "if", "(", "SARLRuntim...
Validate that the given SRE is valid in the context of the SRE configuration. @param sre the SRE. @return the state of the validation, never <code>null</code>.
[ "Validate", "that", "the", "given", "SRE", "is", "valid", "in", "the", "context", "of", "the", "SRE", "configuration", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/SREConfigurationBlock.java#L666-L688
57,374
sarl/sarl
contribs/io.sarl.examples/io.sarl.examples.plugin/src/io/sarl/examples/wizard/SarlExampleInstallerWizard.java
SarlExampleInstallerWizard.closeWelcomePage
protected static void closeWelcomePage() { final IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager(); if (introManager != null) { final IIntroPart intro = introManager.getIntro(); if (intro != null) { introManager.closeIntro(intro); } } }
java
protected static void closeWelcomePage() { final IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager(); if (introManager != null) { final IIntroPart intro = introManager.getIntro(); if (intro != null) { introManager.closeIntro(intro); } } }
[ "protected", "static", "void", "closeWelcomePage", "(", ")", "{", "final", "IIntroManager", "introManager", "=", "PlatformUI", ".", "getWorkbench", "(", ")", ".", "getIntroManager", "(", ")", ";", "if", "(", "introManager", "!=", "null", ")", "{", "final", "...
Close the welcome page.
[ "Close", "the", "welcome", "page", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/contribs/io.sarl.examples/io.sarl.examples.plugin/src/io/sarl/examples/wizard/SarlExampleInstallerWizard.java#L138-L146
57,375
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java
SpaceRepository.destroy
public void destroy() { // Unregister from Hazelcast layer. synchronized (getSpaceIDsMutex()) { if (this.internalListener != null) { this.spaceIDs.removeDMapListener(this.internalListener); } // Delete the spaces. If this function is called, it // means that the spaces seems to have no more particip...
java
public void destroy() { // Unregister from Hazelcast layer. synchronized (getSpaceIDsMutex()) { if (this.internalListener != null) { this.spaceIDs.removeDMapListener(this.internalListener); } // Delete the spaces. If this function is called, it // means that the spaces seems to have no more particip...
[ "public", "void", "destroy", "(", ")", "{", "// Unregister from Hazelcast layer.", "synchronized", "(", "getSpaceIDsMutex", "(", ")", ")", "{", "if", "(", "this", ".", "internalListener", "!=", "null", ")", "{", "this", ".", "spaceIDs", ".", "removeDMapListener"...
Destroy this repository and releaqse all the resources.
[ "Destroy", "this", "repository", "and", "releaqse", "all", "the", "resources", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java#L149-L164
57,376
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java
SpaceRepository.ensureLocalSpaceDefinition
@SuppressWarnings({ "unchecked", "rawtypes" }) protected void ensureLocalSpaceDefinition(SpaceID id, Object[] initializationParameters) { synchronized (getSpaceRepositoryMutex()) { if (!this.spaces.containsKey(id)) { createSpaceInstance((Class) id.getSpaceSpecification(), id, false, initializationParameters);...
java
@SuppressWarnings({ "unchecked", "rawtypes" }) protected void ensureLocalSpaceDefinition(SpaceID id, Object[] initializationParameters) { synchronized (getSpaceRepositoryMutex()) { if (!this.spaces.containsKey(id)) { createSpaceInstance((Class) id.getSpaceSpecification(), id, false, initializationParameters);...
[ "@", "SuppressWarnings", "(", "{", "\"unchecked\"", ",", "\"rawtypes\"", "}", ")", "protected", "void", "ensureLocalSpaceDefinition", "(", "SpaceID", "id", ",", "Object", "[", "]", "initializationParameters", ")", "{", "synchronized", "(", "getSpaceRepositoryMutex", ...
Add the existing, but not yet known, spaces into this repository. @param id identifier of the space @param initializationParameters parameters for initialization.
[ "Add", "the", "existing", "but", "not", "yet", "known", "spaces", "into", "this", "repository", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java#L209-L216
57,377
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java
SpaceRepository.removeLocalSpaceDefinition
protected void removeLocalSpaceDefinition(SpaceID id, boolean isLocalDestruction) { final Space space; synchronized (getSpaceRepositoryMutex()) { space = this.spaces.remove(id); if (space != null) { this.spacesBySpec.remove(id.getSpaceSpecification(), id); } } if (space != null) { fireSpaceRemov...
java
protected void removeLocalSpaceDefinition(SpaceID id, boolean isLocalDestruction) { final Space space; synchronized (getSpaceRepositoryMutex()) { space = this.spaces.remove(id); if (space != null) { this.spacesBySpec.remove(id.getSpaceSpecification(), id); } } if (space != null) { fireSpaceRemov...
[ "protected", "void", "removeLocalSpaceDefinition", "(", "SpaceID", "id", ",", "boolean", "isLocalDestruction", ")", "{", "final", "Space", "space", ";", "synchronized", "(", "getSpaceRepositoryMutex", "(", ")", ")", "{", "space", "=", "this", ".", "spaces", ".",...
Remove a remote space. @param id identifier of the space @param isLocalDestruction indicates if the destruction is initiated by the local kernel.
[ "Remove", "a", "remote", "space", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java#L224-L235
57,378
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java
SpaceRepository.removeLocalSpaceDefinitions
protected void removeLocalSpaceDefinitions(boolean isLocalDestruction) { List<Space> removedSpaces = null; synchronized (getSpaceRepositoryMutex()) { if (!this.spaces.isEmpty()) { removedSpaces = new ArrayList<>(this.spaces.size()); final Iterator<Entry<SpaceID, Space>> iterator = this.spaces.entrySet()....
java
protected void removeLocalSpaceDefinitions(boolean isLocalDestruction) { List<Space> removedSpaces = null; synchronized (getSpaceRepositoryMutex()) { if (!this.spaces.isEmpty()) { removedSpaces = new ArrayList<>(this.spaces.size()); final Iterator<Entry<SpaceID, Space>> iterator = this.spaces.entrySet()....
[ "protected", "void", "removeLocalSpaceDefinitions", "(", "boolean", "isLocalDestruction", ")", "{", "List", "<", "Space", ">", "removedSpaces", "=", "null", ";", "synchronized", "(", "getSpaceRepositoryMutex", "(", ")", ")", "{", "if", "(", "!", "this", ".", "...
Remove all the remote spaces. @param isLocalDestruction indicates if the destruction is initiated by the local kernel.
[ "Remove", "all", "the", "remote", "spaces", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java#L242-L265
57,379
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java
SpaceRepository.createSpace
public <S extends io.sarl.lang.core.Space> S createSpace(SpaceID spaceID, Class<? extends SpaceSpecification<S>> spec, Object... creationParams) { synchronized (getSpaceRepositoryMutex()) { if (!this.spaces.containsKey(spaceID)) { return createSpaceInstance(spec, spaceID, true, creationParams); } } r...
java
public <S extends io.sarl.lang.core.Space> S createSpace(SpaceID spaceID, Class<? extends SpaceSpecification<S>> spec, Object... creationParams) { synchronized (getSpaceRepositoryMutex()) { if (!this.spaces.containsKey(spaceID)) { return createSpaceInstance(spec, spaceID, true, creationParams); } } r...
[ "public", "<", "S", "extends", "io", ".", "sarl", ".", "lang", ".", "core", ".", "Space", ">", "S", "createSpace", "(", "SpaceID", "spaceID", ",", "Class", "<", "?", "extends", "SpaceSpecification", "<", "S", ">", ">", "spec", ",", "Object", "...", "...
Create a space. @param <S> - the type of the space to reply. @param spaceID ID of the space. @param spec specification of the space. @param creationParams creation parameters. @return the new space, or <code>null</code> if the space already exists.
[ "Create", "a", "space", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java#L276-L284
57,380
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java
SpaceRepository.getOrCreateSpaceWithSpec
@SuppressWarnings("unchecked") public <S extends io.sarl.lang.core.Space> S getOrCreateSpaceWithSpec(SpaceID spaceID, Class<? extends SpaceSpecification<S>> spec, Object... creationParams) { synchronized (getSpaceRepositoryMutex()) { final Collection<SpaceID> ispaces = this.spacesBySpec.get(spec); final S f...
java
@SuppressWarnings("unchecked") public <S extends io.sarl.lang.core.Space> S getOrCreateSpaceWithSpec(SpaceID spaceID, Class<? extends SpaceSpecification<S>> spec, Object... creationParams) { synchronized (getSpaceRepositoryMutex()) { final Collection<SpaceID> ispaces = this.spacesBySpec.get(spec); final S f...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "<", "S", "extends", "io", ".", "sarl", ".", "lang", ".", "core", ".", "Space", ">", "S", "getOrCreateSpaceWithSpec", "(", "SpaceID", "spaceID", ",", "Class", "<", "?", "extends", "SpaceSpecificat...
Retrieve the first space of the given specification, or create a space if none. @param <S> - the type of the space to reply. @param spaceID ID of the space (used only when creating a space). @param spec specification of the space. @param creationParams creation parameters (used only when creating a space). @return the...
[ "Retrieve", "the", "first", "space", "of", "the", "given", "specification", "or", "create", "a", "space", "if", "none", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java#L295-L309
57,381
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java
SpaceRepository.getOrCreateSpaceWithID
@SuppressWarnings("unchecked") public <S extends io.sarl.lang.core.Space> S getOrCreateSpaceWithID(SpaceID spaceID, Class<? extends SpaceSpecification<S>> spec, Object... creationParams) { synchronized (getSpaceRepositoryMutex()) { Space space = this.spaces.get(spaceID); if (space == null) { space = cre...
java
@SuppressWarnings("unchecked") public <S extends io.sarl.lang.core.Space> S getOrCreateSpaceWithID(SpaceID spaceID, Class<? extends SpaceSpecification<S>> spec, Object... creationParams) { synchronized (getSpaceRepositoryMutex()) { Space space = this.spaces.get(spaceID); if (space == null) { space = cre...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "<", "S", "extends", "io", ".", "sarl", ".", "lang", ".", "core", ".", "Space", ">", "S", "getOrCreateSpaceWithID", "(", "SpaceID", "spaceID", ",", "Class", "<", "?", "extends", "SpaceSpecificatio...
Retrieve the first space of the given identifier, or create a space if none. @param <S> - the type of the space to reply. @param spaceID ID of the space. @param spec specification of the space. @param creationParams creation parameters (used only when creating a space). @return the new space.
[ "Retrieve", "the", "first", "space", "of", "the", "given", "identifier", "or", "create", "a", "space", "if", "none", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java#L320-L331
57,382
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java
SpaceRepository.getSpaces
public SynchronizedCollection<? extends Space> getSpaces() { synchronized (getSpaceRepositoryMutex()) { return Collections3.synchronizedCollection(Collections.unmodifiableCollection(this.spaces.values()), getSpaceRepositoryMutex()); } }
java
public SynchronizedCollection<? extends Space> getSpaces() { synchronized (getSpaceRepositoryMutex()) { return Collections3.synchronizedCollection(Collections.unmodifiableCollection(this.spaces.values()), getSpaceRepositoryMutex()); } }
[ "public", "SynchronizedCollection", "<", "?", "extends", "Space", ">", "getSpaces", "(", ")", "{", "synchronized", "(", "getSpaceRepositoryMutex", "(", ")", ")", "{", "return", "Collections3", ".", "synchronizedCollection", "(", "Collections", ".", "unmodifiableColl...
Returns the collection of all spaces stored in this repository. @return the collection of all spaces stored in this repository.
[ "Returns", "the", "collection", "of", "all", "spaces", "stored", "in", "this", "repository", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/services/jdk/contextspace/SpaceRepository.java#L338-L343
57,383
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/AbstractSREInstall.java
AbstractSREInstall.revalidate
protected IStatus revalidate(int ignoreCauses) { try { setDirty(false); resolveDirtyFields(false); return getValidity(ignoreCauses); } catch (Throwable e) { if ((ignoreCauses & CODE_GENERAL) == 0) { return SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR, CODE_GENERAL, e); } return SA...
java
protected IStatus revalidate(int ignoreCauses) { try { setDirty(false); resolveDirtyFields(false); return getValidity(ignoreCauses); } catch (Throwable e) { if ((ignoreCauses & CODE_GENERAL) == 0) { return SARLEclipsePlugin.getDefault().createStatus(IStatus.ERROR, CODE_GENERAL, e); } return SA...
[ "protected", "IStatus", "revalidate", "(", "int", "ignoreCauses", ")", "{", "try", "{", "setDirty", "(", "false", ")", ";", "resolveDirtyFields", "(", "false", ")", ";", "return", "getValidity", "(", "ignoreCauses", ")", ";", "}", "catch", "(", "Throwable", ...
Force the computation of the installation validity. @param ignoreCauses a set of bits that indicates the invalidity causes to ignore. @return the validity status.
[ "Force", "the", "computation", "of", "the", "installation", "validity", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/AbstractSREInstall.java#L167-L178
57,384
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/AbstractSREInstall.java
AbstractSREInstall.setClassPathEntries
@Override public void setClassPathEntries(List<IRuntimeClasspathEntry> libraries) { if (isDirty()) { setDirty(false); resolveDirtyFields(true); } if ((libraries == null && this.classPathEntries != null) || (libraries != null && (this.classPathEntries == null || libraries != this.classPathEnt...
java
@Override public void setClassPathEntries(List<IRuntimeClasspathEntry> libraries) { if (isDirty()) { setDirty(false); resolveDirtyFields(true); } if ((libraries == null && this.classPathEntries != null) || (libraries != null && (this.classPathEntries == null || libraries != this.classPathEnt...
[ "@", "Override", "public", "void", "setClassPathEntries", "(", "List", "<", "IRuntimeClasspathEntry", ">", "libraries", ")", "{", "if", "(", "isDirty", "(", ")", ")", "{", "setDirty", "(", "false", ")", ";", "resolveDirtyFields", "(", "true", ")", ";", "}"...
Change the library locations of this ISREInstall. @param libraries The library locations of this ISREInstall. Must not be <code>null</code>.
[ "Change", "the", "library", "locations", "of", "this", "ISREInstall", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/AbstractSREInstall.java#L356-L374
57,385
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/AbstractSREInstall.java
AbstractSREInstall.formatCommandLineOption
protected static String formatCommandLineOption(String name, String value) { final StringBuilder str = new StringBuilder(); str.append("--"); //$NON-NLS-1$ if (!Strings.isNullOrEmpty(name)) { str.append(name); if (!Strings.isNullOrEmpty(value)) { str.append("="); //$NON-NLS-1$ str.append(value); ...
java
protected static String formatCommandLineOption(String name, String value) { final StringBuilder str = new StringBuilder(); str.append("--"); //$NON-NLS-1$ if (!Strings.isNullOrEmpty(name)) { str.append(name); if (!Strings.isNullOrEmpty(value)) { str.append("="); //$NON-NLS-1$ str.append(value); ...
[ "protected", "static", "String", "formatCommandLineOption", "(", "String", "name", ",", "String", "value", ")", "{", "final", "StringBuilder", "str", "=", "new", "StringBuilder", "(", ")", ";", "str", ".", "append", "(", "\"--\"", ")", ";", "//$NON-NLS-1$", ...
Replies the string representation of a command-line option. @param name the name of the option. @param value the value to put in the command-line. @return the string representation of the command-line option.
[ "Replies", "the", "string", "representation", "of", "a", "command", "-", "line", "option", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/runtime/AbstractSREInstall.java#L497-L508
57,386
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastedExpressionTypeComputationState.java
CastedExpressionTypeComputationState.isCastOperatorLinkingEnabled
public boolean isCastOperatorLinkingEnabled(SarlCastedExpression cast) { final LightweightTypeReference sourceType = getStackedResolvedTypes().getReturnType(cast.getTarget()); final LightweightTypeReference destinationType = getReferenceOwner().toLightweightTypeReference(cast.getType()); if (sourceType.isPrimitiv...
java
public boolean isCastOperatorLinkingEnabled(SarlCastedExpression cast) { final LightweightTypeReference sourceType = getStackedResolvedTypes().getReturnType(cast.getTarget()); final LightweightTypeReference destinationType = getReferenceOwner().toLightweightTypeReference(cast.getType()); if (sourceType.isPrimitiv...
[ "public", "boolean", "isCastOperatorLinkingEnabled", "(", "SarlCastedExpression", "cast", ")", "{", "final", "LightweightTypeReference", "sourceType", "=", "getStackedResolvedTypes", "(", ")", ".", "getReturnType", "(", "cast", ".", "getTarget", "(", ")", ")", ";", ...
Replies if the linking to the cast operator functions is enabled. @param cast the cast operator. @return {@code true} if the linking is enabled.
[ "Replies", "if", "the", "linking", "to", "the", "cast", "operator", "functions", "is", "enabled", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastedExpressionTypeComputationState.java#L93-L103
57,387
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastedExpressionTypeComputationState.java
CastedExpressionTypeComputationState.getLinkingCandidates
public List<? extends ILinkingCandidate> getLinkingCandidates(SarlCastedExpression cast) { // Prepare the type resolver. final StackedResolvedTypes demandComputedTypes = pushTypes(); final AbstractTypeComputationState forked = withNonVoidExpectation(demandComputedTypes); final ForwardingResolvedTypes demandReso...
java
public List<? extends ILinkingCandidate> getLinkingCandidates(SarlCastedExpression cast) { // Prepare the type resolver. final StackedResolvedTypes demandComputedTypes = pushTypes(); final AbstractTypeComputationState forked = withNonVoidExpectation(demandComputedTypes); final ForwardingResolvedTypes demandReso...
[ "public", "List", "<", "?", "extends", "ILinkingCandidate", ">", "getLinkingCandidates", "(", "SarlCastedExpression", "cast", ")", "{", "// Prepare the type resolver.", "final", "StackedResolvedTypes", "demandComputedTypes", "=", "pushTypes", "(", ")", ";", "final", "Ab...
Compute the best candidates for the feature behind the cast operator. @param cast the cast operator. @return the candidates.
[ "Compute", "the", "best", "candidates", "for", "the", "feature", "behind", "the", "cast", "operator", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastedExpressionTypeComputationState.java#L110-L158
57,388
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastedExpressionTypeComputationState.java
CastedExpressionTypeComputationState.createCandidate
protected ILinkingCandidate createCandidate(SarlCastedExpression cast, ExpressionTypeComputationState state, IIdentifiableElementDescription description) { return new CastOperatorLinkingCandidate(cast, description, getSingleExpectation(state), state); }
java
protected ILinkingCandidate createCandidate(SarlCastedExpression cast, ExpressionTypeComputationState state, IIdentifiableElementDescription description) { return new CastOperatorLinkingCandidate(cast, description, getSingleExpectation(state), state); }
[ "protected", "ILinkingCandidate", "createCandidate", "(", "SarlCastedExpression", "cast", ",", "ExpressionTypeComputationState", "state", ",", "IIdentifiableElementDescription", "description", ")", "{", "return", "new", "CastOperatorLinkingCandidate", "(", "cast", ",", "descr...
Create a candidate from the given description. @param cast the cast operator. @param state the state @param description the description of the cast linked operation. @return the linking candidate.
[ "Create", "a", "candidate", "from", "the", "given", "description", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastedExpressionTypeComputationState.java#L175-L181
57,389
sarl/sarl
main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastedExpressionTypeComputationState.java
CastedExpressionTypeComputationState.resetFeature
@SuppressWarnings("static-method") public void resetFeature(SarlCastedExpression object) { setStructuralFeature(object, SarlPackage.Literals.SARL_CASTED_EXPRESSION__FEATURE, null); setStructuralFeature(object, SarlPackage.Literals.SARL_CASTED_EXPRESSION__RECEIVER, null); setStructuralFeature(object, SarlPackage....
java
@SuppressWarnings("static-method") public void resetFeature(SarlCastedExpression object) { setStructuralFeature(object, SarlPackage.Literals.SARL_CASTED_EXPRESSION__FEATURE, null); setStructuralFeature(object, SarlPackage.Literals.SARL_CASTED_EXPRESSION__RECEIVER, null); setStructuralFeature(object, SarlPackage....
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "public", "void", "resetFeature", "(", "SarlCastedExpression", "object", ")", "{", "setStructuralFeature", "(", "object", ",", "SarlPackage", ".", "Literals", ".", "SARL_CASTED_EXPRESSION__FEATURE", ",", "null", ...
Reset the properties of the given feature in order to have casted expression that is not linked to an operation. @param object the expression to reset.
[ "Reset", "the", "properties", "of", "the", "given", "feature", "in", "order", "to", "have", "casted", "expression", "that", "is", "not", "linked", "to", "an", "operation", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src/io/sarl/lang/typesystem/cast/CastedExpressionTypeComputationState.java#L188-L193
57,390
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/editor/SARLSourceViewer.java
SARLSourceViewer.getDocumentAutoFormatter
public IDocumentAutoFormatter getDocumentAutoFormatter() { final IDocument document = getDocument(); if (document instanceof IXtextDocument) { final IDocumentAutoFormatter formatter = this.autoFormatterProvider.get(); formatter.bind((IXtextDocument) document, this.fContentFormatter); return formatter; } ...
java
public IDocumentAutoFormatter getDocumentAutoFormatter() { final IDocument document = getDocument(); if (document instanceof IXtextDocument) { final IDocumentAutoFormatter formatter = this.autoFormatterProvider.get(); formatter.bind((IXtextDocument) document, this.fContentFormatter); return formatter; } ...
[ "public", "IDocumentAutoFormatter", "getDocumentAutoFormatter", "(", ")", "{", "final", "IDocument", "document", "=", "getDocument", "(", ")", ";", "if", "(", "document", "instanceof", "IXtextDocument", ")", "{", "final", "IDocumentAutoFormatter", "formatter", "=", ...
Replies the document auto-formatter. @return the service.
[ "Replies", "the", "document", "auto", "-", "formatter", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/editor/SARLSourceViewer.java#L85-L95
57,391
sarl/sarl
main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlFieldBuilderImpl.java
SarlFieldBuilderImpl.getInitialValue
@Pure public IExpressionBuilder getInitialValue() { IExpressionBuilder exprBuilder = this.expressionProvider.get(); exprBuilder.eInit(getSarlField(), new Procedures.Procedure1<XExpression>() { public void apply(XExpression expr) { getSarlField().setInitialValue(expr); } }, getTypeResolutionContext(...
java
@Pure public IExpressionBuilder getInitialValue() { IExpressionBuilder exprBuilder = this.expressionProvider.get(); exprBuilder.eInit(getSarlField(), new Procedures.Procedure1<XExpression>() { public void apply(XExpression expr) { getSarlField().setInitialValue(expr); } }, getTypeResolutionContext(...
[ "@", "Pure", "public", "IExpressionBuilder", "getInitialValue", "(", ")", "{", "IExpressionBuilder", "exprBuilder", "=", "this", ".", "expressionProvider", ".", "get", "(", ")", ";", "exprBuilder", ".", "eInit", "(", "getSarlField", "(", ")", ",", "new", "Proc...
Change the initialValue. @param value the value of the initialValue. It may be <code>null</code>.
[ "Change", "the", "initialValue", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlFieldBuilderImpl.java#L129-L138
57,392
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java
MarkdownParser.setOutlineEntryFormat
public void setOutlineEntryFormat(String formatWithoutNumbers, String formatWithNumbers) { if (!Strings.isEmpty(formatWithoutNumbers)) { this.outlineEntryWithoutNumberFormat = formatWithoutNumbers; } if (!Strings.isEmpty(formatWithNumbers)) { this.outlineEntryWithNumberFormat = formatWithNumbers; } }
java
public void setOutlineEntryFormat(String formatWithoutNumbers, String formatWithNumbers) { if (!Strings.isEmpty(formatWithoutNumbers)) { this.outlineEntryWithoutNumberFormat = formatWithoutNumbers; } if (!Strings.isEmpty(formatWithNumbers)) { this.outlineEntryWithNumberFormat = formatWithNumbers; } }
[ "public", "void", "setOutlineEntryFormat", "(", "String", "formatWithoutNumbers", ",", "String", "formatWithNumbers", ")", "{", "if", "(", "!", "Strings", ".", "isEmpty", "(", "formatWithoutNumbers", ")", ")", "{", "this", ".", "outlineEntryWithoutNumberFormat", "="...
Change the formats to be applied to the outline entries. <p>The format must be compatible with {@link MessageFormat}. <p>If section auto-numbering is on, the first parameter <code>{0}</code> equals to the prefix, the second parameter <code>{1}</code> equals to the string representation of the section number, the thir...
[ "Change", "the", "formats", "to", "be", "applied", "to", "the", "outline", "entries", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L330-L337
57,393
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java
MarkdownParser.setOutlineDepthRange
public void setOutlineDepthRange(IntegerRange level) { if (level == null) { this.outlineDepthRange = new IntegerRange(DEFAULT_OUTLINE_TOP_LEVEL, DEFAULT_OUTLINE_TOP_LEVEL); } else { this.outlineDepthRange = level; } }
java
public void setOutlineDepthRange(IntegerRange level) { if (level == null) { this.outlineDepthRange = new IntegerRange(DEFAULT_OUTLINE_TOP_LEVEL, DEFAULT_OUTLINE_TOP_LEVEL); } else { this.outlineDepthRange = level; } }
[ "public", "void", "setOutlineDepthRange", "(", "IntegerRange", "level", ")", "{", "if", "(", "level", "==", "null", ")", "{", "this", ".", "outlineDepthRange", "=", "new", "IntegerRange", "(", "DEFAULT_OUTLINE_TOP_LEVEL", ",", "DEFAULT_OUTLINE_TOP_LEVEL", ")", ";"...
Change the level at which the titles may appear in the outline. @param level the level, at least 1.
[ "Change", "the", "level", "at", "which", "the", "titles", "may", "appear", "in", "the", "outline", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L420-L426
57,394
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java
MarkdownParser.extractReferencableElements
@SuppressWarnings("static-method") protected ReferenceContext extractReferencableElements(String text) { final ReferenceContext context = new ReferenceContext(); // Visit the links and record the transformations final MutableDataSet options = new MutableDataSet(); final Parser parser = Parser.builder(options)...
java
@SuppressWarnings("static-method") protected ReferenceContext extractReferencableElements(String text) { final ReferenceContext context = new ReferenceContext(); // Visit the links and record the transformations final MutableDataSet options = new MutableDataSet(); final Parser parser = Parser.builder(options)...
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "ReferenceContext", "extractReferencableElements", "(", "String", "text", ")", "{", "final", "ReferenceContext", "context", "=", "new", "ReferenceContext", "(", ")", ";", "// Visit the links and record t...
Extract all the referencable objects from the given content. @param text the content to parse. @return the referencables objects
[ "Extract", "all", "the", "referencable", "objects", "from", "the", "given", "content", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L511-L546
57,395
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java
MarkdownParser.transformHtmlLinks
protected String transformHtmlLinks(String content, ReferenceContext references) { if (!isPureHtmlReferenceTransformation()) { return content; } // Prepare replacement data structures final Map<String, String> replacements = new TreeMap<>(); // Visit the links and record the transformations final org.j...
java
protected String transformHtmlLinks(String content, ReferenceContext references) { if (!isPureHtmlReferenceTransformation()) { return content; } // Prepare replacement data structures final Map<String, String> replacements = new TreeMap<>(); // Visit the links and record the transformations final org.j...
[ "protected", "String", "transformHtmlLinks", "(", "String", "content", ",", "ReferenceContext", "references", ")", "{", "if", "(", "!", "isPureHtmlReferenceTransformation", "(", ")", ")", "{", "return", "content", ";", "}", "// Prepare replacement data structures", "f...
Apply link transformation on the HTML links. @param content the original content. @param references the references into the document. @return the result of the transformation.
[ "Apply", "link", "transformation", "on", "the", "HTML", "links", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L554-L600
57,396
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java
MarkdownParser.transformMardownLinks
protected String transformMardownLinks(String content, ReferenceContext references) { if (!isMarkdownToHtmlReferenceTransformation()) { return content; } // Prepare replacement data structures final Map<BasedSequence, String> replacements = new TreeMap<>((cmp1, cmp2) -> { final int cmp = Integer.compare(...
java
protected String transformMardownLinks(String content, ReferenceContext references) { if (!isMarkdownToHtmlReferenceTransformation()) { return content; } // Prepare replacement data structures final Map<BasedSequence, String> replacements = new TreeMap<>((cmp1, cmp2) -> { final int cmp = Integer.compare(...
[ "protected", "String", "transformMardownLinks", "(", "String", "content", ",", "ReferenceContext", "references", ")", "{", "if", "(", "!", "isMarkdownToHtmlReferenceTransformation", "(", ")", ")", "{", "return", "content", ";", "}", "// Prepare replacement data structur...
Apply link transformation on the Markdown links. @param content the original content. @param references the references into the document. @return the result of the transformation.
[ "Apply", "link", "transformation", "on", "the", "Markdown", "links", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L608-L646
57,397
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java
MarkdownParser.convertURLToString
static String convertURLToString(URL url) { if (URISchemeType.FILE.isURL(url)) { final StringBuilder externalForm = new StringBuilder(); externalForm.append(url.getPath()); final String ref = url.getRef(); if (!Strings.isEmpty(ref)) { externalForm.append("#").append(ref); //$NON-NLS-1$ } return ...
java
static String convertURLToString(URL url) { if (URISchemeType.FILE.isURL(url)) { final StringBuilder externalForm = new StringBuilder(); externalForm.append(url.getPath()); final String ref = url.getRef(); if (!Strings.isEmpty(ref)) { externalForm.append("#").append(ref); //$NON-NLS-1$ } return ...
[ "static", "String", "convertURLToString", "(", "URL", "url", ")", "{", "if", "(", "URISchemeType", ".", "FILE", ".", "isURL", "(", "url", ")", ")", "{", "final", "StringBuilder", "externalForm", "=", "new", "StringBuilder", "(", ")", ";", "externalForm", "...
Convert the given URL to its string representation that is compatible with Markdown document linking mechanism. @param url the URL to transform. @return the sting representation of the URL.
[ "Convert", "the", "given", "URL", "to", "its", "string", "representation", "that", "is", "compatible", "with", "Markdown", "document", "linking", "mechanism", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L653-L664
57,398
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java
MarkdownParser.transformURL
protected URL transformURL(URL link, ReferenceContext references) { if (URISchemeType.FILE.isURL(link)) { File filename = FileSystem.convertURLToFile(link); if (Strings.isEmpty(filename.getName())) { // This is a link to the local document. final String anchor = transformURLAnchor(filename, link.getRef(...
java
protected URL transformURL(URL link, ReferenceContext references) { if (URISchemeType.FILE.isURL(link)) { File filename = FileSystem.convertURLToFile(link); if (Strings.isEmpty(filename.getName())) { // This is a link to the local document. final String anchor = transformURLAnchor(filename, link.getRef(...
[ "protected", "URL", "transformURL", "(", "URL", "link", ",", "ReferenceContext", "references", ")", "{", "if", "(", "URISchemeType", ".", "FILE", ".", "isURL", "(", "link", ")", ")", "{", "File", "filename", "=", "FileSystem", ".", "convertURLToFile", "(", ...
Transform an URL from Markdown format to HTML format. <p>Usually, the file extension ".md" is replaced by ".html". <p>This function replaces the anchor to the local reference with the correct one (modified by outline feature). @param link the link to transform. @param references the set of references from the local ...
[ "Transform", "an", "URL", "from", "Markdown", "format", "to", "HTML", "format", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L676-L709
57,399
sarl/sarl
main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java
MarkdownParser.transformURLAnchor
@SuppressWarnings("static-method") protected String transformURLAnchor(File file, String anchor, ReferenceContext references) { String anc = anchor; if (references != null) { anc = references.validateAnchor(anc); } return anc; }
java
@SuppressWarnings("static-method") protected String transformURLAnchor(File file, String anchor, ReferenceContext references) { String anc = anchor; if (references != null) { anc = references.validateAnchor(anc); } return anc; }
[ "@", "SuppressWarnings", "(", "\"static-method\"", ")", "protected", "String", "transformURLAnchor", "(", "File", "file", ",", "String", "anchor", ",", "ReferenceContext", "references", ")", "{", "String", "anc", "=", "anchor", ";", "if", "(", "references", "!="...
Transform the anchor of an URL from Markdown format to HTML format. @param file the linked file. @param anchor the anchor to transform. @param references the set of references from the local document, or {@code null}. @return the result of the transformation. @since 0.7
[ "Transform", "the", "anchor", "of", "an", "URL", "from", "Markdown", "format", "to", "HTML", "format", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/externalmaven/io.sarl.maven.docs.generator/src/main/java/io/sarl/maven/docs/markdown/MarkdownParser.java#L719-L726