Class CompilerService
- java.lang.Object
-
- net.sourceforge.pmd.lang.apex.ast.CompilerService
-
@Deprecated @InternalApi public class CompilerService extends Object
Deprecated.Central point for interfacing with the compiler. Based on CompilerService but with Eclipse dependencies removed.- Author:
- nchen
-
-
Field Summary
Fields Modifier and Type Field Description static CompilerService
INSTANCE
Deprecated.
-
Constructor Summary
Constructors Constructor Description CompilerService(apex.jorje.semantic.compiler.sfdc.SymbolProvider symbolProvider, apex.jorje.semantic.compiler.sfdc.AccessEvaluator accessEvaluator, apex.jorje.semantic.compiler.sfdc.QueryValidator queryValidator)
Deprecated.Configure a compiler with the following configurations:
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description apex.jorje.semantic.compiler.ApexCompiler
visitAstFromString(String source, apex.jorje.semantic.ast.visitor.AstVisitor<apex.jorje.semantic.ast.visitor.AdditionalPassScope> visitor)
Deprecated.apex.jorje.semantic.compiler.ApexCompiler
visitAstsFromStrings(List<String> sources, apex.jorje.semantic.ast.visitor.AstVisitor<apex.jorje.semantic.ast.visitor.AdditionalPassScope> visitor)
Deprecated.apex.jorje.semantic.compiler.ApexCompiler
visitAstsFromStrings(List<String> sources, apex.jorje.semantic.ast.visitor.AstVisitor<apex.jorje.semantic.ast.visitor.AdditionalPassScope> visitor, apex.jorje.semantic.compiler.CompilerStage compilerStage)
Deprecated.
-
-
-
Field Detail
-
INSTANCE
public static final CompilerService INSTANCE
Deprecated.
-
-
Constructor Detail
-
CompilerService
public CompilerService(apex.jorje.semantic.compiler.sfdc.SymbolProvider symbolProvider, apex.jorje.semantic.compiler.sfdc.AccessEvaluator accessEvaluator, apex.jorje.semantic.compiler.sfdc.QueryValidator queryValidator)
Deprecated.Configure a compiler with the following configurations:- Parameters:
symbolProvider
- A way to retrieve symbols, where symbols are names of types.accessEvaluator
- A way to check for accesses to certain fields in types.queryValidator
- A way to validate your queries.
-
-
Method Detail
-
visitAstFromString
public apex.jorje.semantic.compiler.ApexCompiler visitAstFromString(String source, apex.jorje.semantic.ast.visitor.AstVisitor<apex.jorje.semantic.ast.visitor.AdditionalPassScope> visitor)
Deprecated.- Throws:
apex.jorje.services.exception.ParseException
- If the code is unparsable
-
visitAstsFromStrings
public apex.jorje.semantic.compiler.ApexCompiler visitAstsFromStrings(List<String> sources, apex.jorje.semantic.ast.visitor.AstVisitor<apex.jorje.semantic.ast.visitor.AdditionalPassScope> visitor)
Deprecated.- Throws:
apex.jorje.services.exception.ParseException
- If the code is unparsable
-
visitAstsFromStrings
public apex.jorje.semantic.compiler.ApexCompiler visitAstsFromStrings(List<String> sources, apex.jorje.semantic.ast.visitor.AstVisitor<apex.jorje.semantic.ast.visitor.AdditionalPassScope> visitor, apex.jorje.semantic.compiler.CompilerStage compilerStage)
Deprecated.- Throws:
apex.jorje.services.exception.ParseException
- If the code is unparsable
-
-