Interface ResolvedDeclaration

    • Method Detail

      • hasName

        default boolean hasName()
        Anonymous classes do not have a name, for example.
      • getName

        String getName()
        Should return the name or return null if the name is not available.
      • isField

        default boolean isField()
        Does this declaration represents a class field?
      • isVariable

        default boolean isVariable()
        Does this declaration represents a variable?
      • isEnumConstant

        default boolean isEnumConstant()
        Does this declaration represents an enum constant?
      • isTypePattern

        default boolean isTypePattern()
        Does this declaration represents a pattern declaration?
      • isParameter

        default boolean isParameter()
        Does this declaration represents a method parameter?
      • isType

        default boolean isType()
        Does this declaration represents a type?
      • isMethod

        default boolean isMethod()
        Does this declaration represents a method? // FIXME: This is never overridden.
      • asField

        default ResolvedFieldDeclaration asField()
        Return this as a FieldDeclaration or throw an UnsupportedOperationException
      • asParameter

        default ResolvedParameterDeclaration asParameter()
        Return this as a ParameterDeclaration or throw an UnsupportedOperationException
      • asType

        default ResolvedTypeDeclaration asType()
        Return this as a TypeDeclaration or throw an UnsupportedOperationException
      • asMethod

        default ResolvedMethodDeclaration asMethod()
        Return this as a MethodDeclaration or throw an UnsupportedOperationException // FIXME: This is never overridden.
      • asEnumConstant

        default ResolvedEnumConstantDeclaration asEnumConstant()
        Return this as a EnumConstantDeclaration or throw an UnsupportedOperationException
      • asTypePattern

        default ResolvedTypePatternDeclaration asTypePattern()
        Return this as a PatternDeclaration or throw an UnsupportedOperationException