Class FeatureLiteral

    • Constructor Detail

      • FeatureLiteral

        public FeatureLiteral​(Expression rootExpr)
    • Method Detail

      • resolveProperty

        public boolean resolveProperty​(java.lang.String propName)
      • resolveMethod

        public boolean resolveMethod​(java.lang.String methodName,
                                     java.util.List<IType> typesList)
      • resolveConstructor

        public boolean resolveConstructor​(java.util.List<IType> typesList)
      • toString

        public java.lang.String toString()
        Description copied from class: Expression
        Subclasses should return a String representing the parsed expression.
        Specified by:
        toString in class Expression
      • isConstructorLiteral

        public boolean isConstructorLiteral()
      • isMethodLiteral

        public boolean isMethodLiteral()
      • isPropertyLiteral

        public boolean isPropertyLiteral()
      • getPropertyName

        public java.lang.String getPropertyName()
      • getMethodName

        public java.lang.String getMethodName()
      • getParameterTypes

        public IType[] getParameterTypes()
      • isStaticish

        public boolean isStaticish()
      • getFunctionTypes

        public java.util.List<? extends IInvocableType> getFunctionTypes​(java.lang.String name)
      • getSingleMethodWithName

        private IMethodInfo getSingleMethodWithName​(java.lang.String methodName,
                                                    IType typeToResolveAgainst,
                                                    ITypeInfo typeInfo)
      • ensureExactMatch

        private <T extends IHasParameterInfos> T ensureExactMatch​(T methodInfo,
                                                                  IType[] argTypes)
      • boundGenericFunctionTypeVariables

        private IType[] boundGenericFunctionTypeVariables​(IHasParameterInfos methodInfo,
                                                          IType[] parametersTypes)
      • getFunctionTypeVarsToBound

        private java.util.List<IType> getFunctionTypeVarsToBound​(IHasParameterInfos methodInfo)
      • makeBlockType

        private IBlockType makeBlockType​(IType returnType,
                                         IType[] params,
                                         java.util.List<java.lang.String> argNames)
      • getMethodTypes

        private java.util.List<? extends IInvocableType> getMethodTypes​(java.lang.String name)
      • getConstructorTypes

        private java.util.List<? extends IInvocableType> getConstructorTypes()
      • resolveExpressionType

        private void resolveExpressionType()
      • resolvePropertyLiteralType

        private IType resolvePropertyLiteralType​(IPropertyInfo propertyInfo)
      • resolveMethodLiteralType

        private IType resolveMethodLiteralType​(IMethodInfo methodInfo)
      • resolveConstructorLiteralType

        private IType resolveConstructorLiteralType​(IConstructorInfo constructorInfo)
      • argNames

        private java.util.List<java.lang.String> argNames​(IHasParameterInfos hasParams)
      • hasImplicitFirstArg

        private boolean hasImplicitFirstArg()
      • featureRepresentation

        private java.lang.String featureRepresentation()
      • getRootTypeToResolveFeaturesAgainst

        private IType getRootTypeToResolveFeaturesAgainst()
      • getFeatureReturnType

        private IType getFeatureReturnType()