Examples of XAnnotation


Examples of org.eclipse.xtext.xbase.annotations.xAnnotations.XAnnotation

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetAnnotation(XAnnotation newAnnotation, NotificationChain msgs)
  {
    XAnnotation oldAnnotation = annotation;
    annotation = newAnnotation;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GuiceModulesPackage.KEY_AST__ANNOTATION, oldAnnotation, newAnnotation);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.xtext.xbase.annotations.xAnnotations.XAnnotation

              };
              JvmOperation _method = GuiceModulesJvmModelInferrer.this.builder.toMethod(binding, _syntheticToInstanceName, _type, _function_1);
              GuiceModulesJvmModelInferrer.this.builder.<JvmOperation>operator_add(_members_1, _method);
            }
            KeyAST _to = binding.getTo();
            XAnnotation _annotation = null;
            if (_to!=null) {
              _annotation=_to.getAnnotation();
            }
            boolean _notEquals_1 = (!Objects.equal(_annotation, null));
            if (_notEquals_1) {
              EList<JvmMember> _members_2 = it.getMembers();
              KeyAST _to_1 = binding.getTo();
              String _syntheticName = GuiceModulesJvmModelInferrer.this.syntheticName(_to_1);
              KeyAST _to_2 = binding.getTo();
              JvmTypeReference _type_1 = _to_2.getType();
              final Procedure1<JvmField> _function_2 = new Procedure1<JvmField>() {
                public void apply(final JvmField it) {
                  KeyAST _to = binding.getTo();
                  XAnnotation _annotation = _to.getAnnotation();
                  GuiceModulesJvmModelInferrer.this.builder.addAnnotation(it, _annotation);
                  it.setVisibility(JvmVisibility.PRIVATE);
                }
              };
              JvmField _field_1 = GuiceModulesJvmModelInferrer.this.builder.toField(binding, _syntheticName, _type_1, _function_2);
              GuiceModulesJvmModelInferrer.this.builder.<JvmField>operator_add(_members_2, _field_1);
            }
            KeyAST _from_1 = binding.getFrom();
            XAnnotation _annotation_1 = _from_1.getAnnotation();
            boolean _notEquals_2 = (!Objects.equal(_annotation_1, null));
            if (_notEquals_2) {
              EList<JvmMember> _members_3 = it.getMembers();
              KeyAST _from_2 = binding.getFrom();
              String _syntheticName_1 = GuiceModulesJvmModelInferrer.this.syntheticName(_from_2);
              KeyAST _from_3 = binding.getFrom();
              JvmTypeReference _type_2 = _from_3.getType();
              final Procedure1<JvmField> _function_3 = new Procedure1<JvmField>() {
                public void apply(final JvmField it) {
                  KeyAST _from = binding.getFrom();
                  XAnnotation _annotation = _from.getAnnotation();
                  GuiceModulesJvmModelInferrer.this.builder.addAnnotation(it, _annotation);
                  it.setVisibility(JvmVisibility.PRIVATE);
                }
              };
              JvmField _field_2 = GuiceModulesJvmModelInferrer.this.builder.toField(binding, _syntheticName_1, _type_2, _function_3);
View Full Code Here

Examples of org.eclipse.xtext.xbase.annotations.xAnnotations.XAnnotation

        _builder.append("<");
        JvmTypeReference _type = it.getType();
        _builder.append(_type, "");
        _builder.append(">(){}");
        {
          XAnnotation _annotation = it.getAnnotation();
          boolean _notEquals = (!Objects.equal(_annotation, null));
          if (_notEquals) {
            _builder.append(", getClass().getDeclaredField(\"");
            String _syntheticName = GuiceModulesJvmModelInferrer.this.syntheticName(it);
            _builder.append(_syntheticName, "");
View Full Code Here

Examples of xscript.runtime.XAnnotation

    super(inputStream.readUTF());
    parent = declaringClass;
    modifier = inputStream.readUnsignedShort();
    annotations = new XAnnotation[inputStream.readUnsignedByte()];
    for(int i=0; i<annotations.length; i++){
      annotations[i] = new XAnnotation(inputStream);
    }
    (returnType = XClassPtr.load(inputStream)).getXClass(declaringClass.getVirtualMachine());
    int numParam = inputStream.readUnsignedByte();
    paramAnnotations = new XAnnotation[numParam][];
    params = new XClassPtr[numParam];
    for(int i=0; i<numParam; i++){
      XAnnotation[] annotations = new XAnnotation[inputStream.readUnsignedByte()];
      for(int j=0; j<annotations.length; j++){
        annotations[j] = new XAnnotation(inputStream);
      }
      paramAnnotations[i] = annotations;
      (params[i] = XClassPtr.load(inputStream)).getXClass(declaringClass.getVirtualMachine());
    }
    mThrows = new XClassPtr[inputStream.readUnsignedByte()];
View Full Code Here

Examples of xscript.runtime.XAnnotation

        }else{
          XChecks.checkModifier(this, modifier, OUTERMODIFIER);
        }
        annotations = new XAnnotation[inputStream.readUnsignedByte()];
        for(int i=0; i<annotations.length; i++){
          annotations[i] = new XAnnotation(inputStream);
        }
        int childCount = inputStream.readUnsignedByte();
        for(int i=0; i<childCount; i++){
          XClass xClass = new XClass(virtualMachine, inputStream.readUTF());
          super.addChild(xClass);
View Full Code Here

Examples of xscript.runtime.XAnnotation

    super(inputStream.readUTF());
    parent = declaringClass;
    modifier = inputStream.readUnsignedShort();
    annotations = new XAnnotation[inputStream.readUnsignedByte()];
    for(int i=0; i<annotations.length; i++){
      annotations[i] = new XAnnotation(inputStream);
    }
    (type = XClassPtr.load(inputStream)).getXClass(declaringClass.getVirtualMachine());
    if(XModifier.isStatic(modifier)){
      declaringClass.getStaticFieldIndex(getSizeInObject());
      XChecks.checkModifier(declaringClass, modifier, STATICALLOWEDMODIFIFER);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.