JavaParserRecordDeclaration

Constructors

Link copied to clipboard
constructor(wrappedNode: RecordDeclaration, typeSolver: TypeSolver)
Constructors

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val JAVA_LANG_RECORD: String = "java.lang.Record"
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun equals(o: Any): Boolean
Public methods: from Object
Link copied to clipboard
Link copied to clipboard
This method returns both the ResolvedFieldDeclarations for the explicit static fields declared in the record and non-static private fields corresponding to the record parameters.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getClassName(): String
Link copied to clipboard
Link copied to clipboard
open fun getContext(): Context
This method is deprecated because the context is an implementation detail that should not be exposed.
Link copied to clipboard
Link copied to clipboard
This method returns both the explicit methods declared in the record and the implicit getter methods for the record parameters.
Link copied to clipboard
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getUsage(node: Node): ResolvedType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun hasAnnotation(qualifiedName: String): Boolean
Link copied to clipboard
open fun hasDirectlyAnnotation(canonicalName: String): Boolean
Link copied to clipboard
open fun hasField(name: String): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun hasInternalType(name: String): Boolean
Link copied to clipboard
open fun hasName(): Boolean
Link copied to clipboard
open fun hasVisibleField(name: String): Boolean
Link copied to clipboard
Protected methods
Link copied to clipboard
open fun isAnnotation(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isClass(): Boolean
Link copied to clipboard
open fun isEnum(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isField(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isGeneric(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isInterface(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isMethod(): Boolean
Link copied to clipboard
open fun isParameter(): Boolean
Link copied to clipboard
open fun isRecord(): Boolean
Link copied to clipboard
open fun isRecordType(clazz: Class<out Any>): Boolean
With the introduction of records in Java 14 (Preview), the Class.isRecord method was added to check whether a class is a record or not (similar to isEnum etc.).
Link copied to clipboard
Link copied to clipboard
open fun isType(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isVariable(): Boolean
Link copied to clipboard
Public methods
open fun solveMethod(name: String, argumentsTypes: List<ResolvedType>, staticOnly: Boolean, invocationContext: ResolvedReferenceTypeDeclaration): SymbolReference<ResolvedMethodDeclaration>
Link copied to clipboard
open fun solveMethodAsUsage(name: String, argumentTypes: List<ResolvedType>, invocationContext: Context, typeParameters: List<ResolvedType>, callContext: ResolvedReferenceTypeDeclaration): Optional<MethodUsage>
Link copied to clipboard
Link copied to clipboard
Resolution should move out of declarations, so that they are pure declarations and the resolution should work for JavaParser, Reflection and Javassist classes in the same way and not be specific to the three implementations.
Link copied to clipboard
open fun <N : Node?> toAst(clazz: Class<N>): Optional<N>
open fun toAst(): Optional<Node>
Link copied to clipboard
open fun toString(): String