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 StringgetName()ResolvedTypegetType()booleanhasName()booleanisField()booleanisParameter()booleanisType()booleanisTypePattern()-
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:
getNamein interfaceResolvedDeclaration
-
hasName
public boolean hasName()
- Specified by:
hasNamein interfaceResolvedDeclaration- Specified by:
hasNamein interfaceResolvedTypePatternDeclaration
-
isField
public boolean isField()
- Specified by:
isFieldin interfaceResolvedDeclaration
-
isParameter
public boolean isParameter()
- Specified by:
isParameterin interfaceResolvedDeclaration
-
isTypePattern
public boolean isTypePattern()
- Specified by:
isTypePatternin interfaceResolvedDeclaration- Specified by:
isTypePatternin interfaceResolvedTypePatternDeclaration
-
isType
public boolean isType()
- Specified by:
isTypein interfaceResolvedDeclaration
-
getType
public ResolvedType getType()
- Specified by:
getTypein interfaceResolvedValueDeclaration
-
-