public class SingleStaticImportDeclaration extends NonEmptyImportDeclaration
import static com.github.javaparser.JavaParser.parse;
In the example, "com.github.javaparser.JavaParser" is the type,
and "parse" is the staticMember.
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION
Constructor and Description |
---|
SingleStaticImportDeclaration() |
SingleStaticImportDeclaration(Range range,
ClassOrInterfaceType type,
String staticMember) |
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 |
getStaticMember() |
ClassOrInterfaceType |
getType() |
SingleStaticImportDeclaration |
setStaticMember(String staticMember) |
SingleStaticImportDeclaration |
setType(ClassOrInterfaceType type) |
create
addOrphanComment, clone, containsWithin, equals, getAllContainedComments, getBackwardsCompatibleChildrenNodes, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
public SingleStaticImportDeclaration()
public SingleStaticImportDeclaration(Range range, ClassOrInterfaceType type, String staticMember)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public ClassOrInterfaceType getType()
public SingleStaticImportDeclaration setType(ClassOrInterfaceType type)
public String getStaticMember()
public SingleStaticImportDeclaration setStaticMember(String staticMember)
Copyright © 2007–2016. All rights reserved.