Java 类org.eclipse.xtext.parsetree.reconstr.IEObjectConsumer 实例源码

项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override   
public IEObjectConsumer tryConsume() {
    if((value = eObjectConsumer.getConsumable("right",false)) == null) return null;
    IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("right");
    if(value instanceof EObject) { // org::eclipse::xtext::impl::RuleCallImpl
        IEObjectConsumer param = createEObjectConsumer((EObject)value);
        if(param.isInstanceOf(grammarAccess.getAndExpressionRule().getType().getClassifier())) {
            type = AssignmentType.PARSER_RULE_CALL;
            element = grammarAccess.getOrExpressionAccess().getRightAndExpressionParserRuleCall_1_2_0(); 
            consumed = obj;
            return param;
        }
    }
    return null;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Guarded_GuardAssignment_1(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new AntlrGrammar_Group(this, this, 0, inst);
        case 1: return new Options_Group(this, this, 1, inst);
        case 2: return new OptionValue_Group(this, this, 2, inst);
        case 3: return new Rule_Group(this, this, 3, inst);
        case 4: return new Parameter_Group(this, this, 4, inst);
        case 5: return new Alternatives_Group(this, this, 5, inst);
        case 6: return new Group_Alternatives(this, this, 6, inst);
        case 7: return new Atom_Alternatives(this, this, 7, inst);
        case 8: return new OtherElement_Alternatives(this, this, 8, inst);
        case 9: return new Guarded_Group(this, this, 9, inst);
        case 10: return new OrExpression_Group(this, this, 10, inst);
        case 11: return new AndExpression_Group(this, this, 11, inst);
        case 12: return new NotExpression_Alternatives(this, this, 12, inst);
        case 13: return new PrimaryExpression_Alternatives(this, this, 13, inst);
        case 14: return new ParenthesizedExpression_Group(this, this, 14, inst);
        case 15: return new ReferenceOrLiteral_NameAssignment(this, this, 15, inst);
        case 16: return new Parenthesized_Group(this, this, 16, inst);
        case 17: return new Predicated_Group(this, this, 17, inst);
        case 18: return new RuleOptions_Alternatives(this, this, 18, inst);
        case 19: return new Literal_Alternatives(this, this, 19, inst);
        case 20: return new RuleCall_Group(this, this, 20, inst);
        case 21: return new Keyword_ValueAssignment(this, this, 21, inst);
        case 22: return new Wildcard_Group(this, this, 22, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public IEObjectConsumer tryConsume() {
    if(getEObject().eClass() != grammarAccess.getReferenceOrLiteralRule().getType().getClassifier())
        return null;
    if(checkForRecursion(ReferenceOrLiteral_NameAssignment.class, eObjectConsumer)) return null;
    return eObjectConsumer;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new OrExpression_Group(this, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new OtherElement_Alternatives(this, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollowerAfterReturn(AbstractToken next,  int actIndex, int index, IEObjectConsumer inst) {
    if(value == inst.getEObject() && !inst.isConsumed()) return null;
    switch(index) {
        case 0: return new RuleOptions_ColonKeyword_0_1(lastRuleCallOrigin, next, actIndex, consumed);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Alternatives_Group_1_1(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new RuleOptions_Alternatives(this, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollowerAfterReturn(AbstractToken next,  int actIndex, int index, IEObjectConsumer inst) {
    if(value == inst.getEObject() && !inst.isConsumed()) return null;
    switch(index) {
        case 0: return new AntlrGrammar_SemicolonKeyword_2(lastRuleCallOrigin, next, actIndex, consumed);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollowerAfterReturn(AbstractToken next,  int actIndex, int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Parenthesized_OPENTerminalRuleCall_0(lastRuleCallOrigin, next, actIndex, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new OtherElement_RightAssignment_3_1_2(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public IEObjectConsumer tryConsume() {
    if(getEObject().eClass() != grammarAccess.getGuardedRule().getType().getClassifier())
        return null;
    if(checkForRecursion(Guarded_Group.class, eObjectConsumer)) return null;
    return eObjectConsumer;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Group_ElementsAssignment_1_1_1(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override   
public IEObjectConsumer tryConsume() {
    if((value = eObjectConsumer.getConsumable("optionValues",true)) == null) return null;
    IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("optionValues");
    if(value instanceof EObject) { // org::eclipse::xtext::impl::RuleCallImpl
        IEObjectConsumer param = createEObjectConsumer((EObject)value);
        if(param.isInstanceOf(grammarAccess.getOptionValueRule().getType().getClassifier())) {
            type = AssignmentType.PARSER_RULE_CALL;
            element = grammarAccess.getOptionsAccess().getOptionValuesOptionValueParserRuleCall_3_0(); 
            consumed = obj;
            return param;
        }
    }
    return null;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new RuleCall_Group_1(lastRuleCallOrigin, this, 0, inst);
        case 1: return new RuleCall_RuleAssignment_0(lastRuleCallOrigin, this, 1, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override   
public IEObjectConsumer tryConsume() {
    if((value = eObjectConsumer.getConsumable("element",true)) == null) return null;
    IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("element");
    if(value instanceof EObject) { // org::eclipse::xtext::impl::RuleCallImpl
        IEObjectConsumer param = createEObjectConsumer((EObject)value);
        if(param.isInstanceOf(grammarAccess.getAtomRule().getType().getClassifier())) {
            type = AssignmentType.PARSER_RULE_CALL;
            element = grammarAccess.getRuleOptionsAccess().getElementAtomParserRuleCall_0_2_0(); 
            consumed = obj;
            return param;
        }
    }
    return null;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Literal_Alternatives(this, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Parenthesized_AlternativesParserRuleCall_1(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override   
public IEObjectConsumer tryConsume() {
    if((value = eObjectConsumer.getConsumable("key",true)) == null) return null;
    IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("key");
    if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getOptionValueAccess().getKeyIDTerminalRuleCall_0_0(), value, null)) {
        type = AssignmentType.TERMINAL_RULE_CALL;
        element = grammarAccess.getOptionValueAccess().getKeyIDTerminalRuleCall_0_0();
        return obj;
    }
    return null;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new OtherElement_Alternatives(this, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new AndExpression_AndExpressionLeftAction_1_0(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public IEObjectConsumer tryConsume() {
    if(getEObject().eClass() != grammarAccess.getRuleCallRule().getType().getClassifier())
        return null;
    if(checkForRecursion(RuleCall_Group.class, eObjectConsumer)) return null;
    return eObjectConsumer;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override   
public IEObjectConsumer tryConsume() {
    if(getEObject().eClass() != grammarAccess.getReferenceOrLiteralRule().getType().getClassifier())
        return null;
    if((value = eObjectConsumer.getConsumable("name",true)) == null) return null;
    IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("name");
    if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getReferenceOrLiteralAccess().getNameQNameParserRuleCall_0(), value, null)) {
        type = AssignmentType.DATATYPE_RULE_CALL;
        element = grammarAccess.getReferenceOrLiteralAccess().getNameQNameParserRuleCall_0();
        return obj;
    }
    return null;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new AndExpression_Group(this, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override   
public IEObjectConsumer tryConsume() {
    if((value = eObjectConsumer.getConsumable("name",true)) == null) return null;
    IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("name");
    if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getRuleAccess().getNameIDTerminalRuleCall_1_0(), value, null)) {
        type = AssignmentType.TERMINAL_RULE_CALL;
        element = grammarAccess.getRuleAccess().getNameIDTerminalRuleCall_1_0();
        return obj;
    }
    return null;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollowerAfterReturn(AbstractToken next,  int actIndex, int index, IEObjectConsumer inst) {
    if(value == inst.getEObject() && !inst.isConsumed()) return null;
    switch(index) {
        case 0: return new Predicated_EqualsSignGreaterThanSignKeyword_4(lastRuleCallOrigin, next, actIndex, consumed);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Atom_Alternatives(this, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollowerAfterReturn(AbstractToken next,  int actIndex, int index, IEObjectConsumer inst) {
    if(value == inst.getEObject() && !inst.isConsumed()) return null;
    switch(index) {
        case 0: return new Rule_LeftSquareBracketKeyword_2_0(lastRuleCallOrigin, next, actIndex, consumed);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Atom_Group_0(lastRuleCallOrigin, this, 0, inst);
        case 1: return new Atom_RuleOptionsParserRuleCall_1(lastRuleCallOrigin, this, 1, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Rule_ParametersAssignment_2_2_1(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Guarded_RightCurlyBracketKeyword_2(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new RuleCall_Group_1_2(lastRuleCallOrigin, this, 0, inst);
        case 1: return new RuleCall_ArgumentsAssignment_1_1(lastRuleCallOrigin, this, 1, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Atom_ElementWithCardinalityElementAction_0_1_0(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new RuleCall_RightSquareBracketKeyword_1_3(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public IEObjectConsumer tryConsume() {
    if(getEObject().eClass() != grammarAccess.getRuleOptionsRule().getType().getClassifier() && 
       getEObject().eClass() != grammarAccess.getRuleOptionsAccess().getSkipAction_1_0().getType().getClassifier())
        return null;
    return eObjectConsumer;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override   
public IEObjectConsumer tryConsume() {
    if((value = eObjectConsumer.getConsumable("right",false)) == null) return null;
    IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("right");
    if(value instanceof EObject) { // org::eclipse::xtext::impl::RuleCallImpl
        IEObjectConsumer param = createEObjectConsumer((EObject)value);
        if(param.isInstanceOf(grammarAccess.getLiteralRule().getType().getClassifier())) {
            type = AssignmentType.PARSER_RULE_CALL;
            element = grammarAccess.getOtherElementAccess().getRightLiteralParserRuleCall_3_1_2_0(); 
            consumed = obj;
            return param;
        }
    }
    return null;
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollowerAfterReturn(AbstractToken next,  int actIndex, int index, IEObjectConsumer inst) {
    if(value == inst.getEObject() && !inst.isConsumed()) return null;
    switch(index) {
        case 0: return new Rule_ColonKeyword_3(lastRuleCallOrigin, next, actIndex, consumed);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollowerAfterReturn(AbstractToken next,  int actIndex, int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new ParenthesizedExpression_OPENTerminalRuleCall_0(lastRuleCallOrigin, next, actIndex, inst);
        default: return null;
    }   
}
项目:xtext-extras    文件:SimpleAntlrParsetreeConstructor.java   
@Override
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
    switch(index) {
        case 0: return new Parameter_NameAssignment_1(lastRuleCallOrigin, this, 0, inst);
        default: return null;
    }   
}