Tabnine Logo
Assignment.getFeature
Code IndexAdd Tabnine to your IDE (free)

How to use
getFeature
method
in
org.eclipse.xtext.Assignment

Best Java code snippets using org.eclipse.xtext.Assignment.getFeature (Showing top 20 results out of 315)

origin: org.eclipse/xtext

public String getAssignmentName() {
  if (type != ConstraintType.ASSIGNMENT)
    throw new RuntimeException("Constraint '" + this + "' is not an assignment, but a " + getType());
  return ((Assignment) element).getFeature();
}
origin: org.eclipse.xtext/ui

private String getAssignedFeature(RuleCall call) {
  Assignment ass = GrammarUtil.containingAssignment(call);
  if (ass != null) {
    String result = ass.getFeature();
    if (result.equals(result.toLowerCase()))
      result = Strings.toFirstUpper(result);
    return result;
  }
  return null;
}

origin: org.eclipse.xtext/org.eclipse.xtext.xtext.generator

public String localVar(final Assignment it, final AbstractElement terminal) {
 String _feature = it.getFeature();
 String _plus = ("lv_" + _feature);
 String _plus_1 = (_plus + "_");
 int _indexOf = this.contentsAsList(GrammarUtil.containingParserRule(it)).indexOf(it);
 String _plus_2 = (_plus_1 + Integer.valueOf(_indexOf));
 String _plus_3 = (_plus_2 + "_");
 int _indexOf_1 = EcoreUtil2.eAllContentsAsList(it).indexOf(terminal);
 return (_plus_3 + Integer.valueOf(_indexOf_1));
}

origin: org.eclipse/xtext

protected String getFeatureName() {
  if (element instanceof Action)
    return ((Action) element).getFeature();
  Assignment ass = GrammarUtil.containingAssignment(element);
  if (ass != null)
    return ass.getFeature();
  return null;
}
origin: org.eclipse/xtext

@Override
public Boolean caseAssignment(Assignment object) {
  if (GrammarUtil.isMultipleAssignment(object))
    return Boolean.FALSE;
  checkAssignment(object, object.getFeature());
  if (GrammarUtil.isMultipleCardinality(object))
    checkAssignment(object, object.getFeature());
  return Boolean.FALSE;
}
origin: org.eclipse/xtext

public static EReference getReference(CrossReference ref, EClass referenceOwner) {
  final String feature = GrammarUtil.containingAssignment(ref).getFeature();
  EStructuralFeature result = referenceOwner.getEStructuralFeature(feature);
  if (result instanceof EReference && !((EReference) result).isContainment())
    return (EReference) result;
  return null;
}

origin: org.eclipse/xtext

protected String addAssignemnt(String result, AbstractElement ele) {
  if (!showAssignment)
    return result;
  Assignment ass = GrammarUtil.containingAssignment(ele);
  result = ass != null ? ass.getFeature() + ass.getOperator() + result : result;
  return addQualified(result, ele);
}
origin: org.eclipse/xtext

@Override
public String caseAssignment(Assignment object) {
  String result = object.getFeature() + object.getOperator() + " " + card(object);
  return addQualified(result, object);
}
origin: org.eclipse.xtext/org.eclipse.xtext.xtext.generator

private String getFQFeatureName(final Assignment a) {
 String _firstUpper = StringExtensions.toFirstUpper(GrammarUtil.containingParserRule(a).getName());
 String _plus = (_firstUpper + "_");
 String _firstUpper_1 = StringExtensions.toFirstUpper(a.getFeature());
 return (_plus + _firstUpper_1);
}

origin: org.eclipse/xtext

public void accept(Keyword keyword, Object value, String token, ILeafNode node) {
  Assignment ass = getAssignment(keyword);
  EStructuralFeature feature = getFeature(ass.getFeature());
  assertIndex(feature);
  assertValue(feature, value);
  acceptKeyword(ass, keyword, value, token, ISemanticSequenceAcceptor.NO_INDEX, node);
}
origin: org.eclipse/xtext

public void accept(Keyword keyword, Object value, String token, int index, ILeafNode node) {
  Assignment ass = getAssignment(keyword);
  EStructuralFeature feature = getFeature(ass.getFeature());
  assertIndex(feature, index);
  assertValue(feature, value);
  acceptKeyword(ass, keyword, value, token, index, node);
}
origin: org.eclipse/xtext

public void accept(Keyword keyword, Object value, ILeafNode node) {
  Assignment ass = getAssignment(keyword);
  EStructuralFeature feature = getFeature(ass.getFeature());
  assertIndex(feature);
  assertValue(feature, value);
  String token = getToken(keyword, value, node);
  acceptKeyword(ass, keyword, value, token, ISemanticSequenceAcceptor.NO_INDEX, node);
}
origin: org.eclipse/xtext

public void accept(Keyword keyword, Object value, int index, ILeafNode node) {
  Assignment ass = getAssignment(keyword);
  EStructuralFeature feature = getFeature(ass.getFeature());
  assertIndex(feature, index);
  assertValue(feature, value);
  String token = getToken(keyword, value, node);
  acceptKeyword(ass, keyword, value, token, index, node);
}
origin: org.eclipse/xtext

public void accept(Keyword keyword, Object value, String token, int index) {
  Assignment ass = getAssignment(keyword);
  EStructuralFeature feature = getFeature(ass.getFeature());
  assertIndex(feature, index);
  assertValue(feature, value);
  ILeafNode node = getLeafNode(feature, index, index, value);
  acceptKeyword(ass, keyword, value, token, index, node);
}
origin: org.eclipse/xtext

public void accept(Keyword keyword, Object value, String token) {
  Assignment ass = getAssignment(keyword);
  EStructuralFeature feature = getFeature(ass.getFeature());
  assertIndex(feature);
  assertValue(feature, value);
  ILeafNode node = getLeafNode(feature, value);
  acceptKeyword(ass, keyword, value, token, ISemanticSequenceAcceptor.NO_INDEX, node);
}
origin: org.eclipse/xtext

public void accept(Keyword keyword, Object value) {
  Assignment ass = getAssignment(keyword);
  EStructuralFeature feature = getFeature(ass.getFeature());
  assertIndex(feature);
  assertValue(feature, value);
  ILeafNode node = getLeafNode(feature, value);
  String token = getToken(keyword, value, node);
  acceptKeyword(ass, keyword, value, token, ISemanticSequenceAcceptor.NO_INDEX, node);
}
origin: org.eclipse/xtext

public void accept(Keyword keyword, Object value, int index) {
  Assignment ass = getAssignment(keyword);
  EStructuralFeature feature = getFeature(ass.getFeature());
  assertIndex(feature, index);
  assertValue(feature, value);
  ILeafNode node = getLeafNode(feature, index, index, value);
  String token = getToken(keyword, value, node);
  acceptKeyword(ass, keyword, value, token, index, node);
}
origin: org.eclipse/xtext

public void accept(Keyword keyword, Object value, String token, int indexInFeature, int indexInNonTransient) {
  Assignment ass = getAssignment(keyword);
  EStructuralFeature feature = getFeature(ass.getFeature());
  assertIndex(feature, indexInFeature);
  assertIndex(feature, indexInNonTransient);
  assertValue(feature, value);
  ILeafNode node = getLeafNode(feature, indexInFeature, indexInNonTransient, value);
  acceptKeyword(ass, keyword, value, token, indexInFeature, node);
}
origin: org.eclipse/xtext

public void accept(Keyword keyword) {
  Assignment ass = getAssignment(keyword);
  Object value = GrammarUtil.isBooleanAssignment(ass) ? Boolean.TRUE : keyword.getValue();
  EStructuralFeature feature = getFeature(ass.getFeature());
  ILeafNode node = getLeafNode(feature, value);
  String token = getToken(keyword, value, node);
  assertIndex(feature);
  acceptKeyword(ass, keyword, value, token, ISemanticSequenceAcceptor.NO_INDEX, node);
}
origin: org.eclipse/xtext

public void accept(Keyword keyword, Object value, int indexInFeature, int indexInNonTransient) {
  Assignment ass = getAssignment(keyword);
  EStructuralFeature feature = getFeature(ass.getFeature());
  assertIndex(feature, indexInFeature);
  assertIndex(feature, indexInNonTransient);
  assertValue(feature, value);
  ILeafNode node = getLeafNode(feature, indexInFeature, indexInNonTransient, value);
  String token = getToken(keyword, value, node);
  acceptKeyword(ass, keyword, value, token, indexInFeature, node);
}
org.eclipse.xtextAssignmentgetFeature

Javadoc

Returns the value of the 'Feature' attribute.

If the meaning of the 'Feature' attribute isn't clear, there really should be more of a description here...

Popular methods of Assignment

  • getTerminal
    Returns the value of the 'Terminal' containment reference. If the meaning of the 'Terminal' containm
  • getOperator
    Returns the value of the 'Operator' attribute. If the meaning of the 'Operator' attribute isn't clea
  • eContainer
  • isFirstSetPredicated
  • isPredicated

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now