Codota Logo
PathExpressionHead.getDst
Code IndexAdd Codota to your IDE (free)

How to use
getDst
method
in
org.eclipse.incquery.patternlanguage.patternLanguage.PathExpressionHead

Best Java code snippets using org.eclipse.incquery.patternlanguage.patternLanguage.PathExpressionHead.getDst (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage

ValueReference valueReference = pathExpressionHead.getDst();
resultList.addAll(getUnnamedVariablesFromValueReference(valueReference, true));
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

private void gatherPathExpression(PathExpressionConstraint pathExpression, PatternModelAcceptor<?> acceptor) throws SpecificationBuilderException {
  PathExpressionHead head = pathExpression.getHead();
  VariableReference src = head.getSrc();
  ValueReference dst = head.getDst();
  if (src == null || dst == null) {
    return;
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

final ValueReference valueReference = pathExpressionHead.getDst();
if (valueReference instanceof VariableValue) {
  final VariableReference secondVariableReference = ((VariableValue) valueReference).getValue();
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

/**
 * This validator checks if the literal or computational values match the path expression's type.
 * 
 * @param pathExpressionConstraint
 */
@Check
public void checkForWrongLiteralAndComputationValuesInPathExpressionConstraints(
    PathExpressionConstraint pathExpressionConstraint) {
  // Normal attribute-reference constraint
  PathExpressionHead pathExpressionHead = pathExpressionConstraint.getHead();
  ValueReference valueReference = pathExpressionHead.getDst();
  if (valueReference instanceof LiteralValueReference || valueReference instanceof ComputationValue) {
    EClassifier inputClassifier = emfTypeProvider
        .getClassifierForLiteralComputationEnumValueReference(valueReference);
    EClassifier typeClassifier = emfTypeProvider.getClassifierForType(emfTypeProvider
        .getTypeFromPathExpressionTail(pathExpressionHead.getTail()));
    if (!isCompatibleClassifiers(typeClassifier, inputClassifier)) {
      String name = typeClassifier == null ? "<unknown>" : typeClassifier.getInstanceClassName();
      error("The type inferred from the path expression (" + name
          + ") is different from the input literal/computational value ("
          + inputClassifier.getInstanceClassName() + ").", pathExpressionConstraint, null,
          EMFIssueCodes.LITERAL_OR_COMPUTATION_TYPE_MISMATCH_IN_PATH_EXPRESSION);
    }
  }
}
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

ValueReference valueReference = pathExpressionHead.getDst();
Variable pathExpressionHeadSourceVariable = null;
if (pathExpressionHead.getSrc() != null) {
  ValueReference valueReference = pathExpressionHead.getDst();
  addPositiveVariablesFromValueReference(unnamedRunningVariables, justPositiveUnionFindForVariables, positiveVariables,
      valueReference);
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage

/**
 * Contexts:
 *     PathExpressionHead returns PathExpressionHead
 *
 * Constraint:
 *     (type=Type tail=PathExpressionTail src=VariableReference dst=ValueReference)
 */
protected void sequence_PathExpressionHead(ISerializationContext context, PathExpressionHead semanticObject) {
  if (errorAcceptor != null) {
    if (transientValues.isValueTransient(semanticObject, PatternLanguagePackage.Literals.PATH_EXPRESSION_ELEMENT__TYPE) == ValueTransient.YES)
      errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PatternLanguagePackage.Literals.PATH_EXPRESSION_ELEMENT__TYPE));
    if (transientValues.isValueTransient(semanticObject, PatternLanguagePackage.Literals.PATH_EXPRESSION_ELEMENT__TAIL) == ValueTransient.YES)
      errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PatternLanguagePackage.Literals.PATH_EXPRESSION_ELEMENT__TAIL));
    if (transientValues.isValueTransient(semanticObject, PatternLanguagePackage.Literals.PATH_EXPRESSION_HEAD__SRC) == ValueTransient.YES)
      errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PatternLanguagePackage.Literals.PATH_EXPRESSION_HEAD__SRC));
    if (transientValues.isValueTransient(semanticObject, PatternLanguagePackage.Literals.PATH_EXPRESSION_HEAD__DST) == ValueTransient.YES)
      errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PatternLanguagePackage.Literals.PATH_EXPRESSION_HEAD__DST));
  }
  SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
  feeder.accept(grammarAccess.getPathExpressionHeadAccess().getTypeTypeParserRuleCall_1_0(), semanticObject.getType());
  feeder.accept(grammarAccess.getPathExpressionHeadAccess().getTailPathExpressionTailParserRuleCall_3_0(), semanticObject.getTail());
  feeder.accept(grammarAccess.getPathExpressionHeadAccess().getSrcVariableReferenceParserRuleCall_5_0(), semanticObject.getSrc());
  feeder.accept(grammarAccess.getPathExpressionHeadAccess().getDstValueReferenceParserRuleCall_7_0(), semanticObject.getDst());
  feeder.finish();
}

org.eclipse.incquery.patternlanguage.patternLanguagePathExpressionHeadgetDst

Javadoc

Returns the value of the 'Dst' containment reference.

If the meaning of the 'Dst' containment reference isn't clear, there really should be more of a description here...

Popular methods of PathExpressionHead

  • getSrc
    Returns the value of the 'Src' containment reference. If the meaning of the 'Src' containment refere
  • getTail
  • getType

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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