flexjson
Class PathExpression

java.lang.Object
  extended by flexjson.PathExpression

public class PathExpression
extends Object

This is an internal class for Flexjson. It's used to match on fields it encounters while walking the object graph. Every expression is expressed in dot notation like foo.bar.baz. Each term between the dots is a field name in that parent object. All expressions are relative to some parent object within the context in which they are used. Typically it is the object you're serializing. Expressions may also contain wildcards like *.class.


Constructor Summary
PathExpression(String expr, boolean anInclude)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 boolean isIncluded()
           
 boolean isWildcard()
           
 boolean matches(Path path)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathExpression

public PathExpression(String expr,
                      boolean anInclude)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

matches

public boolean matches(Path path)

isWildcard

public boolean isWildcard()

isIncluded

public boolean isIncluded()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014. All Rights Reserved.