@Override public boolean hasToBeSkippedFromAst(AstNode node) { return astNodeSkippingPolicy.hasToBeSkippedFromAst(node); }
@Override public boolean hasToBeSkippedFromAst(AstNode node) { return astNodeSkippingPolicy.hasToBeSkippedFromAst(node); }
public boolean hasToBeSkippedFromAst(AstNode node) { return astNodeSkippingPolicy.hasToBeSkippedFromAst(node); }
@Override public boolean hasToBeSkippedFromAst(AstNode node) { if (AstNodeSkippingPolicy.class.isAssignableFrom(astNodeSkippingPolicy.getClass())) { return ((AstNodeSkippingPolicy) astNodeSkippingPolicy).hasToBeSkippedFromAst(node); } return false; }
public boolean hasToBeSkippedFromAst(AstNode node) { if (AstNodeSkippingPolicy.class.isAssignableFrom(astNodeSkippingPolicy.getClass())) { return ((AstNodeSkippingPolicy) astNodeSkippingPolicy).hasToBeSkippedFromAst(node); } return false; }
@Override public boolean hasToBeSkippedFromAst(AstNode node) { if (AstNodeSkippingPolicy.class.isAssignableFrom(astNodeSkippingPolicy.getClass())) { return ((AstNodeSkippingPolicy) astNodeSkippingPolicy).hasToBeSkippedFromAst(node); } return false; }
/** * For internal use only. */ public boolean hasToBeSkippedFromAst() { if (type == null) { return true; } final boolean result; if (AstNodeSkippingPolicy.class.isAssignableFrom(type.getClass())) { result = ((AstNodeSkippingPolicy) type).hasToBeSkippedFromAst(this); } else { result = false; } // For LexerlessGrammarBuilder and LexerfulGrammarBuilder // unwrap AstNodeType to get a real one, i.e. detach node from tree of matchers: if (type instanceof MutableParsingRule) { type = ((MutableParsingRule) type).getRealAstNodeType(); } else if (type instanceof RuleDefinition) { type = ((RuleDefinition) type).getRealAstNodeType(); } return result; }
/** * For internal use only. */ public boolean hasToBeSkippedFromAst() { if (type == null) { return true; } final boolean result; if (AstNodeSkippingPolicy.class.isAssignableFrom(type.getClass())) { result = ((AstNodeSkippingPolicy) type).hasToBeSkippedFromAst(this); } else { result = false; } // For LexerlessGrammarBuilder and LexerfulGrammarBuilder // unwrap AstNodeType to get a real one, i.e. detach node from tree of matchers: if (type instanceof MutableParsingRule) { type = ((MutableParsingRule) type).getRealAstNodeType(); } else if (type instanceof RuleDefinition) { type = ((RuleDefinition) type).getRealAstNodeType(); } return result; }
/** * For internal use only. */ public boolean hasToBeSkippedFromAst() { if (type == null) { return true; } final boolean result; if (AstNodeSkippingPolicy.class.isAssignableFrom(type.getClass())) { result = ((AstNodeSkippingPolicy) type).hasToBeSkippedFromAst(this); } else { result = false; } // For LexerlessGrammarBuilder and LexerfulGrammarBuilder // unwrap AstNodeType to get a real one, i.e. detach node from tree of matchers: if (type instanceof MutableParsingRule) { type = ((MutableParsingRule) type).getRealAstNodeType(); } else if (type instanceof RuleDefinition) { type = ((RuleDefinition) type).getRealAstNodeType(); } return result; }