public interface Codeable
Codeable
is a core interface which nearly all other interfaces
extend. Objects that implement this interface are expected to know how to
render themselves as source code to a CodeWriter
. Any
Codeable
is be commentable as well.Modifier and Type | Method and Description |
---|---|
Codeable |
applyStyle(Style style) |
<T> T |
cast(Class<T> clazz) |
Comment |
getComment()
Gets the comment for this
Codeable object. |
boolean |
isActive(Style style) |
boolean |
isBlockWithAbruptCompletion() |
Codeable |
setComment(int type,
String text)
Sets the comment to the given type and text.
|
CodeWriter |
toCode(CodeWriter out)
Renders the codeable object to the given writer and returns it.
|
void |
visit(ReplacingVisitor visitor)
walk through the code tree and allow every element to be exchanged.
|
VirtualMachine |
vm()
Returns the virtual machine to which this
Codeable object
belongs. |
<T> T cast(Class<T> clazz)
Comment getComment()
Codeable
object.boolean isBlockWithAbruptCompletion()
CodeWriter toCode(CodeWriter out)
void visit(ReplacingVisitor visitor)
VirtualMachine vm()
Codeable
object
belongs.boolean isActive(Style style)
Copyright © 2000–2018 jenesis4java. All rights reserved.