public class ReflectionPatternDeclaration extends Object implements ResolvedTypePatternDeclaration
Constructor and Description |
---|
ReflectionPatternDeclaration(Class<?> type,
TypeSolver typeSolver,
String name) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
ResolvedType |
getType() |
boolean |
hasName() |
boolean |
isField() |
boolean |
isParameter() |
boolean |
isType() |
boolean |
isTypePattern() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asTypePattern, describeType
asEnumConstant, asField, asMethod, asParameter, asType, isEnumConstant, isMethod, isVariable
toAst, toAst
public ReflectionPatternDeclaration(Class<?> type, TypeSolver typeSolver, String name)
type
- typeSolver
- name
- can potentially be nullpublic String getName()
getName
in interface ResolvedDeclaration
public boolean hasName()
hasName
in interface ResolvedDeclaration
hasName
in interface ResolvedTypePatternDeclaration
public boolean isField()
isField
in interface ResolvedDeclaration
public boolean isParameter()
isParameter
in interface ResolvedDeclaration
public boolean isTypePattern()
isTypePattern
in interface ResolvedDeclaration
isTypePattern
in interface ResolvedTypePatternDeclaration
public boolean isType()
isType
in interface ResolvedDeclaration
public ResolvedType getType()
getType
in interface ResolvedValueDeclaration
Copyright © 2007–2024. All rights reserved.