Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
M
R
S
T
V
A
accept(iReflectiveVisitor)
- Method in class com.iotabits.examples.revisitor.
BinaryTreeNode
accept(iReflectiveVisitor)
- Method in class com.iotabits.examples.revisitor.
GraphNode
Graph traversal
accept(iReflectiveVisitor)
- Method in class com.iotabits.revisitor.
BasicVisitable
Dispatches this object to the revisitor.
accept(iReflectiveVisitor)
- Method in interface com.iotabits.revisitor.
iVisitable
Dispatches this object to the revisitor.
B
BasicReflectiveVisitor
- class com.iotabits.revisitor.
BasicReflectiveVisitor
.
This class an abstract class that implements the Visitor pattern via reflection.
BasicReflectiveVisitor()
- Constructor for class com.iotabits.revisitor.
BasicReflectiveVisitor
BasicVisitable
- class com.iotabits.revisitor.
BasicVisitable
.
This is simplest and default implementation of the iVisitable interface.
BasicVisitable()
- Constructor for class com.iotabits.revisitor.
BasicVisitable
BinaryTreeNode
- class com.iotabits.examples.revisitor.
BinaryTreeNode
.
This class provides an example of using the visitor without a passback.
BinaryTreeNode(Object, BinaryTreeNode, BinaryTreeNode)
- Constructor for class com.iotabits.examples.revisitor.
BinaryTreeNode
BinaryTreeNode(Object)
- Constructor for class com.iotabits.examples.revisitor.
BinaryTreeNode
BinaryTreeNode.BinaryTreeNodePrinter
- class com.iotabits.examples.revisitor.
BinaryTreeNode.BinaryTreeNodePrinter
.
BinaryTreeNode.BinaryTreeNodePrinter()
- Constructor for class com.iotabits.examples.revisitor.
BinaryTreeNode.BinaryTreeNodePrinter
C
callAccept(Object)
- Method in class com.iotabits.revisitor.
BasicReflectiveVisitor
Override this if you want the revisitor to control traversal.
com.iotabits.examples.revisitor
- package com.iotabits.examples.revisitor
com.iotabits.revisitor
- package com.iotabits.revisitor
com.iotabits.util
- package com.iotabits.util
com.iotabits.util.test
- package com.iotabits.util.test
containsSymbols(Properties)
- Method in class com.iotabits.util.
StructuredProperties
D
defaultVisit(Object)
- Method in class com.iotabits.examples.revisitor.
GraphNode.GraphPrinter
defaultVisit(Object)
- Method in class com.iotabits.revisitor.
BasicReflectiveVisitor
Override this to provide different default behavior for the default visit method.
dispatchToVisit(Object)
- Method in class com.iotabits.revisitor.
BasicReflectiveVisitor
Find a public method that most closely matches the given types and call it.
dispatchToVisit(Object)
- Method in interface com.iotabits.revisitor.
iReflectiveVisitor
This is the dispatcher that finds a visit method and calls it with the visiting object as an argument.
E
equals(Object)
- Method in class com.iotabits.util.
StructuredProperties
F
findCovariantMethod(Class, String, Class[])
- Static method in class com.iotabits.util.
ReflectionUtil
We look for a method that matches name and the types of the passed in paramtypes in the given class and return it.
findMethod(Object)
- Method in class com.iotabits.revisitor.
BasicReflectiveVisitor
Look through the class and find a method that matches the classes of the parameters.
G
GraphNode
- class com.iotabits.examples.revisitor.
GraphNode
.
This class provides an example of using the revisitor with a passback.
GraphNode(Object, GraphNode[])
- Constructor for class com.iotabits.examples.revisitor.
GraphNode
ctor
GraphNode.GraphPrinter
- class com.iotabits.examples.revisitor.
GraphNode.GraphPrinter
.
Our simple visitor.
GraphNode.GraphPrinter()
- Constructor for class com.iotabits.examples.revisitor.
GraphNode.GraphPrinter
getBooleanProperty(String)
- Method in class com.iotabits.util.
StructuredProperties
getChildren()
- Method in class com.iotabits.examples.revisitor.
GraphNode
Return all the directly accessible adjacent nodes.
getClassInterfacesSupersAndSuperinterfaces(Class)
- Static method in class com.iotabits.util.
ReflectionUtil
Returns an array of the given class, all its superclasses, its superclass, its interfaces, etc, through Object.class.
getClassProperty(String)
- Method in class com.iotabits.util.
StructuredProperties
getDoubleProperty(String)
- Method in class com.iotabits.util.
StructuredProperties
getLongProperty(String)
- Method in class com.iotabits.util.
StructuredProperties
getProperty(String)
- Method in class com.iotabits.util.
StructuredProperties
getSection(String)
- Method in class com.iotabits.util.
StructuredProperties
Return a StructuredProperties object that has is new, and has all the properties starting with the given prefix in it.
getSimpleList(String)
- Method in class com.iotabits.util.
StructuredProperties
aList.1=one aList.2=two => String[0] = one String[2] = two
getStructuredList(String)
- Method in class com.iotabits.util.
StructuredProperties
aStructList.1.FieldOne=ItemOneFieldOneValue aStructList.1.FieldTwo=ItemOneFieldTwoValue aStructList.1.FieldThree.1=ItemOneField3.1Value aStructList.1.FieldThree.2=ItemOneField3.2Value aStructList.2.FieldOne=ItemTwoFieldOneValue aStructList.2.FieldTwo=ItemTwoFieldTwoValue aStructList.2.FieldThree.1=ItemTwoField3.1Value aStructList.2.FieldThree.2=ItemTwoField3.2Value ==> Properties[0] = {FieldOne=ItemOneFieldOneValue, FieldTwo=ItemOneFieldTwoValue, FieldThree.1=ItemOneField3.1Value FieldThree.2=ItemOneField3.2Value } Properties[1] = {FieldOne=ItemTwoFieldOneValue, FieldTwo=ItemTwoFieldTwoValue, FieldThree.1=ItemTwoField3.1Value FieldThree.2=ItemTwoField3.2Value }
getSuperclasses(Class)
- Static method in class com.iotabits.util.
ReflectionUtil
Return the list of all the superclasses of a given class.
H
hashCode()
- Method in class com.iotabits.util.
StructuredProperties
I
iReflectiveVisitor
- interface com.iotabits.revisitor.
iReflectiveVisitor
.
This is the interface that makes it easier to write visitors then having to declare each visit method in your revisitor.
iVisitable
- interface com.iotabits.revisitor.
iVisitable
.
This is the starter interface for the pattern.
M
main(String[])
- Static method in class com.iotabits.examples.revisitor.
BinaryTreeNode
main(String[])
- Static method in class com.iotabits.examples.revisitor.
GraphNode
This is a simple test program that constructs a simple graph and then iterates over it using the GraphPrinter visitor class.
main(String[])
- Static method in class com.iotabits.util.test.
StructuredPropertiesTest
R
ReflectionUtil
- class com.iotabits.util.
ReflectionUtil
.
This is a Booch package of static methods that assist with reflection-based programming.
ReflectionUtil()
- Constructor for class com.iotabits.util.
ReflectionUtil
ReflectiveDispatchException
- exception com.iotabits.revisitor.
ReflectiveDispatchException
.
Thrown when there is no useful visitMethod to be had.
ReflectiveDispatchException()
- Constructor for class com.iotabits.revisitor.
ReflectiveDispatchException
S
StructuredProperties
- class com.iotabits.util.
StructuredProperties
.
This applies some additional semantics to standard Java Properties files.
StructuredProperties()
- Constructor for class com.iotabits.util.
StructuredProperties
StructuredProperties(Properties)
- Constructor for class com.iotabits.util.
StructuredProperties
StructuredProperties(ResourceBundle)
- Constructor for class com.iotabits.util.
StructuredProperties
StructuredProperties(StructuredProperties)
- Constructor for class com.iotabits.util.
StructuredProperties
StructuredPropertiesTest
- class com.iotabits.util.test.
StructuredPropertiesTest
.
StructuredPropertiesTest()
- Constructor for class com.iotabits.util.test.
StructuredPropertiesTest
setLeft(BinaryTreeNode)
- Method in class com.iotabits.examples.revisitor.
BinaryTreeNode
setRight(BinaryTreeNode)
- Method in class com.iotabits.examples.revisitor.
BinaryTreeNode
substituteSymbols(Properties)
- Method in class com.iotabits.util.
StructuredProperties
Symbols has keys that are to be substituted with their values, in the values of the source Properties object.
substituteSymbols(StructuredProperties)
- Method in class com.iotabits.util.
StructuredProperties
Substitute symbols that come in as a StructuredProperties class.
T
toString()
- Method in class com.iotabits.util.
StructuredProperties
traverse(iReflectiveVisitor)
- Method in class com.iotabits.examples.revisitor.
GraphNode
If we could make the accept private, we would.
V
VISIT_METHOD_NAME
- Static variable in class com.iotabits.revisitor.
BasicReflectiveVisitor
visit(BinaryTreeNode)
- Method in class com.iotabits.examples.revisitor.
BinaryTreeNode.BinaryTreeNodePrinter
visit(String)
- Method in class com.iotabits.examples.revisitor.
BinaryTreeNode.BinaryTreeNodePrinter
visit(StringBuffer)
- Method in class com.iotabits.examples.revisitor.
BinaryTreeNode.BinaryTreeNodePrinter
visit(Integer)
- Method in class com.iotabits.examples.revisitor.
BinaryTreeNode.BinaryTreeNodePrinter
visit(GraphNode[])
- Method in class com.iotabits.examples.revisitor.
GraphNode.GraphPrinter
visit(String)
- Method in class com.iotabits.examples.revisitor.
GraphNode.GraphPrinter
visit(Integer)
- Method in class com.iotabits.examples.revisitor.
GraphNode.GraphPrinter
visit(Float)
- Method in class com.iotabits.examples.revisitor.
GraphNode.GraphPrinter
visit(Object)
- Method in class com.iotabits.revisitor.
BasicReflectiveVisitor
This implements the default visit method, simply calling defaultVisit(Object):void.
visit(Object)
- Method in interface com.iotabits.revisitor.
iReflectiveVisitor
This is the method that defines the default behavior of the revisitor.
A
B
C
D
E
F
G
H
I
M
R
S
T
V
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes