Package spoon.reflect.visitor
Class PrintingContext.Writable
java.lang.Object
spoon.reflect.visitor.PrintingContext.Writable
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- PrintingContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<T extends PrintingContext.Writable>
TforceWildcardGenerics(boolean add)
<T extends PrintingContext.Writable>
TignoreEnclosingClass(boolean add)
<T extends PrintingContext.Writable>
TignoreGenerics(boolean add)
<T extends PrintingContext.Writable>
TignoreStaticAccess(boolean add)
<T extends PrintingContext.Writable>
TisFirstForVariable(boolean add)
<T extends PrintingContext.Writable>
TisNextForVariable(boolean add)
<T extends PrintingContext.Writable>
TsetStatement(CtStatement stmt)
There are statements (e.g.<T extends PrintingContext.Writable>
TskipArray(boolean add)
-
Constructor Details
-
Writable
protected Writable()
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
isFirstForVariable
- Parameters:
add
- true to the set option, false for removing.PrintingContext.isFirstForVariable()
-
isNextForVariable
-
ignoreGenerics
-
skipArray
-
ignoreStaticAccess
-
ignoreEnclosingClass
-
forceWildcardGenerics
-
setStatement
There are statements (e.g. invocation), which may play role of expression too. They have to be suffixed by semicolon depending on the printing context. Call this method to inform printer that invocation is used as statement.- Parameters:
stmt
- the instance of the actually printed statement. Such statement will be finished by semicolon.
-