Class AntlrParserPlugin

java.lang.Object
org.codehaus.groovy.syntax.ASTHelper
org.codehaus.groovy.antlr.AntlrParserPlugin
All Implemented Interfaces:
GroovyTokenTypes, ParserPlugin

@Deprecated
public class AntlrParserPlugin
extends ASTHelper
implements ParserPlugin, GroovyTokenTypes
Deprecated.
A parser plugin which adapts the JSR Antlr Parser to the Groovy runtime.
  • Field Details

    • ast

      protected AST ast
      Deprecated.
    • tokenNames

      protected java.lang.String[] tokenNames
      Deprecated.
  • Constructor Details

    • AntlrParserPlugin

      public AntlrParserPlugin()
      Deprecated.
  • Method Details

    • parseCST

      public Reduction parseCST​(SourceUnit sourceUnit, java.io.Reader reader) throws CompilationFailedException
      Deprecated.
      Specified by:
      parseCST in interface ParserPlugin
      Throws:
      CompilationFailedException
    • transformCSTIntoAST

      protected void transformCSTIntoAST​(SourceUnit sourceUnit, java.io.Reader reader, SourceBuffer sourceBuffer) throws CompilationFailedException
      Deprecated.
      Throws:
      CompilationFailedException
    • processAST

      protected void processAST()
      Deprecated.
    • outputAST

      public Reduction outputAST​(SourceUnit sourceUnit, SourceBuffer sourceBuffer)
      Deprecated.
    • buildAST

      public ModuleNode buildAST​(SourceUnit sourceUnit, java.lang.ClassLoader classLoader, Reduction cst) throws ParserException
      Deprecated.
      Specified by:
      buildAST in interface ParserPlugin
      Throws:
      ParserException
    • convertGroovy

      protected void convertGroovy​(AST node)
      Deprecated.
      Converts the Antlr AST to the Groovy AST.
    • packageDef

      protected void packageDef​(AST packageDef)
      Deprecated.
    • importDef

      protected void importDef​(AST importNode)
      Deprecated.
    • annotationDef

      protected void annotationDef​(AST classDef)
      Deprecated.
    • interfaceDef

      protected void interfaceDef​(AST classDef)
      Deprecated.
    • innerInterfaceDef

      protected void innerInterfaceDef​(AST classDef)
      Deprecated.
    • classDef

      protected void classDef​(AST classDef)
      Deprecated.
    • anonymousInnerClassDef

      protected Expression anonymousInnerClassDef​(AST node)
      Deprecated.
    • innerClassDef

      protected void innerClassDef​(AST classDef)
      Deprecated.
    • objectBlock

      protected void objectBlock​(AST objectBlock)
      Deprecated.
    • enumDef

      protected void enumDef​(AST enumNode)
      Deprecated.
    • enumConstantDef

      protected void enumConstantDef​(AST node)
      Deprecated.
    • throwsList

      protected void throwsList​(AST node, java.util.List<ClassNode> list)
      Deprecated.
    • methodDef

      protected void methodDef​(AST methodDef)
      Deprecated.
    • staticInit

      protected void staticInit​(AST staticInit)
      Deprecated.
    • objectInit

      protected void objectInit​(AST init)
      Deprecated.
    • constructorDef

      protected void constructorDef​(AST constructorDef)
      Deprecated.
    • fieldDef

      protected void fieldDef​(AST fieldDef)
      Deprecated.
    • getDefaultValueForPrimitive

      @Deprecated public static Expression getDefaultValueForPrimitive​(ClassNode type)
      Deprecated.
    • interfaces

      protected ClassNode[] interfaces​(AST node)
      Deprecated.
    • parameters

      protected Parameter[] parameters​(AST parametersNode)
      Deprecated.
    • parameter

      protected Parameter parameter​(AST paramNode)
      Deprecated.
    • modifiers

      protected int modifiers​(AST modifierNode, java.util.List<AnnotationNode> annotations, int defaultModifiers)
      Deprecated.
    • setAccessTrue

      protected boolean setAccessTrue​(AST node, boolean access)
      Deprecated.
    • setModifierBit

      protected int setModifierBit​(AST node, int answer, int bit)
      Deprecated.
    • annotation

      protected AnnotationNode annotation​(AST annotationNode)
      Deprecated.
    • statement

      protected Statement statement​(AST node)
      Deprecated.
    • statementList

      protected Statement statementList​(AST code)
      Deprecated.
    • statementListNoChild

      protected Statement statementListNoChild​(AST node, AST alternativeConfigureNode)
      Deprecated.
    • assertStatement

      protected Statement assertStatement​(AST assertNode)
      Deprecated.
    • breakStatement

      protected Statement breakStatement​(AST node)
      Deprecated.
    • continueStatement

      protected Statement continueStatement​(AST node)
      Deprecated.
    • forStatement

      protected Statement forStatement​(AST forNode)
      Deprecated.
    • ifStatement

      protected Statement ifStatement​(AST ifNode)
      Deprecated.
    • labelledStatement

      protected Statement labelledStatement​(AST labelNode)
      Deprecated.
    • methodCall

      protected Statement methodCall​(AST code)
      Deprecated.
    • declarationExpression

      protected Expression declarationExpression​(AST variableDef)
      Deprecated.
    • variableDef

      protected Statement variableDef​(AST variableDef)
      Deprecated.
    • returnStatement

      protected Statement returnStatement​(AST node)
      Deprecated.
    • switchStatement

      protected Statement switchStatement​(AST switchNode)
      Deprecated.
    • caseStatements

      protected Statement caseStatements​(AST node, java.util.List<CaseStatement> cases)
      Deprecated.
    • synchronizedStatement

      protected Statement synchronizedStatement​(AST syncNode)
      Deprecated.
    • throwStatement

      protected Statement throwStatement​(AST node)
      Deprecated.
    • tryStatement

      protected Statement tryStatement​(AST tryStatementNode)
      Deprecated.
    • catchStatement

      protected java.util.List<CatchStatement> catchStatement​(AST catchNode)
      Deprecated.
    • whileStatement

      protected Statement whileStatement​(AST whileNode)
      Deprecated.
    • expression

      protected Expression expression​(AST node)
      Deprecated.
    • expression

      protected Expression expression​(AST node, boolean convertToConstant)
      Deprecated.
    • expressionSwitch

      protected Expression expressionSwitch​(AST node)
      Deprecated.
    • dynamicMemberExpression

      protected Expression dynamicMemberExpression​(AST dynamicMemberNode)
      Deprecated.
    • ternaryExpression

      protected Expression ternaryExpression​(AST ternaryNode)
      Deprecated.
    • variableExpression

      protected Expression variableExpression​(AST node)
      Deprecated.
    • literalExpression

      protected ConstantExpression literalExpression​(AST node, java.lang.Object value)
      Deprecated.
    • rangeExpression

      protected Expression rangeExpression​(AST rangeNode, boolean inclusive)
      Deprecated.
    • spreadExpression

      protected Expression spreadExpression​(AST node)
      Deprecated.
    • spreadMapExpression

      protected Expression spreadMapExpression​(AST node)
      Deprecated.
    • methodPointerExpression

      protected Expression methodPointerExpression​(AST node)
      Deprecated.
    • listExpression

      protected Expression listExpression​(AST listNode)
      Deprecated.
    • mapExpression

      protected Expression mapExpression​(AST mapNode)
      Deprecated.
    • mapEntryExpression

      protected MapEntryExpression mapEntryExpression​(AST node)
      Deprecated.
    • instanceofExpression

      protected Expression instanceofExpression​(AST node)
      Deprecated.
    • assertTypeNotNull

      protected void assertTypeNotNull​(ClassNode type, AST rightNode)
      Deprecated.
    • asExpression

      protected Expression asExpression​(AST node)
      Deprecated.
    • castExpression

      protected Expression castExpression​(AST castNode)
      Deprecated.
    • indexExpression

      protected Expression indexExpression​(AST indexNode)
      Deprecated.
    • binaryExpression

      protected Expression binaryExpression​(int type, AST node)
      Deprecated.
    • prefixExpression

      protected Expression prefixExpression​(AST node, int token)
      Deprecated.
    • postfixExpression

      protected Expression postfixExpression​(AST node, int token)
      Deprecated.
    • booleanExpression

      protected BooleanExpression booleanExpression​(AST node)
      Deprecated.
    • dotExpression

      protected Expression dotExpression​(AST node)
      Deprecated.
    • specialConstructorCallExpression

      protected Expression specialConstructorCallExpression​(AST methodCallNode, ClassNode special)
      Deprecated.
    • methodCallExpression

      protected Expression methodCallExpression​(AST methodCallNode)
      Deprecated.
    • constructorCallExpression

      protected Expression constructorCallExpression​(AST node)
      Deprecated.
    • arraySizeExpression

      protected java.util.List<Expression> arraySizeExpression​(AST node)
      Deprecated.
    • enumArguments

      protected Expression enumArguments​(AST elist)
      Deprecated.
    • arguments

      protected Expression arguments​(AST elist)
      Deprecated.
    • addArgumentExpression

      protected boolean addArgumentExpression​(AST node, java.util.List<Expression> expressionList)
      Deprecated.
    • expressionList

      protected Expression expressionList​(AST node)
      Deprecated.
    • closureExpression

      protected ClosureExpression closureExpression​(AST node)
      Deprecated.
    • blockExpression

      protected Expression blockExpression​(AST node)
      Deprecated.
    • unaryMinusExpression

      protected Expression unaryMinusExpression​(AST unaryMinusExpr)
      Deprecated.
    • unaryPlusExpression

      protected Expression unaryPlusExpression​(AST unaryPlusExpr)
      Deprecated.
    • decimalExpression

      protected ConstantExpression decimalExpression​(AST node)
      Deprecated.
    • integerExpression

      protected ConstantExpression integerExpression​(AST node)
      Deprecated.
    • gstring

      protected Expression gstring​(AST gstringNode)
      Deprecated.
    • qualifiedName

      public static java.lang.String qualifiedName​(AST qualifiedNameNode)
      Deprecated.
    • makeTypeWithArguments

      protected ClassNode makeTypeWithArguments​(AST rootNode)
      Deprecated.
    • makeGenericsType

      protected GenericsType[] makeGenericsType​(AST rootNode)
      Deprecated.
    • makeType

      protected ClassNode makeType​(AST typeNode)
      Deprecated.
    • buildName

      protected ClassNode buildName​(AST node)
      Deprecated.
    • isPrimitiveTypeLiteral

      protected boolean isPrimitiveTypeLiteral​(AST node)
      Deprecated.
    • identifier

      protected java.lang.String identifier​(AST node)
      Deprecated.
      Extracts an identifier from the Antlr AST
    • label

      protected java.lang.String label​(AST labelNode)
      Deprecated.
    • hasVisibility

      protected boolean hasVisibility​(int modifiers)
      Deprecated.
      Returns true if the modifiers flags contain a visibility modifier
    • configureAST

      protected void configureAST​(ASTNode node, AST ast)
      Deprecated.
    • makeToken

      protected static Token makeToken​(int typeCode, AST node)
      Deprecated.
    • getFirstChildText

      protected java.lang.String getFirstChildText​(AST node)
      Deprecated.
    • isType

      public static boolean isType​(int typeCode, AST node)
      Deprecated.
    • assertNodeType

      protected void assertNodeType​(int type, AST node)
      Deprecated.
    • notImplementedYet

      protected void notImplementedYet​(AST node)
      Deprecated.
    • unknownAST

      protected void unknownAST​(AST node)
      Deprecated.
    • dumpTree

      protected void dumpTree​(AST ast)
      Deprecated.
    • dump

      protected void dump​(AST node)
      Deprecated.