org.antlr.analysis
Class SemanticContext.AND

java.lang.Object
  extended by org.antlr.analysis.SemanticContext
      extended by org.antlr.analysis.SemanticContext.CommutativePredicate
          extended by org.antlr.analysis.SemanticContext.AND
Enclosing class:
SemanticContext

public static class SemanticContext.AND
extends SemanticContext.CommutativePredicate


Nested Class Summary
 
Nested classes/interfaces inherited from class org.antlr.analysis.SemanticContext
SemanticContext.AND, SemanticContext.CommutativePredicate, SemanticContext.FalsePredicate, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate
 
Field Summary
 
Fields inherited from class org.antlr.analysis.SemanticContext.CommutativePredicate
hashcode, operands
 
Fields inherited from class org.antlr.analysis.SemanticContext
EMPTY_SEMANTIC_CONTEXT
 
Constructor Summary
SemanticContext.AND(HashSet<SemanticContext> contexts)
           
SemanticContext.AND(SemanticContext a, SemanticContext b)
           
 
Method Summary
 int calculateHashCode()
           
 SemanticContext combinePredicates(SemanticContext left, SemanticContext right)
           
 org.stringtemplate.v4.ST genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)
          Generate an expression that will evaluate the semantic context, given a set of output templates.
 String getOperandString()
           
 
Methods inherited from class org.antlr.analysis.SemanticContext.CommutativePredicate
equals, getGatedPredicateContext, hashCode, hasUserSemanticPredicate, isSyntacticPredicate, toString, trackUseOfSyntacticPredicates
 
Methods inherited from class org.antlr.analysis.SemanticContext
and, factorAnd, factorOr, getAndOperands, getOrOperands, not, or
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SemanticContext.AND

public SemanticContext.AND(SemanticContext a,
                           SemanticContext b)

SemanticContext.AND

public SemanticContext.AND(HashSet<SemanticContext> contexts)
Method Detail

genExpr

public org.stringtemplate.v4.ST genExpr(CodeGenerator generator,
                                        org.stringtemplate.v4.STGroup templates,
                                        DFA dfa)
Description copied from class: SemanticContext
Generate an expression that will evaluate the semantic context, given a set of output templates.

Specified by:
genExpr in class SemanticContext

getOperandString

public String getOperandString()
Specified by:
getOperandString in class SemanticContext.CommutativePredicate

combinePredicates

public SemanticContext combinePredicates(SemanticContext left,
                                         SemanticContext right)
Specified by:
combinePredicates in class SemanticContext.CommutativePredicate

calculateHashCode

public int calculateHashCode()
Specified by:
calculateHashCode in class SemanticContext.CommutativePredicate


Copyright © 2011. All Rights Reserved.