Top Fields Constructors Methods
org.antlr.v4.runtime.atn

public final Class EmptyPredictionContext

extends PredictionContext
Class Inheritance
Imports
org.antlr.v4.runtime.Recognizer

Field Summary

Modifier and TypeField and Description
public static final EmptyPredictionContext
private final boolean
public static final EmptyPredictionContext
Inherited from org.antlr.v4.runtime.atn.PredictionContext:
EMPTY_FULLEMPTY_FULL_STATE_KEYEMPTY_LOCALEMPTY_LOCAL_STATE_KEY

Constructor Summary

AccessConstructor and Description
private
EmptyPredictionContext(boolean fullContext)

Method Summary

Modifier and TypeMethod and Description
protected PredictionContext
public PredictionContext
public PredictionContext
public boolean
equals(Object
the reference object with which to compare.
o
)

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.equals.

Indicates whether some other object is "equal to" this one.
public int
public PredictionContext
public int
public boolean
public boolean
public boolean
protected PredictionContext
public int
public String[]
toStrings(Recognizer<?, ?> recognizer, int currentState)

Overrides org.antlr.v4.runtime.atn.PredictionContext.toStrings.

public String[]
Inherited from org.antlr.v4.runtime.atn.PredictionContext:
calculateEmptyHashCodecalculateHashCodecalculateHashCodefromRuleContextfromRuleContextgetCachedContextgetChildhashCodeisEmptyLocaljoinjoin

Field Detail

FULL_CONTEXTback to summary
public static final EmptyPredictionContext FULL_CONTEXT
fullContextback to summary
private final boolean fullContext
LOCAL_CONTEXTback to summary
public static final EmptyPredictionContext LOCAL_CONTEXT

Constructor Detail

EmptyPredictionContextback to summary
private EmptyPredictionContext(boolean fullContext)

Method Detail

addEmptyContextback to summary
protected PredictionContext addEmptyContext()

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.addEmptyContext.

Annotations
@Override
appendContextback to summary
public PredictionContext appendContext(int returnContext, PredictionContextCache contextCache)

Overrides org.antlr.v4.runtime.atn.PredictionContext.appendContext.

Annotations
@Override
appendContextback to summary
public PredictionContext appendContext(PredictionContext suffix, PredictionContextCache contextCache)

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.appendContext.

Annotations
@Override
equalsback to summary
public boolean equals(Object o)

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
findReturnStateback to summary
public int findReturnState(int returnState)

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.findReturnState.

Annotations
@Override
getParentback to summary
public PredictionContext getParent(int index)

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.getParent.

Annotations
@Override
getReturnStateback to summary
public int getReturnState(int index)

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.getReturnState.

Annotations
@Override
hasEmptyback to summary
public boolean hasEmpty()

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.hasEmpty.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.isEmpty.

Annotations
@Override
isFullContextback to summary
public boolean isFullContext()
removeEmptyContextback to summary
protected PredictionContext removeEmptyContext()

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.removeEmptyContext.

Annotations
@Override
sizeback to summary
public int size()

Implements abstract org.antlr.v4.runtime.atn.PredictionContext.size.

Annotations
@Override
toStringsback to summary
public String[] toStrings(Recognizer<?, ?> recognizer, int currentState)

Overrides org.antlr.v4.runtime.atn.PredictionContext.toStrings.

Annotations
@Override
toStringsback to summary
public String[] toStrings(Recognizer<?, ?> recognizer, PredictionContext stop, int currentState)

Overrides org.antlr.v4.runtime.atn.PredictionContext.toStrings.

Annotations
@Override