Package kawa.lang
Class Macro
java.lang.Object
kawa.lang.Syntax
kawa.lang.Macro
- All Implemented Interfaces:
gnu.kawa.format.Printable,Named,Externalizable,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intIf this flag is set, then don't expand during the scan-body phase. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpand(Object form, Translator tr) final booleanstatic Macromake(Declaration decl) static Macrostatic Macrostatic MacromakeNonHygienic(Object name, Procedure expander) static MacromakeNonHygienic(Object name, Procedure expander, Object instance) static MacromakeSkipScanForm(Object name, Procedure expander, Object instance) voidvoidrewriteForm(Pair form, Translator tr) voidscanForm(Pair st, ScopeExp defs, Translator tr) voidsetCapturedScope(ScopeExp scope) final voidsetFlags(int flags) final voidsetHygienic(boolean hygienic) toString()void
-
Field Details
-
expander
-
HYGIENIC
public static final int HYGIENIC- See Also:
-
SKIP_SCAN_FORM
public static final int SKIP_SCAN_FORMIf this flag is set, then don't expand during the scan-body phase.- See Also:
-
-
Constructor Details
-
Macro
public Macro() -
Macro
Copy constructor. -
Macro
-
Macro
-
-
Method Details
-
setFlags
public final void setFlags(int flags) -
isHygienic
public final boolean isHygienic() -
setHygienic
public final void setHygienic(boolean hygienic) -
getCapturedScope
-
setCapturedScope
-
make
-
makeNonHygienic
-
makeNonHygienic
-
makeSkipScanForm
-
make
-
make
-
rewriteForm
- Overrides:
rewriteFormin classSyntax
-
toString
-
print
-
rewriteIfNeeded
-
expand
-
scanForm
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-