Codota Logo
AssignmentExpression.getVariable
Code IndexAdd Codota to your IDE (free)

How to use
getVariable
method
in
se.cambio.cds.gdl.model.expression.AssignmentExpression

Best Java code snippets using se.cambio.cds.gdl.model.expression.AssignmentExpression.getVariable (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.gdl-lang.gdl-tools/cds-core

private static void addGTCodesInWrites(ExpressionItem expressionItem, Set<String> gtCodes) {
  if (expressionItem instanceof CreateInstanceExpression) {
    MultipleAssignmentExpression multipleAssignmentExpression = ((CreateInstanceExpression) expressionItem).getAssignment();
    for (AssignmentExpression assignmentExpression : multipleAssignmentExpression.getAssignmentExpressions()) {
      addGTCodesInWrites(assignmentExpression, gtCodes);
    }
  } else if (expressionItem instanceof AssignmentExpression) {
    gtCodes.add(((AssignmentExpression) expressionItem).getVariable().getCode());
  } else {
    throw new RuntimeException("Unknown expression '" + expressionItem.getClass().getName() + "'");
  }
}
origin: org.gdl-lang.gdl-tools/gdl-graph

private Map<String, Collection<GuideAssignmentExpression>> generateAllAssignmentsByElementIdMap() {
  Map<String, Collection<GuideAssignmentExpression>> allAssignmentsByElementId = new HashMap<>();
  for (Guide guide : guideMap.values()) {
    if (guide.getDefinition() != null) {
      for (Rule rule : guide.getDefinition().getRules().values()) {
        Collection<AssignmentExpression> simpleAssignmentsFromExpressionItems =
            getSimpleAssignmentsFromExpressionItems(rule.getThenStatements());
        for (AssignmentExpression assignmentExpression : simpleAssignmentsFromExpressionItems) {
          Variable variable = assignmentExpression.getVariable();
          RuleReference ruleReference = new RuleReference(guide.getId(), variable.getCode());
          ElementInstance elementInstance = getElementInstanceByRuleReferenceMap().get(ruleReference);
          if (elementInstance == null) {
            logger.warn("ElementInstance not found for " + ruleReference);
          } else {
            Collection<GuideAssignmentExpression> guideAssignmentExpression =
                allAssignmentsByElementId.computeIfAbsent(elementInstance.getId(), k -> new ArrayList<>());
            guideAssignmentExpression.add(new GuideAssignmentExpression(guide.getId(), assignmentExpression));
          }
        }
      }
    }
  }
  return allAssignmentsByElementId;
}
origin: org.gdl-lang.gdl-tools/gdl-graph

  throw new InternalErrorException(new Exception("Element for binary expression " + guideAssignmentExpression + " not found!"));
gtCode = guideAssignmentExpression.getAssignmentExpression().getVariable().getCode();
ruleReference = new RuleReference(guideAssignmentExpression.getGuideId(), gtCode);
ElementInstance assignmentElementInstance = getElementInstanceByRuleReferenceMap().get(ruleReference);
origin: org.gdl-lang.gdl-tools/cds-core

protected void processAssignmentExpression(
    RuleLineCollection ruleLines,
    AssignmentExpression assignmentExpression) {
  String gtCode = assignmentExpression.getVariable().getCode();
  ExpressionItem expressionItemAux = assignmentExpression.getAssignment();
  String attribute = assignmentExpression.getVariable().getAttribute();
  GTCodeRuleLineElement gtCodeRuleLineElement =
      gtCodeElementMap.get(gtCode).getGTCodeRuleLineElement();
se.cambio.cds.gdl.model.expressionAssignmentExpressiongetVariable

Popular methods of AssignmentExpression

  • <init>
  • getAssignment
  • equals
  • hashCode

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • startActivity (Activity)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now