public final class ClassOrInterfaceType extends ReferenceType<ClassOrInterfaceType> implements NodeWithName<ClassOrInterfaceType>, NodeWithAnnotations<ClassOrInterfaceType>, NodeWithTypeArguments<ClassOrInterfaceType>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION, prettyPrinterNoCommentsConfiguration
Constructor and Description |
---|
ClassOrInterfaceType() |
ClassOrInterfaceType(ClassOrInterfaceType scope,
String name) |
ClassOrInterfaceType(Range range,
ClassOrInterfaceType scope,
String name,
NodeList<Type<?>> typeArguments) |
ClassOrInterfaceType(String name) |
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
String |
getName() |
ClassOrInterfaceType |
getScope() |
NodeList<Type<?>> |
getTypeArguments() |
boolean |
isBoxedType() |
ClassOrInterfaceType |
setName(String name) |
ClassOrInterfaceType |
setScope(ClassOrInterfaceType scope) |
ClassOrInterfaceType |
setTypeArguments(NodeList<Type<?>> types)
Allows you to set the generic arguments
|
PrimitiveType |
toUnboxedType() |
getAnnotations, setAnnotations
addOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBegin, getChildNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeForChildren, getRange, getUserData, hasComment, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toString, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
addAnnotation, addAnnotation, addMarkerAnnotation, addMarkerAnnotation, addSingleMemberAnnotation, addSingleMemberAnnotation, getAnnotationByClass, getAnnotationByName, getAnnotations, isAnnotationPresent, isAnnotationPresent, setAnnotations
isUsingDiamondOperator, removeTypeArguments, setDiamondOperator, setTypeArguments
getAncestorOfType, setAsParentNodeOf, setAsParentNodeOf
public ClassOrInterfaceType()
public ClassOrInterfaceType(String name)
public ClassOrInterfaceType(ClassOrInterfaceType scope, String name)
public ClassOrInterfaceType(Range range, ClassOrInterfaceType scope, String name, NodeList<Type<?>> typeArguments)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Visitable
accept
in interface Visitable
R
- the type of the return value of the visitorA
- the type the user argument passed to the visitorv
- the visitor implementationarg
- the argument passed to the visitor (of type A)public <A> void accept(VoidVisitor<A> v, A arg)
Visitable
public String getName()
getName
in interface NodeWithName<ClassOrInterfaceType>
public ClassOrInterfaceType getScope()
public boolean isBoxedType()
public PrimitiveType toUnboxedType() throws UnsupportedOperationException
UnsupportedOperationException
public ClassOrInterfaceType setName(String name)
setName
in interface NodeWithName<ClassOrInterfaceType>
public ClassOrInterfaceType setScope(ClassOrInterfaceType scope)
public NodeList<Type<?>> getTypeArguments()
getTypeArguments
in interface NodeWithTypeArguments<ClassOrInterfaceType>
public ClassOrInterfaceType setTypeArguments(NodeList<Type<?>> types)
NodeWithTypeArguments
setTypeArguments
in interface NodeWithTypeArguments<ClassOrInterfaceType>
types
- The list of types of the genericsCopyright © 2007–2016. All rights reserved.