Class J.FieldAccess

    • Constructor Detail

      • FieldAccess

        public FieldAccess()
    • Method Detail

      • getSimpleName

        public java.lang.String getSimpleName()
      • getSideEffects

        public java.util.List<J> getSideEffects()
        Specified by:
        getSideEffects in interface Expression
        Returns:
        A list of the side effects emitted by the statement, if the statement was decomposed. So for a binary operation, there are up to two potential side effects (the left and right side) and as few as zero if both sides of the expression are something like constants or variable references.
      • toString

        public java.lang.String toString()
        Make debugging a bit easier
        Overrides:
        toString in class java.lang.Object
      • asClassReference

        @Nullable
        public @Nullable NameTree asClassReference()
        Returns:
        For expressions like String.class, this casts target expression to a NameTree. If the field access is not a reference to a class type, returns null.
      • isFullyQualifiedClassReference

        public boolean isFullyQualifiedClassReference​(java.lang.String className)