类 SemanticContext.OR
- java.lang.Object
-
- org.antlr.analysis.SemanticContext
-
- org.antlr.analysis.SemanticContext.CommutativePredicate
-
- org.antlr.analysis.SemanticContext.OR
-
- 封闭类:
- SemanticContext
public static class SemanticContext.OR extends SemanticContext.CommutativePredicate
-
-
字段概要
-
从类继承的字段 org.antlr.analysis.SemanticContext.CommutativePredicate
hashcode, operands
-
从类继承的字段 org.antlr.analysis.SemanticContext
EMPTY_SEMANTIC_CONTEXT
-
-
构造器概要
构造器 构造器 说明 OR(java.util.HashSet<SemanticContext> contexts)
OR(SemanticContext a, SemanticContext b)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.java.lang.String
getOperandString()
-
从类继承的方法 org.antlr.analysis.SemanticContext.CommutativePredicate
equals, getGatedPredicateContext, hashCode, hasUserSemanticPredicate, isSyntacticPredicate, toString, trackUseOfSyntacticPredicates
-
从类继承的方法 org.antlr.analysis.SemanticContext
and, factorAnd, factorOr, getAndOperands, getOrOperands, not, or
-
-
-
-
构造器详细资料
-
OR
public OR(SemanticContext a, SemanticContext b)
-
OR
public OR(java.util.HashSet<SemanticContext> contexts)
-
-
方法详细资料
-
genExpr
public org.stringtemplate.v4.ST genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)
从类复制的说明:SemanticContext
Generate an expression that will evaluate the semantic context, given a set of output templates.- 指定者:
genExpr
在类中SemanticContext
-
getOperandString
public java.lang.String getOperandString()
-
combinePredicates
public SemanticContext combinePredicates(SemanticContext left, SemanticContext right)
-
calculateHashCode
public int calculateHashCode()
-
-