org.eclipse.xtext.xtype.XtypePackage的实例源码

项目:xtext-extras    文件DefaultImportsConfiguration.java   
@Override
public String getLegacyImportSyntax(XImportDeclaration importDeclaration) {
    List<INode> list = NodeModelUtils.findNodesForFeature(importDeclaration,XtypePackage.Literals.XIMPORT_DECLaraTION__IMPORTED_TYPE);
    if (list.isEmpty()) {
        return null;
    }
    INode singleNode = list.get(0);
    if (singleNode.getText().indexOf('$') < 0) {
        return null;
    }
    StringBuilder sb = new StringBuilder();
    for(ILeafNode node: singleNode.getLeafNodes()) {
        if (!node.isHidden()) {
            sb.append(node.getText().replace("^",""));
        }
    }
    return sb.toString();
}
项目:xtext-extras    文件DefaultImportsConfiguration.java   
protected boolean internalFindpathToImportSection(LinkedList<EObject> pathToImportSection,Set<ParserRule> seenRules,EObject ruleOrRuleCall) {
    ParserRule rule = null;
    EClassifier returnType = null;
    if(ruleOrRuleCall instanceof ParserRule) 
        rule = (ParserRule) ruleOrRuleCall;
    else 
        rule = (ParserRule) ((RuleCall) ruleOrRuleCall).getRule();
    if(seenRules.contains(rule))
        return false;
    seenRules.add(rule);
    pathToImportSection.addLast(ruleOrRuleCall);
    returnType = rule.getType().getClassifier();
    if(returnType instanceof EClass 
            && XtypePackage.Literals.XIMPORT_SECTION.isSuperTypeOf((EClass) returnType)) {
        return true;
    }
    for(RuleCall containedRuleCall: GrammarUtil.containedRuleCalls(rule)) {
        if(containedRuleCall.getRule() instanceof ParserRule) 
            if(internalFindpathToImportSection(pathToImportSection,seenRules,containedRuleCall)) {
                return true;
            }
    }
    pathToImportSection.removeLast();
    return false;
}
项目:xtext-extras    文件XFunctionTypeRefImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setReturnType(JvmTypeReference newReturnType)
{
    if (newReturnType != returnType)
    {
        NotificationChain msgs = null;
        if (returnType != null)
            msgs = ((InternalEObject)returnType).eInverseRemove(this,EOPPOSITE_FEATURE_BASE - XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE,null,msgs);
        if (newReturnType != null)
            msgs = ((InternalEObject)newReturnType).eInverseAdd(this,msgs);
        msgs = basicSetReturnType(newReturnType,msgs);
        if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationrequired())
        eNotify(new ENotificationImpl(this,Notification.SET,XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE,newReturnType,newReturnType));
}
项目:xtext-extras    文件XFunctionTypeRefImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID,boolean resolve,boolean coreType)
{
    switch (featureID)
    {
        case XtypePackage.XFUNCTION_TYPE_REF__ParaM_TYPES:
            return getParamTypes();
        case XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE:
            return getReturnType();
        case XtypePackage.XFUNCTION_TYPE_REF__TYPE:
            if (resolve) return getType();
            return basicGetType();
        case XtypePackage.XFUNCTION_TYPE_REF__INSTANCE_CONTEXT:
            return isinstanceContext();
    }
    return super.eGet(featureID,resolve,coreType);
}
项目:xtext-extras    文件XFunctionTypeRefImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID,Object newValue)
{
    switch (featureID)
    {
        case XtypePackage.XFUNCTION_TYPE_REF__ParaM_TYPES:
            getParamTypes().clear();
            getParamTypes().addAll((Collection<? extends JvmTypeReference>)newValue);
            return;
        case XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE:
            setReturnType((JvmTypeReference)newValue);
            return;
        case XtypePackage.XFUNCTION_TYPE_REF__TYPE:
            setType((JvmType)newValue);
            return;
        case XtypePackage.XFUNCTION_TYPE_REF__INSTANCE_CONTEXT:
            setInstanceContext((Boolean)newValue);
            return;
    }
    super.eSet(featureID,newValue);
}
项目:xtext-extras    文件XFunctionTypeRefImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID)
{
    switch (featureID)
    {
        case XtypePackage.XFUNCTION_TYPE_REF__ParaM_TYPES:
            getParamTypes().clear();
            return;
        case XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE:
            setReturnType((JvmTypeReference)null);
            return;
        case XtypePackage.XFUNCTION_TYPE_REF__TYPE:
            setType((JvmType)null);
            return;
        case XtypePackage.XFUNCTION_TYPE_REF__INSTANCE_CONTEXT:
            setInstanceContext(INSTANCE_CONTEXT_EDEFAULT);
            return;
    }
    super.eUnset(featureID);
}
项目:xtext-extras    文件XFunctionTypeRefImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID)
{
    switch (featureID)
    {
        case XtypePackage.XFUNCTION_TYPE_REF__ParaM_TYPES:
            return paramTypes != null && !paramTypes.isEmpty();
        case XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE:
            return returnType != null;
        case XtypePackage.XFUNCTION_TYPE_REF__TYPE:
            return type != null;
        case XtypePackage.XFUNCTION_TYPE_REF__INSTANCE_CONTEXT:
            return instanceContext != INSTANCE_CONTEXT_EDEFAULT;
    }
    return super.eIsSet(featureID);
}
项目:xtext-extras    文件XImportDeclarationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID,boolean coreType)
{
    switch (featureID)
    {
        case XtypePackage.XIMPORT_DECLaraTION__WILDCARD:
            return isWildcard();
        case XtypePackage.XIMPORT_DECLaraTION__EXTENSION:
            return isExtension();
        case XtypePackage.XIMPORT_DECLaraTION__STATIC:
            return isstatic();
        case XtypePackage.XIMPORT_DECLaraTION__IMPORTED_TYPE:
            if (resolve) return getImportedType();
            return basicGetImportedType();
        case XtypePackage.XIMPORT_DECLaraTION__MEMBER_NAME:
            return getMemberName();
        case XtypePackage.XIMPORT_DECLaraTION__IMPORTED_NAMESPACE:
            return getImportednamespace();
    }
    return super.eGet(featureID,coreType);
}
项目:xtext-extras    文件XImportDeclarationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID)
{
    switch (featureID)
    {
        case XtypePackage.XIMPORT_DECLaraTION__WILDCARD:
            return wildcard != WILDCARD_EDEFAULT;
        case XtypePackage.XIMPORT_DECLaraTION__EXTENSION:
            return extension != EXTENSION_EDEFAULT;
        case XtypePackage.XIMPORT_DECLaraTION__STATIC:
            return static_ != STATIC_EDEFAULT;
        case XtypePackage.XIMPORT_DECLaraTION__IMPORTED_TYPE:
            return importedType != null;
        case XtypePackage.XIMPORT_DECLaraTION__MEMBER_NAME:
            return MEMBER_NAME_EDEFAULT == null ? memberName != null : !MEMBER_NAME_EDEFAULT.equals(memberName);
        case XtypePackage.XIMPORT_DECLaraTION__IMPORTED_NAMESPACE:
            return IMPORTED_NAMESPACE_EDEFAULT == null ? importednamespace != null : !IMPORTED_NAMESPACE_EDEFAULT.equals(importednamespace);
    }
    return super.eIsSet(featureID);
}
项目:xtext-extras    文件PureXbasePackageImpl.java   
/**
 * Creates,registers,and initializes the <b>Package</b> for this model,and for any others upon which it depends.
 * 
 * <p>This method is used to initialize {@link PureXbasePackage#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead,they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @see #createPackageContents()
 * @see #initializePackageContents()
 * @generated
 */
public static PureXbasePackage init()
{
  if (isInited) return (PureXbasePackage)EPackage.Registry.INSTANCE.getEPackage(PureXbasePackage.eNS_URI);

  // Obtain or create and register package
  PureXbasePackageImpl thePureXbasePackage = (PureXbasePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PureXbasePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new PureXbasePackageImpl());

  isInited = true;

  // Initialize simple dependencies
  XbasePackage.eINSTANCE.eClass();
  XtypePackage.eINSTANCE.eClass();

  // Create package Meta-data objects
  thePureXbasePackage.createPackageContents();

  // Initialize created Meta-data
  thePureXbasePackage.initializePackageContents();

  // Mark Meta-data to indicate it can't be changed
  thePureXbasePackage.freeze();


  // Update the registry and return the package
  EPackage.Registry.INSTANCE.put(PureXbasePackage.eNS_URI,thePureXbasePackage);
  return thePureXbasePackage;
}
项目:xtext-extras    文件PureXbasePackageImpl.java   
/**
 * Complete the initialization of the package and its Meta-model.  This
 * method is guarded to have no affect on any invocation but its first.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void initializePackageContents()
{
  if (isInitialized) return;
  isInitialized = true;

  // Initialize package
  setName(eNAME);
  setnsprefix(eNS_PREFIX);
  setNsURI(eNS_URI);

  // Obtain other dependent packages
  XtypePackage theXtypePackage = (XtypePackage)EPackage.Registry.INSTANCE.getEPackage(XtypePackage.eNS_URI);
  XbasePackage theXbasePackage = (XbasePackage)EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI);

  // Create type parameters

  // Set bounds for type parameters

  // Add supertypes to classes

  // Initialize classes and features; add operations and parameters
  initEClass(modelEClass,Model.class,"Model",!IS_ABSTRACT,!IS_INTERFACE,IS_GENERATED_INSTANCE_CLASS);
  initEReference(getModel_ImportSection(),theXtypePackage.getXImportSection(),"importSection",1,!IS_TRANSIENT,!IS_VOLATILE,IS_CHANGEABLE,IS_COMPOSITE,!IS_RESOLVE_PROXIES,!IS_UNSETTABLE,IS_UNIQUE,!IS_DERIVED,IS_ORDERED);
  initEReference(getModel_Block(),theXbasePackage.getXBlockExpression(),"block",IS_ORDERED);

  // Create resource
  createResource(eNS_URI);
}
项目:xtext-extras    文件XbaseValidator.java   
@Check
public void checkDeprecated(XImportDeclaration decl) {
    if (!isIgnored(DEPRECATED_MEMBER_REFERENCE)) {
        JvmType jvmType = decl.getImportedType();
        checkDeprecated(
                jvmType,decl,XtypePackage.Literals.XIMPORT_DECLaraTION__IMPORTED_TYPE);
    }
}
项目:xtext-extras    文件XImportDeclarationImplCustom.java   
@Override
public String getImportedTypeName() {
    String result = getImportednamespace();
    if (result == null) {
        if (this.eIsSet(XtypePackage.Literals.XIMPORT_DECLaraTION__IMPORTED_TYPE)) {
            JvmType unresolvedType = (JvmType) this.eGet(XtypePackage.Literals.XIMPORT_DECLaraTION__IMPORTED_TYPE,false);
            if(!unresolvedType.eIsProxy())
                return unresolvedType.getIdentifier();
            List<INode> list = NodeModelUtils.findNodesForFeature(this,XtypePackage.Literals.XIMPORT_DECLaraTION__IMPORTED_TYPE);
            StringBuilder sb = new StringBuilder();
            for (INode iNode : list) {
                sb.append(NodeModelUtils.getTokenText(iNode).replace("^",""));
            }
            result = sb.toString().replace(" ","");
            if (isstatic()) {
                return trim(result,1);
            }
            return result;
        }
        return null;
    }
    if (isWildcard()) {
        return trim(result,2);
    }
    return result;
}
项目:xtext-extras    文件XbasePackageImpl.java   
/**
 * Creates,and for any others upon which it depends.
 * 
 * <p>This method is used to initialize {@link XbasePackage#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead,they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @see #createPackageContents()
 * @see #initializePackageContents()
 * @generated
 */
public static XbasePackage init()
{
    if (isInited) return (XbasePackage)EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI);

    // Obtain or create and register package
    XbasePackageImpl theXbasePackage = (XbasePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof XbasePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new XbasePackageImpl());

    isInited = true;

    // Initialize simple dependencies
    TypesPackage.eINSTANCE.eClass();

    // Obtain or create and register interdependencies
    XAnnotationsPackageImpl theXAnnotationsPackage = (XAnnotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XAnnotationsPackage.eNS_URI) instanceof XAnnotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XAnnotationsPackage.eNS_URI) : XAnnotationsPackage.eINSTANCE);
    XtypePackageImpl theXtypePackage = (XtypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XtypePackage.eNS_URI) instanceof XtypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XtypePackage.eNS_URI) : XtypePackage.eINSTANCE);

    // Create package Meta-data objects
    theXbasePackage.createPackageContents();
    theXAnnotationsPackage.createPackageContents();
    theXtypePackage.createPackageContents();

    // Initialize created Meta-data
    theXbasePackage.initializePackageContents();
    theXAnnotationsPackage.initializePackageContents();
    theXtypePackage.initializePackageContents();

    // Mark Meta-data to indicate it can't be changed
    theXbasePackage.freeze();


    // Update the registry and return the package
    EPackage.Registry.INSTANCE.put(XbasePackage.eNS_URI,theXbasePackage);
    return theXbasePackage;
}
项目:xtext-extras    文件XAnnotationsPackageImpl.java   
/**
 * Creates,and for any others upon which it depends.
 * 
 * <p>This method is used to initialize {@link XAnnotationsPackage#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead,they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @see #createPackageContents()
 * @see #initializePackageContents()
 * @generated
 */
public static XAnnotationsPackage init()
{
    if (isInited) return (XAnnotationsPackage)EPackage.Registry.INSTANCE.getEPackage(XAnnotationsPackage.eNS_URI);

    // Obtain or create and register package
    XAnnotationsPackageImpl theXAnnotationsPackage = (XAnnotationsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof XAnnotationsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new XAnnotationsPackageImpl());

    isInited = true;

    // Initialize simple dependencies
    TypesPackage.eINSTANCE.eClass();

    // Obtain or create and register interdependencies
    XtypePackageImpl theXtypePackage = (XtypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XtypePackage.eNS_URI) instanceof XtypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XtypePackage.eNS_URI) : XtypePackage.eINSTANCE);
    XbasePackageImpl theXbasePackage = (XbasePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI) instanceof XbasePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI) : XbasePackage.eINSTANCE);

    // Create package Meta-data objects
    theXAnnotationsPackage.createPackageContents();
    theXtypePackage.createPackageContents();
    theXbasePackage.createPackageContents();

    // Initialize created Meta-data
    theXAnnotationsPackage.initializePackageContents();
    theXtypePackage.initializePackageContents();
    theXbasePackage.initializePackageContents();

    // Mark Meta-data to indicate it can't be changed
    theXAnnotationsPackage.freeze();


    // Update the registry and return the package
    EPackage.Registry.INSTANCE.put(XAnnotationsPackage.eNS_URI,theXAnnotationsPackage);
    return theXAnnotationsPackage;
}
项目:xtext-extras    文件XFunctionTypeRefImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<JvmTypeReference> getParamTypes()
{
    if (paramTypes == null)
    {
        paramTypes = new EObjectContainmentEList<JvmTypeReference>(JvmTypeReference.class,this,XtypePackage.XFUNCTION_TYPE_REF__ParaM_TYPES);
    }
    return paramTypes;
}
项目:xtext-extras    文件XFunctionTypeRefImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetReturnType(JvmTypeReference newReturnType,NotificationChain msgs)
{
    JvmTypeReference oldReturnType = returnType;
    returnType = newReturnType;
    if (eNotificationrequired())
    {
        ENotificationImpl notification = new ENotificationImpl(this,oldReturnType,newReturnType);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:xtext-extras    文件XFunctionTypeRefImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setType(JvmType newType)
{
    JvmType oldType = type;
    type = newType;
    if (eNotificationrequired())
        eNotify(new ENotificationImpl(this,XtypePackage.XFUNCTION_TYPE_REF__TYPE,oldType,type));
}
项目:xtext-extras    文件XFunctionTypeRefImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setInstanceContext(boolean newInstanceContext)
{
    boolean oldInstanceContext = instanceContext;
    instanceContext = newInstanceContext;
    if (eNotificationrequired())
        eNotify(new ENotificationImpl(this,XtypePackage.XFUNCTION_TYPE_REF__INSTANCE_CONTEXT,oldInstanceContext,instanceContext));
}
项目:xtext-extras    文件XFunctionTypeRefImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd,int featureID,NotificationChain msgs)
{
    switch (featureID)
    {
        case XtypePackage.XFUNCTION_TYPE_REF__ParaM_TYPES:
            return ((InternalEList<?>)getParamTypes()).basicRemove(otherEnd,msgs);
        case XtypePackage.XFUNCTION_TYPE_REF__RETURN_TYPE:
            return basicSetReturnType(null,msgs);
    }
    return super.eInverseRemove(otherEnd,featureID,msgs);
}
项目:xtext-extras    文件XImportSectionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<XImportDeclaration> getImportDeclarations()
{
    if (importDeclarations == null)
    {
        importDeclarations = new EObjectContainmentEList<XImportDeclaration>(XImportDeclaration.class,XtypePackage.XIMPORT_SECTION__IMPORT_DECLaraTIONS);
    }
    return importDeclarations;
}
项目:xtext-extras    文件XImportSectionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd,NotificationChain msgs)
{
    switch (featureID)
    {
        case XtypePackage.XIMPORT_SECTION__IMPORT_DECLaraTIONS:
            return ((InternalEList<?>)getImportDeclarations()).basicRemove(otherEnd,msgs);
}
项目:xtext-extras    文件XImportSectionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID,boolean coreType)
{
    switch (featureID)
    {
        case XtypePackage.XIMPORT_SECTION__IMPORT_DECLaraTIONS:
            return getImportDeclarations();
    }
    return super.eGet(featureID,coreType);
}
项目:xtext-extras    文件XImportSectionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID,Object newValue)
{
    switch (featureID)
    {
        case XtypePackage.XIMPORT_SECTION__IMPORT_DECLaraTIONS:
            getImportDeclarations().clear();
            getImportDeclarations().addAll((Collection<? extends XImportDeclaration>)newValue);
            return;
    }
    super.eSet(featureID,newValue);
}
项目:xtext-extras    文件XImportSectionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID)
{
    switch (featureID)
    {
        case XtypePackage.XIMPORT_SECTION__IMPORT_DECLaraTIONS:
            getImportDeclarations().clear();
            return;
    }
    super.eUnset(featureID);
}
项目:xtext-extras    文件XImportSectionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID)
{
    switch (featureID)
    {
        case XtypePackage.XIMPORT_SECTION__IMPORT_DECLaraTIONS:
            return importDeclarations != null && !importDeclarations.isEmpty();
    }
    return super.eIsSet(featureID);
}
项目:xtext-extras    文件XComputedTypeReferenceImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setTypeProvider(IJvmTypeReferenceProvider newTypeProvider)
{
    IJvmTypeReferenceProvider oldTypeProvider = typeProvider;
    typeProvider = newTypeProvider;
    if (eNotificationrequired())
        eNotify(new ENotificationImpl(this,XtypePackage.XCOmpuTED_TYPE_REFERENCE__TYPE_PROVIDER,oldTypeProvider,typeProvider));
}
项目:xtext-extras    文件XComputedTypeReferenceImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID,boolean coreType)
{
    switch (featureID)
    {
        case XtypePackage.XCOmpuTED_TYPE_REFERENCE__TYPE_PROVIDER:
            return getTypeProvider();
    }
    return super.eGet(featureID,coreType);
}
项目:xtext-extras    文件XComputedTypeReferenceImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID,Object newValue)
{
    switch (featureID)
    {
        case XtypePackage.XCOmpuTED_TYPE_REFERENCE__TYPE_PROVIDER:
            setTypeProvider((IJvmTypeReferenceProvider)newValue);
            return;
    }
    super.eSet(featureID,newValue);
}
项目:xtext-extras    文件XComputedTypeReferenceImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID)
{
    switch (featureID)
    {
        case XtypePackage.XCOmpuTED_TYPE_REFERENCE__TYPE_PROVIDER:
            setTypeProvider(TYPE_PROVIDER_EDEFAULT);
            return;
    }
    super.eUnset(featureID);
}
项目:xtext-extras    文件XComputedTypeReferenceImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID)
{
    switch (featureID)
    {
        case XtypePackage.XCOmpuTED_TYPE_REFERENCE__TYPE_PROVIDER:
            return TYPE_PROVIDER_EDEFAULT == null ? typeProvider != null : !TYPE_PROVIDER_EDEFAULT.equals(typeProvider);
    }
    return super.eIsSet(featureID);
}
项目:xtext-extras    文件XImportDeclarationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setWildcard(boolean newWildcard)
{
    boolean oldWildcard = wildcard;
    wildcard = newWildcard;
    if (eNotificationrequired())
        eNotify(new ENotificationImpl(this,XtypePackage.XIMPORT_DECLaraTION__WILDCARD,oldWildcard,wildcard));
}
项目:xtext-extras    文件XImportDeclarationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setExtension(boolean newExtension)
{
    boolean oldExtension = extension;
    extension = newExtension;
    if (eNotificationrequired())
        eNotify(new ENotificationImpl(this,XtypePackage.XIMPORT_DECLaraTION__EXTENSION,oldExtension,extension));
}
项目:xtext-extras    文件XImportDeclarationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setStatic(boolean newStatic)
{
    boolean oldStatic = static_;
    static_ = newStatic;
    if (eNotificationrequired())
        eNotify(new ENotificationImpl(this,XtypePackage.XIMPORT_DECLaraTION__STATIC,oldStatic,static_));
}
项目:xtext-extras    文件XImportDeclarationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setImportedType(JvmDeclaredType newImportedType)
{
    JvmDeclaredType oldImportedType = importedType;
    importedType = newImportedType;
    if (eNotificationrequired())
        eNotify(new ENotificationImpl(this,XtypePackage.XIMPORT_DECLaraTION__IMPORTED_TYPE,oldImportedType,importedType));
}
项目:xtext-extras    文件XImportDeclarationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setMemberName(String newMemberName)
{
    String oldMemberName = memberName;
    memberName = newMemberName;
    if (eNotificationrequired())
        eNotify(new ENotificationImpl(this,XtypePackage.XIMPORT_DECLaraTION__MEMBER_NAME,oldMemberName,memberName));
}
项目:xtext-extras    文件XImportDeclarationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setImportednamespace(String newImportednamespace)
{
    String oldImportednamespace = importednamespace;
    importednamespace = newImportednamespace;
    if (eNotificationrequired())
        eNotify(new ENotificationImpl(this,XtypePackage.XIMPORT_DECLaraTION__IMPORTED_NAMESPACE,oldImportednamespace,importednamespace));
}
项目:xtext-extras    文件XImportDeclarationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID,Object newValue)
{
    switch (featureID)
    {
        case XtypePackage.XIMPORT_DECLaraTION__WILDCARD:
            setWildcard((Boolean)newValue);
            return;
        case XtypePackage.XIMPORT_DECLaraTION__EXTENSION:
            setExtension((Boolean)newValue);
            return;
        case XtypePackage.XIMPORT_DECLaraTION__STATIC:
            setStatic((Boolean)newValue);
            return;
        case XtypePackage.XIMPORT_DECLaraTION__IMPORTED_TYPE:
            setImportedType((JvmDeclaredType)newValue);
            return;
        case XtypePackage.XIMPORT_DECLaraTION__MEMBER_NAME:
            setMemberName((String)newValue);
            return;
        case XtypePackage.XIMPORT_DECLaraTION__IMPORTED_NAMESPACE:
            setImportednamespace((String)newValue);
            return;
    }
    super.eSet(featureID,newValue);
}
项目:xtext-extras    文件XImportDeclarationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID)
{
    switch (featureID)
    {
        case XtypePackage.XIMPORT_DECLaraTION__WILDCARD:
            setWildcard(WILDCARD_EDEFAULT);
            return;
        case XtypePackage.XIMPORT_DECLaraTION__EXTENSION:
            setExtension(EXTENSION_EDEFAULT);
            return;
        case XtypePackage.XIMPORT_DECLaraTION__STATIC:
            setStatic(STATIC_EDEFAULT);
            return;
        case XtypePackage.XIMPORT_DECLaraTION__IMPORTED_TYPE:
            setImportedType((JvmDeclaredType)null);
            return;
        case XtypePackage.XIMPORT_DECLaraTION__MEMBER_NAME:
            setMemberName(MEMBER_NAME_EDEFAULT);
            return;
        case XtypePackage.XIMPORT_DECLaraTION__IMPORTED_NAMESPACE:
            setImportednamespace(IMPORTED_NAMESPACE_EDEFAULT);
            return;
    }
    super.eUnset(featureID);
}
项目:xtext-extras    文件XtypePackageImpl.java   
/**
 * Creates,and for any others upon which it depends.
 * 
 * <p>This method is used to initialize {@link XtypePackage#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead,they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @see #createPackageContents()
 * @see #initializePackageContents()
 * @generated
 */
public static XtypePackage init()
{
    if (isInited) return (XtypePackage)EPackage.Registry.INSTANCE.getEPackage(XtypePackage.eNS_URI);

    // Obtain or create and register package
    XtypePackageImpl theXtypePackage = (XtypePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof XtypePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new XtypePackageImpl());

    isInited = true;

    // Initialize simple dependencies
    TypesPackage.eINSTANCE.eClass();

    // Obtain or create and register interdependencies
    XAnnotationsPackageImpl theXAnnotationsPackage = (XAnnotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XAnnotationsPackage.eNS_URI) instanceof XAnnotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XAnnotationsPackage.eNS_URI) : XAnnotationsPackage.eINSTANCE);
    XbasePackageImpl theXbasePackage = (XbasePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI) instanceof XbasePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI) : XbasePackage.eINSTANCE);

    // Create package Meta-data objects
    theXtypePackage.createPackageContents();
    theXAnnotationsPackage.createPackageContents();
    theXbasePackage.createPackageContents();

    // Initialize created Meta-data
    theXtypePackage.initializePackageContents();
    theXAnnotationsPackage.initializePackageContents();
    theXbasePackage.initializePackageContents();

    // Mark Meta-data to indicate it can't be changed
    theXtypePackage.freeze();


    // Update the registry and return the package
    EPackage.Registry.INSTANCE.put(XtypePackage.eNS_URI,theXtypePackage);
    return theXtypePackage;
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...