Answer the question
In order to leave comments, you need to log in
How to understand this code?
Hello everyone, I have the following code snippet
public static final ParseTree NULL_PARSE_TREE = new ParserRuleContext() {
@Override
public String getText() {
return null;
}
};
Answer the question
In order to leave comments, you need to log in
A static final field named NULL_PARSE_TREE of type ParseTree is created and given an instance of the ParseRuleContext class with the getText method overridden to always return null.
Why is another question that cannot be answered without context.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question