Class ReflectionPatternDeclaration
- java.lang.Object
-
- com.github.javaparser.symbolsolver.reflectionmodel.ReflectionPatternDeclaration
-
- All Implemented Interfaces:
AssociableToAST
,ResolvedDeclaration
,ResolvedTypePatternDeclaration
,ResolvedValueDeclaration
public class ReflectionPatternDeclaration extends Object implements ResolvedTypePatternDeclaration
WARNING: Implemented fairly blindly. Unsure if required or even appropriate. Use with extreme caution.- Author:
- Roger Howell
-
-
Constructor Summary
Constructors Constructor Description ReflectionPatternDeclaration(Class<?> type, TypeSolver typeSolver, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
ResolvedType
getType()
boolean
hasName()
boolean
isField()
boolean
isParameter()
boolean
isType()
boolean
isTypePattern()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.declarations.AssociableToAST
toAst, toAst
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedDeclaration
asEnumConstant, asField, asMethod, asParameter, asType, isEnumConstant, isMethod, isVariable
-
Methods inherited from interface com.github.javaparser.resolution.declarations.ResolvedTypePatternDeclaration
asTypePattern, describeType
-
-
-
-
Constructor Detail
-
ReflectionPatternDeclaration
public ReflectionPatternDeclaration(Class<?> type, TypeSolver typeSolver, String name)
- Parameters:
type
-typeSolver
-name
- can potentially be null
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceResolvedDeclaration
-
hasName
public boolean hasName()
- Specified by:
hasName
in interfaceResolvedDeclaration
- Specified by:
hasName
in interfaceResolvedTypePatternDeclaration
-
isField
public boolean isField()
- Specified by:
isField
in interfaceResolvedDeclaration
-
isParameter
public boolean isParameter()
- Specified by:
isParameter
in interfaceResolvedDeclaration
-
isTypePattern
public boolean isTypePattern()
- Specified by:
isTypePattern
in interfaceResolvedDeclaration
- Specified by:
isTypePattern
in interfaceResolvedTypePatternDeclaration
-
isType
public boolean isType()
- Specified by:
isType
in interfaceResolvedDeclaration
-
getType
public ResolvedType getType()
- Specified by:
getType
in interfaceResolvedValueDeclaration
-
-