當前位置: 首頁>>代碼示例>>Java>>正文


Java ISynNavigable類代碼示例

本文整理匯總了Java中org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable的典型用法代碼示例。如果您正苦於以下問題:Java ISynNavigable類的具體用法?Java ISynNavigable怎麽用?Java ISynNavigable使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ISynNavigable類屬於org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider包,在下文中一共展示了ISynNavigable類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: emit_ParenthesizedElement_LeftParenthesisKeyword_0_a

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
@Override
protected void emit_ParenthesizedElement_LeftParenthesisKeyword_0_a(EObject semanticObject, ISynNavigable transition,
		List<INode> nodes) {
	if (semanticObject instanceof CompoundElement) {
		CompoundElement ele = (CompoundElement) semanticObject;
		if (!Strings.isNullOrEmpty(ele.getCardinality()) && ele.getElements().size() > 1) {
			Keyword kw = grammarAccess.getParenthesizedElementAccess().getLeftParenthesisKeyword_0();
			acceptUnassignedKeyword(kw, kw.getValue(), nodes == null || nodes.isEmpty() ? null : (ILeafNode) nodes.get(0));
		}
	}
	super.emit_ParenthesizedCondition_LeftParenthesisKeyword_0_a(semanticObject, transition, nodes);
}
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:13,代碼來源:CardinalityAwareSyntacticSequencer.java

示例2: navigateToAbsorber

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
protected ISynAbsorberState navigateToAbsorber(ISynFollowerOwner fromState, INode fromNode, INode toNode,
		RuleCallStack stack) {
	if (fromState instanceof ISynAbsorberState)
		return (ISynAbsorberState) fromState;
	if (fromState instanceof ISynNavigable) {
		ISynNavigable fromEmitter = (ISynNavigable) fromState;
		//			RCStack back = stack.clone();
		if (fromEmitter.hasEmitters()) {
			List<ISynState> path = fromEmitter.getShortestStackpruningPathToAbsorber(stack);
			accept(fromNode, path, stack);
		}
		return fromEmitter.getTarget();
	}
	throw new IllegalStateException();
}
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:16,代碼來源:AbstractSyntacticSequencer.java

示例3: emit_MandatoryManyTransition_KW1ParserRuleCall_1_p

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Syntax: KW1+
 */
@Override
protected void emit_MandatoryManyTransition_KW1ParserRuleCall_1_p(EObject semanticObject, ISynNavigable transition,
		List<INode> nodes) {
	ICompositeNode node = (ICompositeNode) nodes.get(0);
	acceptUnassignedDatatype(ga.getMandatoryManyTransitionAccess().getKW1ParserRuleCall_1(), "matched 4", node);
}
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:10,代碼來源:SyntacticSequencerTestLanguageSyntacticSequencer.java

示例4: createUnexpectedEmitterDiagnostic

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
@Override
public ISerializationDiagnostic createUnexpectedEmitterDiagnostic(ISynNavigable currentState,
		AbstractElement target, RuleCallStack stack) {
	return new SerializationDiagnostic(UNEXPECTED_EMITTER_DIAGNOSTIC, null, target, null, null);
}
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:6,代碼來源:SyntacticSequencerDiagnosticProvider.java

示例5: createUnexpectedEmitterDiagnostic

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
ISerializationDiagnostic createUnexpectedEmitterDiagnostic(ISynNavigable currentState, AbstractElement target,
RuleCallStack stack);
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:3,代碼來源:ISyntacticSequencerDiagnosticProvider.java

示例6: emit_Pokemon_PkmnKeyword_1_1_or_PokemonKeyword_1_0

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Ambiguous syntax:
 *     'pokemon' | 'pkmn'
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) '{' '}' (rule start)
 *     (rule start) (ambiguity) '{' pkmnCards+=Card
 */
protected void emit_Pokemon_PkmnKeyword_1_1_or_PokemonKeyword_1_0(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
開發者ID:rehne93,項目名稱:pokemon-tcgo-deck-generator,代碼行數:12,代碼來源:PkmntcgoSyntacticSequencer.java

示例7: emit_Trainer_TrainerKeyword_1_0_or_TrnrKeyword_1_1

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Ambiguous syntax:
 *     'trainer' | 'trnr'
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) '{' '}' (rule start)
 *     (rule start) (ambiguity) '{' trainerCards+=Card
 */
protected void emit_Trainer_TrainerKeyword_1_0_or_TrnrKeyword_1_1(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
開發者ID:rehne93,項目名稱:pokemon-tcgo-deck-generator,代碼行數:12,代碼來源:PkmntcgoSyntacticSequencer.java

示例8:

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Ambiguous syntax:
 *     ('('? '{' 'function' '(') | '('
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) fpars+=TAnonymousFormalParameter
 */
protected void emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_PrimaryTypeExpression_LeftParenthesisKeyword_0_0_1_or___LeftParenthesisKeyword_3_0_q_LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:11,代碼來源:TypesSyntacticSequencer.java

示例9: emit_CallableCtor_SemicolonKeyword_3_q

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Ambiguous syntax:
 *     ';'?
 *
 * This ambiguous syntax occurs at:
 *     (rule start) '(' ')' (ambiguity) (rule start)
 *     fpars+=TFormalParameter ')' (ambiguity) (rule end)
 *     returnTypeRef=TypeRef (ambiguity) (rule end)
 */
protected void emit_CallableCtor_SemicolonKeyword_3_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:13,代碼來源:TypesSyntacticSequencer.java

示例10: emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_q

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Ambiguous syntax:
 *     '('?
 *
 * This ambiguous syntax occurs at:
 *     (rule start) (ambiguity) 'intersection' '{' typeRefs+=TypeRefWithoutModifiers
 *     (rule start) (ambiguity) 'this' (rule start)
 *     (rule start) (ambiguity) 'this' dynamic?='+'
 *     (rule start) (ambiguity) 'this' followedByQuestionMark?='?'
 *     (rule start) (ambiguity) 'type' '{' typeArg=TypeArgInTypeTypeRef
 *     (rule start) (ambiguity) 'union' '{' typeRefs+=TypeRefWithoutModifiers
 *     (rule start) (ambiguity) '{' '@' 'This' '(' declaredThisType=TypeRefFunctionTypeExpression
 *     (rule start) (ambiguity) '{' 'function' '(' ')' ':' returnTypeRef=TypeRef
 *     (rule start) (ambiguity) '{' 'function' '(' ')' '}' (rule start)
 *     (rule start) (ambiguity) '{' 'function' '(' ')' '}' followedByQuestionMark?='?'
 *     (rule start) (ambiguity) '{' 'function' '<' ownedTypeVars+=TypeVariable
 *     (rule start) (ambiguity) constructorRef?='constructor'
 *     (rule start) (ambiguity) declaredType=[Type|TypeReferenceName]
 *     (rule start) (ambiguity) definedTypingStrategy=TypingStrategyUseSiteOperator
 */
protected void emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:24,代碼來源:TypesSyntacticSequencer.java

示例11: emit_TAnnotation___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Ambiguous syntax:
 *     ('(' ')')?
 *
 * This ambiguous syntax occurs at:
 *     name=IDENTIFIER (ambiguity) (rule end)
 */
protected void emit_TAnnotation___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:11,代碼來源:TypesSyntacticSequencer.java

示例12: emit_TField_SemicolonKeyword_5_q

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Ambiguous syntax:
 *     ';'?
 *
 * This ambiguous syntax occurs at:
 *     typeRef=TypeRef (ambiguity) (rule end)
 */
protected void emit_TField_SemicolonKeyword_5_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:11,代碼來源:TypesSyntacticSequencer.java

示例13: emit_TMethod_SemicolonKeyword_2_q

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Ambiguous syntax:
 *     ';'?
 *
 * This ambiguous syntax occurs at:
 *     returnTypeRef=TypeRef (ambiguity) (rule end)
 */
protected void emit_TMethod_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:11,代碼來源:TypesSyntacticSequencer.java

示例14: emit_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Ambiguous syntax:
 *     (';' | ',')?
 *
 * This ambiguous syntax occurs at:
 *     astStructuralMembers+=TStructMember (ambiguity) '}' (rule end)
 *     astStructuralMembers+=TStructMember (ambiguity) '}' dynamic?='+'
 *     astStructuralMembers+=TStructMember (ambiguity) '}' followedByQuestionMark?='?'
 *     astStructuralMembers+=TStructMember (ambiguity) astStructuralMembers+=TStructMember
 */
protected void emit_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:14,代碼來源:TypesSyntacticSequencer.java

示例15:

import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; //導入依賴的package包/類
/**
 * Ambiguous syntax:
 *     ('{' 'function' '(') | '('
 *
 * This ambiguous syntax occurs at:
 *     (rule start) '('* (ambiguity) fpars+=TAnonymousFormalParameter
 */
protected void emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
	acceptNodes(transition, nodes);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:11,代碼來源:TypeExpressionsSyntacticSequencer.java


注:本文中的org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。