类 SemanticContext.NOT
- java.lang.Object
-
- org.antlr.analysis.SemanticContext
-
- org.antlr.analysis.SemanticContext.NOT
-
- 封闭类:
- SemanticContext
public static class SemanticContext.NOT extends SemanticContext
-
-
字段概要
字段 修饰符和类型 字段 说明 protected SemanticContextctx-
从类继承的字段 org.antlr.analysis.SemanticContext
EMPTY_SEMANTIC_CONTEXT
-
-
构造器概要
构造器 构造器 说明 NOT(SemanticContext ctx)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object object)org.stringtemplate.v4.STgenExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)Generate an expression that will evaluate the semantic context, given a set of output templates.SemanticContextgetGatedPredicateContext()Given a semantic context expression tree, return a tree with all nongated predicates set to true and then reduced.inthashCode()booleanhasUserSemanticPredicate()booleanisSyntacticPredicate()java.lang.StringtoString()voidtrackUseOfSyntacticPredicates(Grammar g)Notify the indicated grammar of any syn preds used within this context-
从类继承的方法 org.antlr.analysis.SemanticContext
and, factorAnd, factorOr, getAndOperands, getOrOperands, not, or
-
-
-
-
字段详细资料
-
ctx
protected SemanticContext ctx
-
-
构造器详细资料
-
NOT
public NOT(SemanticContext ctx)
-
-
方法详细资料
-
genExpr
public org.stringtemplate.v4.ST genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)
从类复制的说明:SemanticContextGenerate an expression that will evaluate the semantic context, given a set of output templates.- 指定者:
genExpr在类中SemanticContext
-
getGatedPredicateContext
public SemanticContext getGatedPredicateContext()
从类复制的说明:SemanticContextGiven a semantic context expression tree, return a tree with all nongated predicates set to true and then reduced. So p&&(q||r) would return p&&r if q is nongated but p and r are gated.- 指定者:
getGatedPredicateContext在类中SemanticContext
-
hasUserSemanticPredicate
public boolean hasUserSemanticPredicate()
- 指定者:
hasUserSemanticPredicate在类中SemanticContext
-
isSyntacticPredicate
public boolean isSyntacticPredicate()
- 指定者:
isSyntacticPredicate在类中SemanticContext
-
trackUseOfSyntacticPredicates
public void trackUseOfSyntacticPredicates(Grammar g)
从类复制的说明:SemanticContextNotify the indicated grammar of any syn preds used within this context
-
equals
public boolean equals(java.lang.Object object)
- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()
- 覆盖:
hashCode在类中java.lang.Object
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-