public class TemplateLangProposalProviderUtility
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static TemplateLangProposalProviderUtility |
INSTANCE
The current instance of the utility class.
|
| Constructor and Description |
|---|
TemplateLangProposalProviderUtility()
prevents external creation.
|
| Modifier and Type | Method and Description |
|---|---|
private de.uni_hildesheim.sse.vil.templatelang.templateLang.impl.VilDefImpl |
findDefDeclaration(org.eclipse.xtext.nodemodel.INode node)
finds the
VilDefImpl object inside of a statement. |
java.util.List<org.eclipse.jface.viewers.StyledString> |
getAllDefs(org.eclipse.xtext.nodemodel.INode node)
Returns all def-Declarations inside of the VTL-Script, ready to display as a propose.
|
java.util.List<org.eclipse.jface.viewers.StyledString> |
getAllParamsFromDef(org.eclipse.xtext.nodemodel.INode node)
Returns all parameters from a def-Declaration, ready to display as a propose.
|
java.util.List<org.eclipse.jface.viewers.StyledString> |
getAllParamsFromTemplate(org.eclipse.xtext.nodemodel.INode node)
Returns all parameters from the VTL-Template, ready to display as a propose.
|
java.util.List<java.lang.String> |
getAllRegisteredTypes(org.eclipse.xtext.nodemodel.INode node)
Returns all VTL-types currently available in EASy-Producer.
|
private java.util.List<java.lang.String> |
getAllTypes(org.eclipse.xtext.nodemodel.INode node)
Returns all VTL-types currently available in EASy-Producer, but may contain duplicate entries.
|
java.util.List<org.eclipse.jface.viewers.StyledString> |
getAllVarsInLangUnit(org.eclipse.xtext.nodemodel.INode node)
Returns all variables inside of the LanguageUnit, ready to display as a proposal.
|
java.util.List<org.eclipse.jface.viewers.StyledString> |
getAllVarsInLangUnitWithType(org.eclipse.xtext.nodemodel.INode node,
java.util.List<java.lang.String> typeList) |
java.util.List<org.eclipse.jface.viewers.StyledString> |
getAllVarsInStmt(org.eclipse.xtext.nodemodel.INode node)
Returns all variables inside of a statement, ready to display as a proposal.
|
java.util.List<org.eclipse.jface.viewers.StyledString> |
getAllVarsInStmtWithType(org.eclipse.xtext.nodemodel.INode node,
java.util.List<java.lang.String> typeList)
Returns all variables inside of a statement, which have a specific type, ready to display as a proposal.
|
private java.util.List<de.uni_hildesheim.sse.vil.templatelang.templateLang.VilDef> |
getDefs(org.eclipse.xtext.nodemodel.INode node)
Returns a list with all def-Declarations inside of an VTL-Script.
|
private org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter> |
getParamsFromDef(org.eclipse.xtext.nodemodel.INode node)
Returns a list with all parameters the def-Declaration have.
|
private org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter> |
getParamsFromTemplate(org.eclipse.xtext.nodemodel.INode node)
Returns a list with all parameters the template have.
|
private java.util.List<de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration> |
getVarsInLangUnit(org.eclipse.xtext.nodemodel.INode node)
Returns a list with all VariableDeclaration inside of the LanguageUnit.
|
private java.util.List<de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration> |
getVarsInStmt(org.eclipse.xtext.nodemodel.INode node)
Returns a list with all VariableDeclaration inside of a statement and all from tiers above.
|
private java.util.List<de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration> |
getVarsInStmtWithType(org.eclipse.xtext.nodemodel.INode node,
java.util.List<java.lang.String> typeList) |
public static final TemplateLangProposalProviderUtility INSTANCE
public TemplateLangProposalProviderUtility()
public java.util.List<org.eclipse.jface.viewers.StyledString> getAllVarsInStmt(org.eclipse.xtext.nodemodel.INode node)
node - the last complete node, when the content-assist is used.List with all variables, to show as a proposal.
Maybe null, if no variables were found.public java.util.List<org.eclipse.jface.viewers.StyledString> getAllVarsInStmtWithType(org.eclipse.xtext.nodemodel.INode node,
java.util.List<java.lang.String> typeList)
node - the last complete node, when the content-assist is used.the - list List with the specific types.List with all variables, to show as a proposal.
Maybe null, if no variables were found.public java.util.List<org.eclipse.jface.viewers.StyledString> getAllVarsInLangUnit(org.eclipse.xtext.nodemodel.INode node)
node - the last complete node, when the content-assist is used.List with all variables, to show as a proposal.
Maybe null, if no variables were found.public java.util.List<org.eclipse.jface.viewers.StyledString> getAllVarsInLangUnitWithType(org.eclipse.xtext.nodemodel.INode node,
java.util.List<java.lang.String> typeList)
public java.util.List<org.eclipse.jface.viewers.StyledString> getAllDefs(org.eclipse.xtext.nodemodel.INode node)
node - the last complete node.List with all def-Declarations.
Maybe null, if no defs were found.public java.util.List<org.eclipse.jface.viewers.StyledString> getAllParamsFromDef(org.eclipse.xtext.nodemodel.INode node)
node - the last complete node.List with all parameters.
Maybe null, if no parameters were found.public java.util.List<org.eclipse.jface.viewers.StyledString> getAllParamsFromTemplate(org.eclipse.xtext.nodemodel.INode node)
node - the last complete node.List with all parameters.
Maybe null, if no parameters were found.public java.util.List<java.lang.String> getAllRegisteredTypes(org.eclipse.xtext.nodemodel.INode node)
node - the INode object (last complete node) for which the content assist is called.String) of all types currently registered to EASy-Producer.private java.util.List<java.lang.String> getAllTypes(org.eclipse.xtext.nodemodel.INode node)
node - the INode object (last complete node) for which the content assist is called.String) of all types currently registered to EASy-Producer.private java.util.List<de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration> getVarsInStmtWithType(org.eclipse.xtext.nodemodel.INode node,
java.util.List<java.lang.String> typeList)
private java.util.List<de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration> getVarsInStmt(org.eclipse.xtext.nodemodel.INode node)
node - the last complete node, when the content-assist is used.private java.util.List<de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration> getVarsInLangUnit(org.eclipse.xtext.nodemodel.INode node)
node - the last complete node, when the content-assist is used.private java.util.List<de.uni_hildesheim.sse.vil.templatelang.templateLang.VilDef> getDefs(org.eclipse.xtext.nodemodel.INode node)
node - the last complete node.List with all def-Declarations.
Maybe null, if no defs were found.private de.uni_hildesheim.sse.vil.templatelang.templateLang.impl.VilDefImpl findDefDeclaration(org.eclipse.xtext.nodemodel.INode node)
VilDefImpl object inside of a statement.node - the last complete node.VilDefImpl object, when you are inside of the def-declaration.
Maybe null, if it's not found. Be sure you are using this method only inside of a def-declaration.private org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter> getParamsFromDef(org.eclipse.xtext.nodemodel.INode node)
node - the last complete node.EList with all parameters.
Maybe null, if no parameters were found.private org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Parameter> getParamsFromTemplate(org.eclipse.xtext.nodemodel.INode node)
node - the last complete node.EList with all parameters.
Maybe null, if no parameters were found.Copyright © 2009 - 2018 SSE. All Rights Reserved.