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

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

Best Java code snippets using org.eclipse.incquery.patternlanguage.patternLanguage.PathExpressionHead.getTail (Showing top 7 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.emf

public static EClassifier calculateExpressionType(PathExpressionHead head) throws ResolutionException {
  if (head.getTail() == null) {
    throw new ResolutionException(NOT_AN_ENUMERATION_REFERENCE_ERROR);
  }
  return calculateExpressionType(head.getTail());
}
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

public static EEnum calculateEnumerationType(PathExpressionHead head) throws ResolutionException {
  if (head.getTail() == null) {
    throw new ResolutionException(NOT_AN_ENUMERATION_REFERENCE_ERROR);
  }
  return calculateEnumerationType(head.getTail());
}
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

PathExpressionHead pathExpressionHead = pathExpressionConstraint.getHead();
Map<PathExpressionTail, EStructuralFeature> tailFeatureMap = emfTypeProvider
    .getAllFeaturesFromPathExpressionTail(pathExpressionHead.getTail());
for (Entry<PathExpressionTail, EStructuralFeature> tail : tailFeatureMap.entrySet()) {
  EStructuralFeature feature = tail.getValue();
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

PathExpressionTail currentTail = head.getTail();
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

final VariableReference secondVariableReference = ((VariableValue) valueReference).getValue();
if (isEqualVariables(variable, secondVariableReference)) {
  Type type = getTypeFromPathExpressionTail(pathExpressionHead.getTail());
  classifier = getClassifierForType(type);
  if (classifier != null) {
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

/**
 * 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.patternLanguagePathExpressionHeadgetTail

Popular methods of PathExpressionHead

  • getDst
    Returns the value of the 'Dst' containment reference. If the meaning of the 'Dst' containment refere
  • getSrc
    Returns the value of the 'Src' containment reference. If the meaning of the 'Src' containment refere
  • 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