Class InternalApiBridge
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.ast.InternalApiBridge
-
@InternalApi public final class InternalApiBridge extends Object
Acts as a bridge between outer parts of PMD and the restricted access internal API of this package.None of this is published API, and compatibility can be broken anytime! Use this only at your own risk.
- Since:
- 7.0.0
- Author:
- Clément Fournier
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
assignComments(ASTCompilationUnit root)
static JTypeMirror
buildTypeFromAstInternal(TypeSystem ts, Substitution lexicalSubst, ASTType node)
static void
disambigWithCtx(NodeStream<? extends JavaNode> nodes, net.sourceforge.pmd.lang.java.symbols.table.internal.ReferenceCtx ctx)
static void
forceTypeResolutionPhase(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor, ASTCompilationUnit root)
Forcing type resolution allows us to report errors more cleanly than if it was done completely lazy.static Infer
getInferenceEntryPoint(JavaNode n)
static @NonNull LazyTypeResolver
getLazyTypeResolver(JavaNode n)
static net.sourceforge.pmd.lang.java.internal.JavaAstProcessor
getProcessor(JavaNode n)
static JTypeDeclSymbol
getReferencedSym(ASTClassOrInterfaceType type)
static @NonNull ExprContext
getTopLevelExprContext(TypeNode n)
static @Nullable JTypeMirror
getTypeMirrorInternal(TypeNode node)
static void
initTypeResolver(ASTCompilationUnit acu, net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor, TypeInferenceLogger typeResolver)
static boolean
isStandaloneInternal(ASTConditionalExpression node)
static JavaccTokenDocument.TokenDocumentBehavior
javaTokenDoc()
static ASTVariableDeclaratorId
newVarId(String image)
Deprecated.static void
overrideResolution(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor, ASTCompilationUnit root)
static void
setCompileTimeDecl(ASTMethodReference methodReference, JMethodSig methodType)
static void
setFunctionalMethod(FunctionalExpression node, JMethodSig methodType)
static void
setOverload(InvocationNode expression, OverloadSelectionResult result)
static void
setQname(ASTAnyTypeDeclaration declaration, String binaryName, @Nullable String canon)
static void
setSignature(ASTFieldAccess node, JVariableSig.FieldSig sig)
static void
setSignature(ASTVariableAccess node, JVariableSig sig)
static void
setStandaloneTernary(ASTConditionalExpression node)
static void
setSymbol(SymbolDeclaratorNode node, JElementSymbol symbol)
static void
setSymbolTable(JavaNode node, JSymbolTable table)
static void
setTypedSym(ASTFieldAccess expr, JVariableSig.FieldSig sym)
static void
setTypedSym(ASTVariableAccess expr, JVariableSig sym)
static void
setTypeMirrorInternal(TypeNode node, JTypeMirror inferred)
static void
usageResolution(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor, ASTCompilationUnit root)
-
-
-
Method Detail
-
newVarId
@Deprecated public static ASTVariableDeclaratorId newVarId(String image)
Deprecated.
-
setSymbol
public static void setSymbol(SymbolDeclaratorNode node, JElementSymbol symbol)
-
disambigWithCtx
public static void disambigWithCtx(NodeStream<? extends JavaNode> nodes, net.sourceforge.pmd.lang.java.symbols.table.internal.ReferenceCtx ctx)
-
forceTypeResolutionPhase
public static void forceTypeResolutionPhase(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor, ASTCompilationUnit root)
Forcing type resolution allows us to report errors more cleanly than if it was done completely lazy. All errors are reported, if the
-
usageResolution
public static void usageResolution(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor, ASTCompilationUnit root)
-
overrideResolution
public static void overrideResolution(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor, ASTCompilationUnit root)
-
getTypeMirrorInternal
public static @Nullable JTypeMirror getTypeMirrorInternal(TypeNode node)
-
setTypeMirrorInternal
public static void setTypeMirrorInternal(TypeNode node, JTypeMirror inferred)
-
setSignature
public static void setSignature(ASTFieldAccess node, JVariableSig.FieldSig sig)
-
setSignature
public static void setSignature(ASTVariableAccess node, JVariableSig sig)
-
setFunctionalMethod
public static void setFunctionalMethod(FunctionalExpression node, JMethodSig methodType)
-
setCompileTimeDecl
public static void setCompileTimeDecl(ASTMethodReference methodReference, JMethodSig methodType)
-
initTypeResolver
public static void initTypeResolver(ASTCompilationUnit acu, net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor, TypeInferenceLogger typeResolver)
-
setOverload
public static void setOverload(InvocationNode expression, OverloadSelectionResult result)
-
getProcessor
public static net.sourceforge.pmd.lang.java.internal.JavaAstProcessor getProcessor(JavaNode n)
-
getLazyTypeResolver
public static @NonNull LazyTypeResolver getLazyTypeResolver(JavaNode n)
-
getTopLevelExprContext
public static @NonNull ExprContext getTopLevelExprContext(TypeNode n)
-
setSymbolTable
public static void setSymbolTable(JavaNode node, JSymbolTable table)
-
setQname
public static void setQname(ASTAnyTypeDeclaration declaration, String binaryName, @Nullable String canon)
-
assignComments
public static void assignComments(ASTCompilationUnit root)
-
javaTokenDoc
public static JavaccTokenDocument.TokenDocumentBehavior javaTokenDoc()
-
setStandaloneTernary
public static void setStandaloneTernary(ASTConditionalExpression node)
-
isStandaloneInternal
public static boolean isStandaloneInternal(ASTConditionalExpression node)
-
buildTypeFromAstInternal
public static JTypeMirror buildTypeFromAstInternal(TypeSystem ts, Substitution lexicalSubst, ASTType node)
-
getReferencedSym
public static JTypeDeclSymbol getReferencedSym(ASTClassOrInterfaceType type)
-
setTypedSym
public static void setTypedSym(ASTFieldAccess expr, JVariableSig.FieldSig sym)
-
setTypedSym
public static void setTypedSym(ASTVariableAccess expr, JVariableSig sym)
-
-