Class AntlrVariableReference
java.lang.Object
cool.klass.model.converter.compiler.state.AntlrElement
cool.klass.model.converter.compiler.state.value.AntlrExpressionValue
cool.klass.model.converter.compiler.state.value.AntlrVariableReference
- All Implemented Interfaces:
IAntlrElement
-
Field Summary
Fields inherited from class cool.klass.model.converter.compiler.state.AntlrElement
AMBIGUOUS_PARENT, compilationUnit, elementContext, NOT_FOUND_PARENT -
Constructor Summary
ConstructorsConstructorDescriptionAntlrVariableReference(KlassParser.VariableReferenceContext elementContext, Optional<CompilationUnit> compilationUnit, String variableName, IAntlrElement expressionValueOwner) -
Method Summary
Modifier and TypeMethodDescriptionbuild()org.eclipse.collections.api.list.ImmutableList<AntlrType>voidreportErrors(CompilerAnnotationHolder compilerAnnotationHolder) voidresolveServiceVariables(org.eclipse.collections.api.map.OrderedMap<String, AntlrParameter> formalParametersByName) voidvisit(AntlrExpressionValueVisitor visitor) Methods inherited from class cool.klass.model.converter.compiler.state.value.AntlrExpressionValue
getSurroundingElementMethods inherited from class cool.klass.model.converter.compiler.state.AntlrElement
getCompilationUnit, getElementContext, getMacroElement, getMacroElementBuilder, getSourceCodeBuilder, getSourceText, getSourceTextLenient, hasMacro, isForwardReference, isInSameCompilationUnit, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cool.klass.model.converter.compiler.state.IAntlrElement
gatherSurroundingElements, getContextAfter, getContextBefore, getEntireContext, getSurroundingElement, getSurroundingElements, isContext, reportAuditErrors
-
Constructor Details
-
AntlrVariableReference
public AntlrVariableReference(@Nonnull KlassParser.VariableReferenceContext elementContext, @Nonnull Optional<CompilationUnit> compilationUnit, @Nonnull String variableName, @Nonnull IAntlrElement expressionValueOwner)
-
-
Method Details
-
build
- Specified by:
buildin classAntlrExpressionValue
-
getElementBuilder
- Specified by:
getElementBuilderin classAntlrExpressionValue
-
reportErrors
- Specified by:
reportErrorsin classAntlrExpressionValue
-
getPossibleTypes
- Specified by:
getPossibleTypesin classAntlrExpressionValue
-
resolveServiceVariables
public void resolveServiceVariables(@Nonnull org.eclipse.collections.api.map.OrderedMap<String, AntlrParameter> formalParametersByName) - Overrides:
resolveServiceVariablesin classAntlrExpressionValue
-
visit
- Specified by:
visitin classAntlrExpressionValue
-