public interface ManAttr
Modifier and Type | Interface and Description |
---|---|
static class |
ManAttr.DeferredAttrDiagHandler |
static class |
ManAttr.DeferredDiagnosticHandler |
static class |
ManAttr.MyDiagnosticHandler |
static class |
ManAttr.MyRuntimeException |
Modifier and Type | Field and Description |
---|---|
static String |
AUTO_TYPE |
static Map<com.sun.tools.javac.tree.JCTree.Tag,String> |
BINARY_OP_TO_NAME |
static String |
COMPARE_TO |
static String |
COMPARE_TO_USING |
static String |
COMPL |
static String |
DEC |
static String |
INC |
static boolean |
JAILBREAK_PRIVATE_FROM_SUPERS |
static Object |
Kind_TYP |
static Object |
KindSelector_MTH |
static Object |
KindSelector_PCK |
static Object |
KindSelector_TYP |
static Object |
KindSelector_VAL |
static String |
NOT |
static String |
UNARY_MINUS |
Modifier and Type | Method and Description |
---|---|
default Object |
_pkind() |
default void |
addEnclosingClassOnTupleType(String fqn) |
default Object |
cfolder() |
static boolean |
checkConcatenation(com.sun.tools.javac.tree.JCTree.JCLiteral tree,
CharSequence chars,
HostKind hostKind,
com.sun.tools.javac.util.Log logger) |
default void |
checkReference(com.sun.tools.javac.tree.JCTree.JCMemberReference tree) |
default com.sun.tools.javac.comp.Check |
chk() |
default void |
ensureIndexedAssignmentIsWritable(com.sun.tools.javac.tree.JCTree.JCExpression lhs) |
default com.sun.tools.javac.tree.JCTree.JCMethodDecl |
findJCMethodDef(com.sun.tools.javac.tree.JCTree.JCClassDecl tree,
com.sun.tools.javac.code.Symbol.MethodSymbol msym) |
default com.sun.tools.javac.tree.JCTree.JCVariableDecl |
findJCVariableDecl(com.sun.tools.javac.tree.JCTree.JCClassDecl tree,
com.sun.tools.javac.code.Symbol.VarSymbol vsym) |
default String |
findMethodName(com.sun.tools.javac.tree.JCTree.JCExpression call) |
default String |
findPackageForTuple() |
default com.sun.tools.javac.code.Type |
findReceiverType(com.sun.tools.javac.tree.JCTree.JCExpression call) |
default com.sun.tools.javac.code.Symbol.ClassSymbol |
findTupleClassSymbol(String tupleTypeName) |
default ArrayList<AbstractBinder.Node<com.sun.tools.javac.tree.JCTree.JCExpression,com.sun.tools.javac.tree.JCTree.Tag>> |
getBindingOperands(com.sun.tools.javac.tree.JCTree.JCExpression tree,
ArrayList<AbstractBinder.Node<com.sun.tools.javac.tree.JCTree.JCExpression,com.sun.tools.javac.tree.JCTree.Tag>> operands) |
default com.sun.tools.javac.tree.JCTree.JCClassDecl |
getEnclosingClass(com.sun.source.tree.Tree tree) |
static com.sun.tools.javac.code.Symbol.MethodSymbol |
getEnclosingMethodSymbol(com.sun.tools.javac.code.Types types,
com.sun.tools.javac.code.Type left,
com.sun.tools.javac.code.Type right,
String opName,
com.sun.tools.javac.code.Symbol.ClassSymbol sym,
int paramCount) |
static com.sun.tools.javac.code.Symbol.MethodSymbol |
getEnclosingMethodSymbol(com.sun.tools.javac.code.Types types,
com.sun.tools.javac.code.Type left,
com.sun.tools.javac.code.Type right,
String opName,
com.sun.tools.javac.code.Symbol.ClassSymbol sym,
int paramCount,
BiPredicate<com.sun.tools.javac.code.Type,com.sun.tools.javac.code.Type> matcher) |
default com.sun.tools.javac.comp.Env |
getEnv() |
default String |
getFieldNameFromMethodName(String methodName)
Changes method name to a field name like this:
getAddress -> address
callHome -> home
findJDKVersion -> jdkVersion
id -> id
|
default com.sun.tools.javac.code.Type |
getFragmentValueType(com.sun.tools.javac.code.Attribute.Compound attribute) |
default com.sun.tools.javac.code.Type |
getFragmentValueType(com.sun.tools.javac.tree.JCTree.JCLiteral tree) |
default com.sun.tools.javac.util.Log |
getLogger() |
static com.sun.tools.javac.code.Symbol.MethodSymbol |
getMethodSymbol(com.sun.tools.javac.code.Types types,
com.sun.tools.javac.code.Type left,
com.sun.tools.javac.code.Type right,
String opName,
com.sun.tools.javac.code.Symbol.ClassSymbol sym,
int paramCount) |
static com.sun.tools.javac.code.Symbol.MethodSymbol |
getMethodSymbol(com.sun.tools.javac.code.Types types,
com.sun.tools.javac.code.Type left,
com.sun.tools.javac.code.Type right,
String opName,
com.sun.tools.javac.code.Symbol.ClassSymbol sym,
int paramCount,
BiPredicate<com.sun.tools.javac.code.Type,com.sun.tools.javac.code.Type> matcher) |
default com.sun.tools.javac.util.List<String> |
getParamNames(com.sun.tools.javac.code.Symbol.MethodSymbol paramsMethod,
boolean removeOpt$) |
default com.sun.tools.javac.util.List<com.sun.tools.javac.code.Symbol.MethodSymbol> |
getParamsMethods(com.sun.tools.javac.code.Type receiverType,
String methodName) |
default com.sun.tools.javac.util.List<com.sun.tools.javac.code.Symbol.MethodSymbol> |
getParamsMethods(com.sun.tools.javac.code.Type receiverType,
String methodName,
Set<com.sun.tools.javac.code.Type> seen) |
default boolean |
handleFragmentStringLiteral(com.sun.tools.javac.tree.JCTree.JCLiteral tree) |
default boolean |
handleIndexedOverloading(com.sun.tools.javac.tree.JCTree.JCArrayAccess tree) |
default void |
handleNonStaticInterfaceProperty(com.sun.tools.javac.comp.Env<com.sun.tools.javac.comp.AttrContext> env)
Handle properties in interfaces, which are non-static unless explicitly static.
|
default boolean |
handleOperatorOverloading(com.sun.tools.javac.tree.JCTree.JCExpression tree,
com.sun.tools.javac.code.Type left,
com.sun.tools.javac.code.Type right) |
default void |
handleTupleAsNamedArgs(com.sun.tools.javac.tree.JCTree.JCExpression tree) |
default boolean |
handleTupleType(com.sun.tools.javac.tree.JCTree.JCMethodInvocation tree) |
default boolean |
handleUnaryOverloading(com.sun.tools.javac.tree.JCTree.JCUnary tree) |
default com.sun.tools.javac.code.Type |
inferNullType(boolean named,
String itemName) |
static boolean |
isAssignableWithGenerics(com.sun.tools.javac.code.Types types,
com.sun.tools.javac.code.Type t1,
com.sun.tools.javac.code.Type t2) |
default boolean |
isAutoType(com.sun.tools.javac.code.Type type) |
static boolean |
isCommutative(com.sun.tools.javac.tree.JCTree.Tag tag) |
static boolean |
isComparableOperator(com.sun.tools.javac.tree.JCTree.Tag tag) |
default boolean |
isPropertyAnno(com.sun.tools.javac.tree.JCTree annotationType) |
static boolean |
isRelationalOperator(com.sun.tools.javac.tree.JCTree.Tag tag) |
static boolean |
isSynthetic(com.sun.tools.javac.code.Symbol.MethodSymbol m) |
static boolean |
isType(com.sun.tools.javac.code.Symbol sym) |
default com.sun.tools.javac.tree.JCTree.JCTypeCast |
makeCast(com.sun.tools.javac.tree.JCTree.JCExpression expression,
com.sun.tools.javac.code.Type type) |
default com.sun.tools.javac.tree.JCTree.JCNewClass |
makeNewTupleClass(com.sun.tools.javac.code.Type tupleType,
com.sun.tools.javac.tree.JCTree.JCExpression treePos,
com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCExpression> args) |
default Map<String,String> |
makeTupleFieldMap(com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCExpression> args,
Map<com.sun.tools.javac.tree.JCTree.JCExpression,String> argsByName) |
default com.sun.tools.javac.util.Names |
names() |
default void |
patchAutoFieldType(com.sun.tools.javac.tree.JCTree.JCExpression tree)
If the field access returns `auto`, this indicates the field definition is not fully compiled yet (type attribution),
otherwise the `auto` type would be a real type inferred from the field's initializer.
|
default void |
patchAutoReturnType(com.sun.tools.javac.tree.JCTree.JCMethodInvocation tree)
If the method call returns `auto`, this indicates the method definition is not fully compiled yet (type attribution),
otherwise the `auto` type would be a real type inferred from the return statements.
|
default void |
patchMethodType(com.sun.tools.javac.tree.JCTree.JCMethodInvocation tree,
Set<com.sun.tools.javac.tree.JCTree.JCMethodInvocation> visited) |
default void |
patchOperatorMethodType(com.sun.tools.javac.tree.JCTree.JCMethodInvocation tree) |
com.sun.tools.javac.tree.JCTree.JCAnnotatedType |
peekAnnotatedType() |
com.sun.tools.javac.tree.JCTree.JCMethodDecl |
peekMethodDef() |
com.sun.tools.javac.tree.JCTree.JCFieldAccess |
peekSelect() |
default void |
putErrorOnBestMatchingMethod(int pos,
Map<String,com.sun.tools.javac.tree.JCTree.JCExpression> namedArgsCopy,
Iterable<com.sun.tools.javac.code.Symbol.MethodSymbol> paramsMethods) |
default com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCExpression> |
removeLabels(com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCExpression> args) |
static com.sun.tools.javac.code.Symbol.MethodSymbol |
resolveIndexGetMethod(com.sun.tools.javac.code.Types types,
com.sun.tools.javac.code.Type indexedType,
com.sun.tools.javac.code.Type indexType) |
static com.sun.tools.javac.code.Symbol.MethodSymbol |
resolveIndexSetMethod(com.sun.tools.javac.code.Types types,
com.sun.tools.javac.code.Type indexedType,
com.sun.tools.javac.code.Type indexType) |
static com.sun.tools.javac.code.Symbol.MethodSymbol |
resolveOperatorMethod(com.sun.tools.javac.code.Types types,
com.sun.tools.javac.tree.JCTree.Tag tag,
com.sun.tools.javac.code.Type left,
com.sun.tools.javac.code.Type right) |
static com.sun.tools.javac.code.Symbol.MethodSymbol |
resolveUnaryMethod(com.sun.tools.javac.code.Types types,
com.sun.tools.javac.tree.JCTree.Tag tag,
com.sun.tools.javac.code.Type expr) |
default void |
restoreDiagnostics(com.sun.tools.javac.tree.JCTree.JCFieldAccess tree,
ManAttr.DeferredAttrDiagHandler deferredAttrDiagHandler)
Facilitates handling shadowing where an instance field shadows an inner class of the same name.
|
default Object |
resultInfo() |
default com.sun.tools.javac.comp.Resolve |
rs() |
default void |
setResult(com.sun.tools.javac.tree.JCTree.JCExpression tree,
com.sun.tools.javac.code.Type owntype) |
default void |
setResult(com.sun.tools.javac.tree.JCTree.JCExpression tree,
com.sun.tools.javac.code.Type owntype,
String valVar) |
default ManAttr.DeferredAttrDiagHandler |
suppressDiagnositics(com.sun.tools.javac.tree.JCTree.JCFieldAccess tree) |
default com.sun.tools.javac.code.Symtab |
syms() |
default com.sun.tools.javac.code.Types |
types() |
default void |
visitBindingExpression(com.sun.tools.javac.tree.JCTree.JCBinary tree) |
static final String AUTO_TYPE
static final Object Kind_TYP
static final Object KindSelector_TYP
static final Object KindSelector_PCK
static final Object KindSelector_VAL
static final Object KindSelector_MTH
static final boolean JAILBREAK_PRIVATE_FROM_SUPERS
static final String COMPARE_TO
static final String COMPARE_TO_USING
static final String UNARY_MINUS
static final String NOT
static final String COMPL
static final String INC
static final String DEC
com.sun.tools.javac.tree.JCTree.JCMethodDecl peekMethodDef()
com.sun.tools.javac.tree.JCTree.JCFieldAccess peekSelect()
com.sun.tools.javac.tree.JCTree.JCAnnotatedType peekAnnotatedType()
default com.sun.tools.javac.comp.Env getEnv()
default com.sun.tools.javac.util.Log getLogger()
default Object resultInfo()
default com.sun.tools.javac.comp.Check chk()
default com.sun.tools.javac.comp.Resolve rs()
default com.sun.tools.javac.util.Names names()
default com.sun.tools.javac.code.Types types()
default Object cfolder()
default com.sun.tools.javac.code.Symtab syms()
default Object _pkind()
default boolean handleFragmentStringLiteral(com.sun.tools.javac.tree.JCTree.JCLiteral tree)
default com.sun.tools.javac.code.Type getFragmentValueType(com.sun.tools.javac.tree.JCTree.JCLiteral tree)
default com.sun.tools.javac.code.Type getFragmentValueType(com.sun.tools.javac.code.Attribute.Compound attribute)
default void patchMethodType(com.sun.tools.javac.tree.JCTree.JCMethodInvocation tree, Set<com.sun.tools.javac.tree.JCTree.JCMethodInvocation> visited)
default void patchOperatorMethodType(com.sun.tools.javac.tree.JCTree.JCMethodInvocation tree)
default void patchAutoFieldType(com.sun.tools.javac.tree.JCTree.JCExpression tree)
default void patchAutoReturnType(com.sun.tools.javac.tree.JCTree.JCMethodInvocation tree)
default com.sun.tools.javac.tree.JCTree.JCMethodDecl findJCMethodDef(com.sun.tools.javac.tree.JCTree.JCClassDecl tree, com.sun.tools.javac.code.Symbol.MethodSymbol msym)
default com.sun.tools.javac.tree.JCTree.JCVariableDecl findJCVariableDecl(com.sun.tools.javac.tree.JCTree.JCClassDecl tree, com.sun.tools.javac.code.Symbol.VarSymbol vsym)
default com.sun.tools.javac.tree.JCTree.JCClassDecl getEnclosingClass(com.sun.source.tree.Tree tree)
default boolean isAutoType(com.sun.tools.javac.code.Type type)
default void restoreDiagnostics(com.sun.tools.javac.tree.JCTree.JCFieldAccess tree, ManAttr.DeferredAttrDiagHandler deferredAttrDiagHandler)
static boolean isType(com.sun.tools.javac.code.Symbol sym)
default ManAttr.DeferredAttrDiagHandler suppressDiagnositics(com.sun.tools.javac.tree.JCTree.JCFieldAccess tree)
default void handleNonStaticInterfaceProperty(com.sun.tools.javac.comp.Env<com.sun.tools.javac.comp.AttrContext> env)
default boolean isPropertyAnno(com.sun.tools.javac.tree.JCTree annotationType)
default boolean handleOperatorOverloading(com.sun.tools.javac.tree.JCTree.JCExpression tree, com.sun.tools.javac.code.Type left, com.sun.tools.javac.code.Type right)
default boolean handleUnaryOverloading(com.sun.tools.javac.tree.JCTree.JCUnary tree)
default boolean handleIndexedOverloading(com.sun.tools.javac.tree.JCTree.JCArrayAccess tree)
default void ensureIndexedAssignmentIsWritable(com.sun.tools.javac.tree.JCTree.JCExpression lhs)
default void visitBindingExpression(com.sun.tools.javac.tree.JCTree.JCBinary tree)
default void setResult(com.sun.tools.javac.tree.JCTree.JCExpression tree, com.sun.tools.javac.code.Type owntype)
default void setResult(com.sun.tools.javac.tree.JCTree.JCExpression tree, com.sun.tools.javac.code.Type owntype, String valVar)
default ArrayList<AbstractBinder.Node<com.sun.tools.javac.tree.JCTree.JCExpression,com.sun.tools.javac.tree.JCTree.Tag>> getBindingOperands(com.sun.tools.javac.tree.JCTree.JCExpression tree, ArrayList<AbstractBinder.Node<com.sun.tools.javac.tree.JCTree.JCExpression,com.sun.tools.javac.tree.JCTree.Tag>> operands)
default com.sun.tools.javac.tree.JCTree.JCTypeCast makeCast(com.sun.tools.javac.tree.JCTree.JCExpression expression, com.sun.tools.javac.code.Type type)
static com.sun.tools.javac.code.Symbol.MethodSymbol resolveUnaryMethod(com.sun.tools.javac.code.Types types, com.sun.tools.javac.tree.JCTree.Tag tag, com.sun.tools.javac.code.Type expr)
static com.sun.tools.javac.code.Symbol.MethodSymbol resolveIndexGetMethod(com.sun.tools.javac.code.Types types, com.sun.tools.javac.code.Type indexedType, com.sun.tools.javac.code.Type indexType)
static com.sun.tools.javac.code.Symbol.MethodSymbol resolveIndexSetMethod(com.sun.tools.javac.code.Types types, com.sun.tools.javac.code.Type indexedType, com.sun.tools.javac.code.Type indexType)
static com.sun.tools.javac.code.Symbol.MethodSymbol resolveOperatorMethod(com.sun.tools.javac.code.Types types, com.sun.tools.javac.tree.JCTree.Tag tag, com.sun.tools.javac.code.Type left, com.sun.tools.javac.code.Type right)
static com.sun.tools.javac.code.Symbol.MethodSymbol getMethodSymbol(com.sun.tools.javac.code.Types types, com.sun.tools.javac.code.Type left, com.sun.tools.javac.code.Type right, String opName, com.sun.tools.javac.code.Symbol.ClassSymbol sym, int paramCount)
static com.sun.tools.javac.code.Symbol.MethodSymbol getEnclosingMethodSymbol(com.sun.tools.javac.code.Types types, com.sun.tools.javac.code.Type left, com.sun.tools.javac.code.Type right, String opName, com.sun.tools.javac.code.Symbol.ClassSymbol sym, int paramCount)
static boolean isAssignableWithGenerics(com.sun.tools.javac.code.Types types, com.sun.tools.javac.code.Type t1, com.sun.tools.javac.code.Type t2)
static com.sun.tools.javac.code.Symbol.MethodSymbol getMethodSymbol(com.sun.tools.javac.code.Types types, com.sun.tools.javac.code.Type left, com.sun.tools.javac.code.Type right, String opName, com.sun.tools.javac.code.Symbol.ClassSymbol sym, int paramCount, BiPredicate<com.sun.tools.javac.code.Type,com.sun.tools.javac.code.Type> matcher)
static com.sun.tools.javac.code.Symbol.MethodSymbol getEnclosingMethodSymbol(com.sun.tools.javac.code.Types types, com.sun.tools.javac.code.Type left, com.sun.tools.javac.code.Type right, String opName, com.sun.tools.javac.code.Symbol.ClassSymbol sym, int paramCount, BiPredicate<com.sun.tools.javac.code.Type,com.sun.tools.javac.code.Type> matcher)
static boolean checkConcatenation(com.sun.tools.javac.tree.JCTree.JCLiteral tree, CharSequence chars, HostKind hostKind, com.sun.tools.javac.util.Log logger)
default void checkReference(com.sun.tools.javac.tree.JCTree.JCMemberReference tree)
static boolean isSynthetic(com.sun.tools.javac.code.Symbol.MethodSymbol m)
static boolean isComparableOperator(com.sun.tools.javac.tree.JCTree.Tag tag)
static boolean isRelationalOperator(com.sun.tools.javac.tree.JCTree.Tag tag)
static boolean isCommutative(com.sun.tools.javac.tree.JCTree.Tag tag)
default boolean handleTupleType(com.sun.tools.javac.tree.JCTree.JCMethodInvocation tree)
default void handleTupleAsNamedArgs(com.sun.tools.javac.tree.JCTree.JCExpression tree)
default void putErrorOnBestMatchingMethod(int pos, Map<String,com.sun.tools.javac.tree.JCTree.JCExpression> namedArgsCopy, Iterable<com.sun.tools.javac.code.Symbol.MethodSymbol> paramsMethods)
default com.sun.tools.javac.util.List<String> getParamNames(com.sun.tools.javac.code.Symbol.MethodSymbol paramsMethod, boolean removeOpt$)
default com.sun.tools.javac.code.Type findReceiverType(com.sun.tools.javac.tree.JCTree.JCExpression call)
default String findMethodName(com.sun.tools.javac.tree.JCTree.JCExpression call)
default com.sun.tools.javac.util.List<com.sun.tools.javac.code.Symbol.MethodSymbol> getParamsMethods(com.sun.tools.javac.code.Type receiverType, String methodName)
default com.sun.tools.javac.util.List<com.sun.tools.javac.code.Symbol.MethodSymbol> getParamsMethods(com.sun.tools.javac.code.Type receiverType, String methodName, Set<com.sun.tools.javac.code.Type> seen)
default void addEnclosingClassOnTupleType(String fqn)
default String findPackageForTuple()
default com.sun.tools.javac.code.Symbol.ClassSymbol findTupleClassSymbol(String tupleTypeName)
default com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCExpression> removeLabels(com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCExpression> args)
default com.sun.tools.javac.tree.JCTree.JCNewClass makeNewTupleClass(com.sun.tools.javac.code.Type tupleType, com.sun.tools.javac.tree.JCTree.JCExpression treePos, com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCExpression> args)
default Map<String,String> makeTupleFieldMap(com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCExpression> args, Map<com.sun.tools.javac.tree.JCTree.JCExpression,String> argsByName)
default com.sun.tools.javac.code.Type inferNullType(boolean named, String itemName)
Copyright © 2024. All rights reserved.