Found 86829 results in 12801 files, showing top 50 files (show more).
android.googlesource.com/platform/external/mp4parser:isoparser/src/main/java/com/googlecode/mp4parser/util/Path.java: [ master, ] java
29: public class Path {
31:     private Path() {
36:     public static String createPath(Box box) {
40:     private static String createPath(Box box, String path) {
52:     public static Box getPath(Box box, String path) {
58:     public static List<Box> getPaths(Box box, String path) {
42:             return path;
46:             path = String.format("/%s[%d]", box.getType(), index) + path;
48:             return createPath(box.getParent(), path);
53:         List<Box> all = getPaths(box, path);
59:         if (path.startsWith("/")) {
65:             return getPaths(isoFile, path.substring(1));
66:         } else if (path.isEmpty()) {
71:             if (path.contains("/")) {
72:                 later = path.substring(path.indexOf('/') + 1);
73:                 now = path.substring(0, path.indexOf('/'));
75:                 now = path;
104:                 throw new RuntimeException(now + " is invalid path.");
111:     public static boolean isContained(Box box, String path) {
112:         assert path.startsWith("/") : "Absolute path required";
113:         return getPaths(box, path).contains(box);
37:         return createPath(box, "");
83:                     return getPaths(box.getParent(), later);
96:                                 children.addAll(getPaths(box1, later));
chromium.googlesource.com/arc/arc:third_party/android/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/Path.java: [ master, ] java Duplicate result
github.com/bazelbuild/rules_closure:java/io/bazel/rules/closure/Webpath.java: [ master, ] java
72:   private final String path;
55:   private static final Webpath EMPTY_PATH = new Webpath("");
56:   private static final Webpath ROOT_PATH = new Webpath(ROOT);
49: public final class Webpath implements CharSequence, Comparable<Webpath> {
76:   private Webpath(String path) {
170:   public Webpath subpath(int beginIndex, int endIndex) {
393:   public Webpath toAbsolutePath(Webpath currentWorkingDirectory) {
399:   public Webpath toAbsolutePath() {
34:  * Web server path.
36:  * <p>This class is a de facto implementation of the {@link java.nio.file.Path} API. That interface
62:   /** Returns new path of {@code first}. */
63:   public static Webpath get(String path) {
64:     if (path.isEmpty()) {
65:       return EMPTY_PATH;
66:     } else if (isRootInternal(path)) {
67:       return ROOT_PATH;
69:     return new Webpath(path);
77:     this.path = checkNotNull(path);
82:     return isRootInternal(path);
85:   private static boolean isRootInternal(String path) {
86:     return path.length() == 1 && path.charAt(0) == SEPARATOR;
89:   /** Returns {@code true} if path starts with {@code separator}. */
91:     return isAbsoluteInternal(path);
94:   private static boolean isAbsoluteInternal(String path) {
95:     return !path.isEmpty() && path.charAt(0) == SEPARATOR;
98:   /** Returns {@code true} if path ends with {@code separator}. */
100:     return hasTrailingSeparatorInternal(path);
103:   private static boolean hasTrailingSeparatorInternal(CharSequence path) {
104:     return path.length() != 0 && path.charAt(path.length() - 1) == SEPARATOR;
107:   /** Returns {@code true} if path ends with a trailing slash, or would after normalization. */
109:     int length = path.length();
110:     return path.isEmpty()
111:         || path.charAt(length - 1) == SEPARATOR
112:         || (path.endsWith(".") && (length == 1 || path.charAt(length - 2) == SEPARATOR))
113:         || (path.endsWith("..") && (length == 2 || path.charAt(length - 3) == SEPARATOR));
117:    * Returns last component in {@code path}.
119:    * @see java.nio.file.Path#getFileName()
123:     if (path.isEmpty()) {
124:       return EMPTY_PATH;
130:       return parts.size() == 1 && path.equals(last) ? this : new Webpath(last);
137:    * @see java.nio.file.Path#getParent()
141:     if (path.isEmpty() || isRoot()) {
146:             ? path.lastIndexOf(SEPARATOR, path.length() - 2)
147:             : path.lastIndexOf(SEPARATOR);
149:       return isAbsolute() ? ROOT_PATH : null;
151:       return new Webpath(path.substring(0, index + 1));
156:    * Returns root component if an absolute path, otherwise {@code null}.
158:    * @see java.nio.file.Path#getRoot()
162:     return isAbsolute() ? ROOT_PATH : null;
166:    * Returns specified range of sub-components in path joined together.
168:    * @see java.nio.file.Path#subpath(int, int)
171:     if (path.isEmpty() && beginIndex == 0 && endIndex == 1) {
185:    * Returns number of components in {@code path}.
187:    * @see java.nio.file.Path#getNameCount()
190:     if (path.isEmpty()) {
200:    * Returns component in {@code path} at {@code index}.
202:    * @see java.nio.file.Path#getName(int)
205:     if (path.isEmpty()) {
217:    * Returns path without extra separators or {@code .} and {@code ..}, preserving trailing slash.
219:    * @see java.nio.file.Path#normalize()
228:       index = path.indexOf(SEPARATOR, mark);
229:       String part = path.substring(mark, index == -1 ? path.length() : index + 1);
280:    * Returns {@code other} appended to {@code path}.
282:    * @see java.nio.file.Path#resolve(java.nio.file.Path)
285:     if (other.path.isEmpty()) {
290:       return new Webpath(path + other.path);
292:       return new Webpath(path + SEPARATOR + other.path);
297:    * Returns {@code other} resolved against parent of {@code path}.
299:    * @see java.nio.file.Path#resolveSibling(java.nio.file.Path)
307:   /** Returns absolute path of {@code reference} relative to {@code file}. */
313:    * Returns {@code other} made relative to {@code path}.
315:    * @see java.nio.file.Path#relativize(java.nio.file.Path)
318:     checkArgument(isAbsolute() == other.isAbsolute(), "'other' is different type of Path");
319:     if (path.isEmpty()) {
331:     StringBuilder result = new StringBuilder(path.length() + other.path.length());
348:    * Returns {@code true} if {@code path} starts with {@code other}.
350:    * @see java.nio.file.Path#startsWith(java.nio.file.Path)
355:     if (other.path.length() > me.path.length()) {
359:     } else if (!me.path.isEmpty() && other.path.isEmpty()) {
375:    * Returns {@code true} if {@code path} ends with {@code other}.
377:    * @see java.nio.file.Path#endsWith(java.nio.file.Path)
382:     if (other.path.length() > me.path.length()) {
384:     } else if (!me.path.isEmpty() && other.path.isEmpty()) {
387:       return me.isAbsolute() && me.path.equals(other.path);
392:   /** Converts relative path to an absolute path. */
398:   /** Returns {@code toAbsolutePath(ROOT_PATH)}. */
400:     return toAbsolutePath(ROOT_PATH);
403:   /** Removes beginning separator from path, if an absolute path. */
405:     return isAbsolute() ? new Webpath(path.substring(1)) : this;
408:   /** Adds trailing separator to path, if it isn't present. */
410:     return hasTrailingSeparator() ? this : new Webpath(path + SEPARATOR);
413:   /** Removes trailing separator from path, unless it's root. */
416:       return new Webpath(path.substring(0, path.length() - 1));
422:   /** Splits path into components, excluding separators and empty strings. */
427:   /** Splits path into components in reverse, excluding separators and empty strings. */
435:    * @see java.nio.file.Path#compareTo(java.nio.file.Path)
481:     String path2 = ((Webpath) other).path;
485:       if (i == path.length()) {
486:         return i2 == path2.length();
488:       if (i2 == path2.length()) {
491:       char c = path.charAt(i++);
493:         while (i < path.length() && path.charAt(i) == SEPARATOR) {
497:       char c2 = path2.charAt(i2++);
502:         while (i2 < path2.length() && path2.charAt(i2) == SEPARATOR) {
515:       for (int i = 0; i < path.length(); i++) {
516:         char c = path.charAt(i);
527:   /** Returns path as a string. */
530:     return path;
535:     return path.length();
540:     return path.charAt(index);
545:     return path.subSequence(start, end);
548:   /** Returns {@code true} if this path is an empty string. */
550:     return path.isEmpty();
553:   /** Returns list of path components, excluding slashes. */
559:             path.isEmpty() || isRoot()
561:                 : SPLITTER.splitToList(path));
37:  * is not formally implemented because it would not be desirable to have web paths accidentally
38:  * intermingle with file system paths.
40:  * <p>This implementation is almost identical to {@code sun.nio.fs.UnixPath}. The main difference is
122:   public Webpath getFileName() {
140:   public Webpath getParent() {
161:   public Webpath getRoot() {
181:     return new Webpath(JOINER.join(subList));
204:   public Webpath getName(int index) {
210:       return new Webpath(getParts().get(index));
221:   public Webpath normalize() {
276:     return new Webpath(result.toString());
284:   public Webpath resolve(Webpath other) {
301:   public Webpath resolveSibling(Webpath other) {
303:     Webpath parent = getParent();
308:   public Webpath lookup(Webpath reference) {
317:   public Webpath relativize(Webpath other) {
344:     return new Webpath(result.toString());
352:   public boolean startsWith(Webpath other) {
353:     Webpath me = removeTrailingSeparator();
379:   public boolean endsWith(Webpath other) {
380:     Webpath me = removeTrailingSeparator();
404:   public Webpath removeBeginningSeparator() {
409:   public Webpath addTrailingSeparator() {
414:   public Webpath removeTrailingSeparator() {
433:    * Compares two paths lexicographically for ordering.
438:   public int compareTo(Webpath other) {
478:     if (!(other instanceof Webpath) || hashCode() != other.hashCode()) {
android.googlesource.com/platform/gdk:samples/PhotoEditor/src/com/android/photoeditor/actions/ColorPath.java: [ master, ] java
30:     private final Path path;
37:     public Path path() {
27: public class ColorPath {
32:     public ColorPath(int color, Path path) {
22: import android.graphics.Path;
25:  * Colored path that could be painted on canvas.
34:         this.path = path;
38:         return path;
43:         canvas.drawPath(path, paint);
47:      * Creates a paint to draw color paths.
github.com/apache/incubator-hdt:org.apache.hdt.dfs.core/src/org/apache/hdt/dfs/core/DFSPath.java: [ master, ] java
45:   protected final Path path;
37: public abstract class DFSPath implements DFSContent {
61:   public DFSPath(DFSContentProvider provider, HadoopCluster location)
76:   protected DFSPath(DFSPath parent, Path path) {
134:   public Path getPath() {
29: import org.apache.hadoop.fs.Path;
35:  * DFS Path handling for DFS
55:    * Create a path representation for the given location in the given viewer
58:    * @param path
66:     this.path = new Path("/");
71:    * Create a sub-path representation for the given parent path
74:    * @param path
81:     this.path = path;
91:     if (path.equals("/")) {
95:       return this.path.getName();
104:       getDFS().delete(this.path, true);
109:           "Unable to delete file \"" + this.path + "\"\n" + e);
135:     return this.path;
47:   protected final DFSPath parent;
52:   static Logger log = Logger.getLogger(DFSPath.class.getName());
113:   public DFSPath getParent() {
127:    * Copy the DfsPath to the given local directory
github.com/GoogleCloudPlatform/datanucleus-appengine:testing/selenium-core/xpath/javascript-xpath-0.1.8.js: [ master, ] javascript
645: UnionExpr.prototype.path = function(path) {
673: PathExpr = function(filter) {
2755:     win.XPathExpression = function(expr) {
2773:     win.XPathResult = function (value, type) {
614:     union.path(expr);
619:             throw Error('missing next union location path');
621:         union.path(PathExpr.parse(lexer));
646:     this.paths.push(path);
648:     if (path.needContextPosition) {
651:     if (path.needContextNode) {
686:     var op, expr, path, token;
698:         path = new PathExpr(FilterExpr.root()); // RootExpr
704:         path.step(op, expr);
710:             path = new PathExpr(FilterExpr.context());
711:             path.step('/', expr);
716:             path = new PathExpr(expr);
725:         path.step(op, Step.parse(lexer));
728:     return path;
806:     t += indent + 'path:' + '\n';
1: /*  JavaScript-XPath 0.1.8
4:  *  JavaScript-XPath is freely distributable under the terms of an MIT-style license.
5:  *  For details, see the JavaScript-XPath web site: http://coderepos.org/share/wiki/JavaScript-XPath
24: if (window.jsxpath) {
25:     config = window.jsxpath;
57:                         && document.implementation.hasFeature("XPath", null));
74: var PathExpr;
600:     this.paths = [];
609:     expr = PathExpr.parse(lexer);
635:     var paths = this.paths;
637:     for (var i = 0, l = paths.length; i < l; i ++) {
638:         var exrs = paths[i].evaluate(ctx);
639:         if (!exrs.isNodeSet) throw Error('PathExpr must be nodeset');
660:     for (var i = 0; i < this.paths.length; i ++) {
661:         t += this.paths[i].show(indent);
668:  * class: PathExpr
670: if (!window.PathExpr && window.defaultConfig)
671:     window.PathExpr = null;
683: PathExpr.ops = { '//': 1, '/': 1 };
685: PathExpr.parse = function(lexer) {
731: PathExpr.prototype = new BaseExpr();
733: PathExpr.prototype.evaluate = function(ctx) {
786: PathExpr.prototype.step = function(op, step) {
803: PathExpr.prototype.show = function(indent) {
1013:             // fix for "xpath href with spaces" (http://jira.openqa.org/browse/SEL-347)   
2273:         return node.__jsxpath_id__ || (node.__jsxpath_id__ = this.uuid++);
2769:     win.XPathExpression.prototype.evaluate = function(node, type) {
2770:         return new win.XPathResult(this.expr.evaluate(new Ctx(node)), type);
2807:     win.XPathResult.prototype.iterateNext = function() { return this.nodes[this.index++] };
2808:     win.XPathResult.prototype.snapshotItem = function(i) { return this.nodes[i] };
2810:     win.XPathResult.ANY_TYPE = 0;
2811:     win.XPathResult.NUMBER_TYPE = 1;
2812:     win.XPathResult.STRING_TYPE = 2;
2813:     win.XPathResult.BOOLEAN_TYPE = 3;
2814:     win.XPathResult.UNORDERED_NODE_ITERATOR_TYPE = 4;
2815:     win.XPathResult.ORDERED_NODE_ITERATOR_TYPE = 5;
2816:     win.XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE = 6;
2817:     win.XPathResult.ORDERED_NODE_SNAPSHOT_TYPE = 7;
2818:     win.XPathResult.ANY_UNORDERED_NODE_TYPE = 8;
2819:     win.XPathResult.FIRST_ORDERED_NODE_TYPE = 9;
2823:         return new win.XPathExpression(expr, null);
github.com/google/haskell-indexer:third_party/kythe/kythe/java/com/google/devtools/kythe/analyzers/base/CorpusPath.java: [ master, ] java
23:   private final String corpus, root, path;
22: public final class CorpusPath {
25:   public CorpusPath(String corpus, String root, String path) {
47:   public String getPath() {
21: /** Path within a particular corpus and corpus root. */
28:     this.path = path;
32:    * Returns a new {@link CorpusPath} equivalent to the corpus/path/root subset of the given {@link
48:     return path;
35:   public static CorpusPath fromVName(VName vname) {
36:     return new CorpusPath(vname.getCorpus(), vname.getRoot(), vname.getPath());
github.com/google/kythe:kythe/java/com/google/devtools/kythe/analyzers/base/CorpusPath.java: [ master, ] java Duplicate result
github.com/apache/sling-org-apache-sling-models-api:src/main/java/org/apache/sling/models/annotations/injectorspecific/ResourcePath.java: [ master, ] java
43:     public String path() default "";
38: public @interface ResourcePath {
48:     public String[] paths() default {};
32:  * resource by path(s). The path may be either in the path/paths attribute or in a value map property with the given name.
37: @Source("resource-path")
41:      * Specifies the path of the resource. If not provided, the path is derived from the property name.
46:      * Specifies more than one path for the resource. If not provided, a single path is derived from the property name.
51:      * Specifies the name of the property containing the resource path. If empty or not set, then the name
github.com/bazelbuild/eclipse:java/com/google/devtools/bazel/e4b/classpath/BazelClasspathContainer.java: [ master, ] java
48:   private final IPath path;
15: package com.google.devtools.bazel.e4b.classpath;
60:   private boolean isSourcePath(String path) throws JavaModelException, BackingStoreException {
137:   private static IPath getJarIPath(File execRoot, String file) {
156:   public IPath getPath() {
45: public class BazelClasspathContainer implements IClasspathContainer {
52:   public BazelClasspathContainer(IPath path, IJavaProject project)
93:   private boolean isSourceInPaths(List<String> sources)
104:   public IClasspathEntry[] getClasspathEntries() {
125:   private IClasspathEntry[] jarsToClasspathEntries(Set<Jars> jars) {
20: import java.nio.file.Path;
55:     this.path = path;
61:     Path pp = new File(instance.getWorkspaceRoot().toString() + File.separator + path).toPath();
81:   private boolean matchPatterns(Path path, IPath[] patterns) {
85:         if (matcher.matches(path)) {
141:     File path = new File(execRoot, file);
142:     return org.eclipse.core.runtime.Path.fromOSString(path.toString());
157:     return path;
21: import java.nio.file.PathMatcher;
30: import org.eclipse.core.runtime.IPath;
63:     for (IClasspathEntry entry : project.getRawClasspath()) {
65:         IResource res = root.findMember(entry.getPath());
69:             IPath[] inclusionPatterns = entry.getInclusionPatterns();
83:       for (IPath p : patterns) {
84:         PathMatcher matcher = FileSystems.getDefault().getPathMatcher("glob:" + p.toOSString());
96:       if (isSourcePath(s)) {
117:       Activator.error("Unable to compute classpath containers entries.", e);
130:       entries[i] = JavaCore.newLibraryEntry(getJarIPath(execRoot, j.getJar()),
131:           getJarIPath(execRoot, j.getSrcJar()), null);
147:     return "Bazel Classpath Container";
31: import org.eclipse.jdt.core.IClasspathContainer;
32: import org.eclipse.jdt.core.IClasspathEntry;
64:       if (entry.getEntryKind() == IClasspathEntry.CPE_SOURCE) {
111:         if (!isSourceInPaths(s.getSources())) {
115:       return jarsToClasspathEntries(jars);
118:       return new IClasspathEntry[] {};
121:       return new IClasspathEntry[] {};
126:     IClasspathEntry[] entries = new IClasspathEntry[jars.size()];
gerrit.googlesource.com/plugins/maintainer:src/main/java/io/fd/maintainer/plugin/parser/ComponentPath.java: [ master, ] java
29:     private final String path;
27: public class ComponentPath {
31:     public ComponentPath(final String path) {
35:     public String getPath() {
89:     private MatchLevel matchPathsAsDirectChild(final String[] componentPath, final String[] matchedPath) {
32:         this.path = path;
36:         return path;
39:     public MatchLevel matchAgainst(final String path) {
41:         if (path == null) {
45:         MatchLevel matchLevel = this.path.equals(path)
51:             final int indexOfWildcard = this.path.indexOf("*");
54:                 final String wildcardLess = this.path.replace(this.path.substring(indexOfWildcard), "");
55:                 if (path.contains(wildcardLess)) {
56:                     matchLevel = this.path.equals(wildcardLess)
57:                             // if path does not have wildcard, its partial match
62:                     final int extensionStart = this.path.lastIndexOf(".");
63:                     final String componentExtension = extension(extensionStart, this.path);
67:                         if (-1 != extensionStart && extension(path).equals(componentExtension)) {
76:                 // not a wildcard path ,therefore attempts match it as direct child
77:                 final String[] componentPathParts = this.path.split("/");
78:                 final String[] matchedPathParts = path.split("/");
102:     private String extension(final int extensionStart, final String path) {
106:         return path.substring(extensionStart + 1);
109:     private String extension(final String path) {
110:         return extension(path.lastIndexOf("."), path);
116:                 "path='" + path + '\'' +
131:         return path != null
132:                 ? path.equals(that.path)
133:                 : that.path == null;
138:         return path != null
139:                 ? path.hashCode()
145:         WILDCARD_WITH_EXTENSION(3),// matches wildcarded path with extension for ex.: foo/bar/*.mk
146:         PARTIAL(2),// matches part of the path
147:         WILDCARD_ONLY(1),// matches wildcarded path for ex.: foo/bar/*
19: import static io.fd.maintainer.plugin.parser.ComponentPath.MatchLevel.FULL;
20: import static io.fd.maintainer.plugin.parser.ComponentPath.MatchLevel.NONE;
21: import static io.fd.maintainer.plugin.parser.ComponentPath.MatchLevel.PARTIAL;
22: import static io.fd.maintainer.plugin.parser.ComponentPath.MatchLevel.WILDCARD_ONLY;
23: import static io.fd.maintainer.plugin.parser.ComponentPath.MatchLevel.WILDCARD_WITH_EXTENSION;
90:         for (int i = 0; i < componentPath.length; i++) {
91:             if (componentPath[i].equals(matchedPath[i])) {
115:         return "ComponentPath{" +
129:         final ComponentPath that = (ComponentPath) o;
80:                 matchLevel = matchedPathParts.length - componentPathParts.length > 1
83:                         : matchPathsAsDirectChild(componentPathParts, matchedPathParts);
github.com/google/climb-tracker:climblib/src/main/java/fr/steren/climblib/Path.java: [ master, ] java
15: public class Path {
github.com/apache/sling-org-apache-sling-models-api:src/main/java/org/apache/sling/models/annotations/Path.java: [ master, ] java
33: public @interface Path {
36:     public String[] paths() default {};
27:  * Provide path(s) on an &#64;Inject. Not necessarily tied to the Resource Path injector (thus no
github.com/apache/directory-studio:plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java: [ master, ] java
41:     private IPath path;
38: public class PathEditorInput implements IPathEditorInput, ILocationProvider
49:     public PathEditorInput( IPath path )
109:     public IPath getPath()
123:     public IPath getPath( Object element )
34:  * This class defines an editor input based on the local file system path of a file.
40:     /** The path */
47:      * @param path the path
51:         this.path = path;
60:         if ( path != null )
62:             return path.toFile().exists();
88:         return PlatformUI.getWorkbench().getEditorRegistry().getImageDescriptor( path.toString() );
97:         if ( path != null )
99:             return path.toFile().getName();
111:         if ( path != null )
113:             return path;
148:         if ( path != null )
150:             return path.makeRelative().toOSString();
162:         if ( path != null )
164:             return path.hashCode();
176:         if ( path != null )
188:                 return path.equals( input.path );
24: import org.eclipse.core.runtime.IPath;
45:      * Creates a new instance of PathEditorInput.
125:         if ( element instanceof PathEditorInput )
127:             return ( ( PathEditorInput ) element ).getPath();
184:             if ( o instanceof PathEditorInput )
186:                 PathEditorInput input = ( PathEditorInput ) o;
27: import org.eclipse.ui.IPathEditorInput;
github.com/apache/tinkerpop:gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Path.java: [ master, ] java
41: public interface Path extends Cloneable, Iterable<Object> {
254:     public default Path subPath(final String fromLabel, final String toLabel) {
302:         public static IllegalArgumentException couldNotIsolatedSubPath(final String fromLabel, final String toLabel) {
294:         public static IllegalArgumentException couldNotLocatePathFromLabel(final String fromLabel) {
298:         public static IllegalArgumentException couldNotLocatePathToLabel(final String toLabel) {
35:  * A Path denotes a particular walk through a {@link Graph} as defined by a {@link Traversal}.
36:  * In abstraction, any Path implementation maintains two lists: a list of sets of labels and a list of objects.
44:      * Get the number of step in the path.
46:      * @return the size of the path
53:      * Determine if the path is empty or not.
55:      * @return whether the path is empty or not.
62:      * Get the head of the path.
64:      * @param <A> the type of the head of the path
65:      * @return the head of the path
72:      * Add a new step to the path with an object and any number of associated labels.
74:      * @param object the new head of the path
75:      * @param labels the labels at the head of the path
76:      * @return the extended path
78:     public Path extend(final Object object, final Set<String> labels);
81:      * Add labels to the head of the path.
83:      * @param labels the labels at the head of the path
84:      * @return the path with added labels
86:     public Path extend(final Set<String> labels);
89:      * Remove labels from path.
92:      * @return the path with removed labels
94:     public Path retract(final Set<String> labels);
97:      * Get the object associated with the particular label of the path.
98:      * If the path as multiple labels of the type, then return a {@link List} of those objects.
100:      * @param label the label of the path
102:      * @return the object associated with the label of the path
103:      * @throws IllegalArgumentException if the path does not contain the label
124:             throw Path.Exceptions.stepWithProvidedLabelDoesNotExist(label);
129:      * Pop the object(s) associated with the label of the path.
132:      * @param label the label of the path
134:      * @return the object associated with the label of the path
135:      * @throws IllegalArgumentException if the path does not contain the label
160:      * Get the object associated with the specified index into the path.
162:      * @param index the index of the path
164:      * @return the object associated with the index of the path
171:      * Return true if the path has the specified label, else return false.
174:      * @return true if the label exists in the path
181:      * An ordered list of the objects in the path.
183:      * @return the objects of the path
188:      * An ordered list of the labels associated with the path
189:      * The set of labels for a particular step are ordered by the order in which {@link Path#extend(Object, Set)} was called.
191:      * @return the labels of the path
196:     public Path clone();
199:      * Determines whether the path is a simple or not.
200:      * A simple path has no cycles and thus, no repeated objects.
202:      * @return Whether the path is simple or not
234:         if (!(other instanceof Path))
236:         final Path otherPath = (Path) other;
245:      * Isolate a sub-path from the path object. The isolation is based solely on the path labels.
246:      * The to-label is inclusive. Thus, from "b" to "c" would isolate the example path as follows {@code a,[b,c],d}.
247:      * Note that if there are multiple path segments with the same label, then its the last occurrence that is isolated.
250:      * @param fromLabel The label to start recording the sub-path from.
251:      * @param toLabel   The label to end recording the sub-path to.
252:      * @return the isolated sub-path.
258:             Path subPath = MutablePath.make();
270:                 throw Path.Exceptions.couldNotLocatePathFromLabel(fromLabel);
272:                 throw Path.Exceptions.couldNotLocatePathToLabel(toLabel);
279:                 throw Path.Exceptions.couldNotIsolatedSubPath(fromLabel, toLabel);
295:             return new IllegalArgumentException("Could not locate path from-label: " + fromLabel);
299:             return new IllegalArgumentException("Could not locate path to-label: " + toLabel);
303:             return new IllegalArgumentException("Could not isolate path because from comes after to: " + fromLabel + "->" + toLabel);
21: import org.apache.tinkerpop.gremlin.process.traversal.step.util.MutablePath;
239:                 filter(label -> !otherPath.hasLabel(label) || !otherPath.get(pop, label).equals(this.get(pop, label))).
282:                 subPath.extend(this.get(i), labels);
284:             return subPath;
github.com/apache/incubator-datafu:datafu-hourglass/src/main/java/datafu/hourglass/fs/DatePath.java: [ master, ] java
37:   private final Path path;
32: public class DatePath implements Comparable<DatePath>
44:   public DatePath(Date date, Path path)
51:   public Path getPath() { return this.path; }
53:   public static DatePath createDatedPath(Path parent, Date date)
58:   public static DatePath createNestedDatedPath(Path parent, Date date)
26: import org.apache.hadoop.fs.Path;
29:  * Represents a path and the corresponding date that is associated with it.
47:     this.path = path;
55:     return new DatePath(date,new Path(parent,PathUtils.datedPathFormat.format(date)));
60:     return new DatePath(date,new Path(parent,PathUtils.nestedDatedPathFormat.format(date)));
66:     return String.format("[date=%s, path=%s]",timestampFormat.format(this.date), this.path.toString());
81:     result = prime * result + ((path == null) ? 0 : path.hashCode());
102:     if (path == null)
104:       if (other.path != null)
107:     else if (!path.equals(other.path))
70:   public int compareTo(DatePath o)
94:     DatePath other = (DatePath) obj;
github.com/google/copybara:java/com/google/copybara/CheckoutPathAttributes.java: [ master, ] java
35:   private final Path path;
33: public class CheckoutPathAttributes {
38:   CheckoutPathAttributes(Path path, BasicFileAttributes attributes) {
24: import java.nio.file.Path;
32:     doc = "Represents a path attributes like size.")
39:     this.path = Preconditions.checkNotNull(path);
51:           String.format("File %s is too big to compute the size: %d bytes", path, size));
31: @SkylarkModule(name = "PathAttributes", category = SkylarkModuleCategory.BUILTIN,
github.com/google/copybara:java/com/google/copybara/CheckoutPath.java: [ master, ] java
48:   private final Path path;
44: public class CheckoutPath implements Comparable<CheckoutPath>, SkylarkValue{
51:   CheckoutPath(Path path, Path checkoutDir) {
70:   public String fullPath() {
30: import java.nio.file.Path;
41: @SkylarkModule(name = "Path",
43:     doc = "Represents a path in the checkout directory")
49:   private final Path checkoutDir;
52:     this.path = Preconditions.checkNotNull(path);
56:   private CheckoutPath create(Path path) throws FuncallException {
57:     return createWithCheckoutDir(path, checkoutDir);
60:   static CheckoutPath createWithCheckoutDir(Path relative, Path checkoutDir)
68:   @SkylarkCallable(name = "path", doc = "Full path relative to the checkout directory",
71:     return path.toString();
75:       doc = "Filename of the path. For foo/bar/baz.txt it would be baz.txt",
78:     return path.getFileName().toString();
81:   @SkylarkCallable(name = "parent", doc = "Get the parent path", structField = true,
84:     Path parent = path.getParent();
86:       // nio equivalent of new_path("foo").parent returns null, but we want to be able to do
88:       // to return the parent folder and another function resolve a path based on that.
89:       return path.toString().equals("")
91:           : create(path.getFileSystem().getPath(""));
97:       doc = "Constructs a relative path between this path and a given path. For example:<br>"
98:           + "    path('a/b').relativize('a/b/c/d')<br>"
102:               doc = "The path to relativize against this path"),
105:     return create(path.relativize(other.path));
109:       doc = "Resolve the given path against this path.",
112:               doc = "Resolve the given path against this path. The parameter"
113:                   + " can be a string or a Path.")})
116:       return create(path.resolve((String) child));
118:       return create(path.resolve(((CheckoutPath) child).path));
125:       doc = "Resolve the given path against this path.",
128:               doc = "Resolve the given path against this path. The parameter can be a string or"
129:                   + " a Path."),})
132:       return create(path.resolveSibling((String) other));
134:       return create(path.resolveSibling(((CheckoutPath) other).path));
144:       return new CheckoutPathAttributes(path,
145:           Files.readAttributes(checkoutDir.resolve(path), BasicFileAttributes.class));
147:       String msg = "Error getting attributes for " + path + ":" + e;
155:     return path.toString();
160:     return this.path.compareTo(o.path);
165:     printer.append(path.toString());
46:   private static final Logger logger = Logger.getLogger(CheckoutPath.class.getName());
63:       throw new FuncallException("Absolute paths are not allowed: " + relative);
65:     return new CheckoutPath(relative.normalize(), checkoutDir);
101:           @Param(name = "other", type = CheckoutPath.class,
104:   public CheckoutPath relativize(CheckoutPath other) throws FuncallException {
114:   public CheckoutPath resolve(Object child) throws FuncallException {
117:     } else if (child instanceof CheckoutPath) {
130:   public CheckoutPath resolveSibling(Object other) throws FuncallException {
133:     } else if (other instanceof CheckoutPath) {
159:   public int compareTo(CheckoutPath o) {
142:   public CheckoutPathAttributes attr() throws FuncallException {
github.com/foam-framework/foam:tools/genjava.js: [ master, ] javascript
23: var path = require('path');
38:     pathComponents
github.com/apache/incubator-milagro-mfa-sdk-android:mpinsdk/src/main/java/com/miracl/mpinsdk/storage/Storage.java: [ master, ] java
38:     private final String  path;
45:         path = isMpinType ? MPIN_STORAGE : USER_STORAGE;
54:             fos = context.openFileOutput(path, Context.MODE_PRIVATE);
81:             fis = context.openFileInput(path);
chromium.googlesource.com/chromium/src/third_party/WebKit/Source/devtools:scripts/lint_javascript.py: [ master, ] python
7: import os.path as path
35: def to_platform_path(filepath):
49: scripts_path = path.dirname(path.abspath(__file__))
50: devtools_path = path.dirname(scripts_path)
51: devtools_frontend_path = path.join(devtools_path, "front_end")
41: def to_platform_path_exact(filepath):
18:         print("Usage: %s [file|dir|glob]*" % path.basename(sys.argv[0]))
20:         print(" [file|dir|glob]*  Path or glob to run eslint on.")
60:         files_list = [devtools_frontend_path]
63:     eslintconfig_path = path.join(devtools_path, ".eslintrc.js")
64:     eslintignore_path = path.join(devtools_path, ".eslintignore")
66:         local_node.node_path(),
67:         local_node.eslint_path(),
69:         to_platform_path_exact(eslintconfig_path),
70:         "--ignore-path",
71:         to_platform_path_exact(eslintignore_path),
74:     eslint_proc = popen(exec_command, cwd=devtools_path)
37:         return filepath
38:     return re.sub(r"^/cygdrive/(\w)", "\\1:", filepath)
43:         return filepath
44:     output, _ = popen(["cygpath", "-w", filepath]).communicate()
github.com/google/FreeBuilder:src/test/java/org/inferred/freebuilder/processor/util/testing/TempJavaFileManager.java: [ master, ] java
71:     private final String path;
218:   private static String path(String packageName, String relativeName) {
67:       return new FileKey(location, path(packageName, relativeName));
73:     private FileKey(Location location, String path) {
75:       this.path = path;
83:       return path;
89:       fields.add("path", path);
github.com/googlei18n/sfntly:java/test/com/google/typography/font/sfntly/testutils/TestFont.java: [ master, ] java
39:     private String path;
32:   private static final String TESTDATA_PATH = "../data/testdata/";
41:     private TestFontNames(String path) {
42:       this.path = path;
46:       return new File(TESTDATA_PATH + path);
android.googlesource.com/platform/external/archive-patcher:shared/src/test/java/com/google/archivepatcher/shared/UnitTestZipEntry.java: [ master, ] java
29:   public final String path;
27:    * The path under which the data is located in the archive.
53:    * @param path the path under which the data is located in the archive
58:   public UnitTestZipEntry(String path, int level, String content, String comment) {
59:     this(path, level, true, content, comment);
64:    * @param path the path under which the data is located in the archive
69:   public UnitTestZipEntry(String path, int level, boolean nowrap, String content, String comment) {
70:     this.path = path;
android.googlesource.com/platform/external/chromium_org:ui/android/bitmap_format_java.target.darwin-arm64.mk: [ master, ] make
22: $(gyp_shared_intermediate_dir)/enums/bitmap_format_java/org/chromium/ui/gfx/BitmapFormat.java: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
18: $(gyp_shared_intermediate_dir)/enums/bitmap_format_java/org/chromium/ui/gfx/BitmapFormat.java: gyp_local_path := $(LOCAL_PATH)
48: LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
23: $(gyp_shared_intermediate_dir)/enums/bitmap_format_java/org/chromium/ui/gfx/BitmapFormat.java: $(LOCAL_PATH)/build/android/gyp/util/build_utils.py $(LOCAL_PATH)/build/android/gyp/java_cpp_enum.py $(LOCAL_PATH)/ui/gfx/android/java_bitmap.h $(GYP_TARGET_DEPENDENCIES)
25: 	$(hide)cd $(gyp_local_path)/ui/android; mkdir -p $(gyp_shared_intermediate_dir)/enums/bitmap_format_java/org/chromium/ui/gfx; python ../../build/android/gyp/java_cpp_enum.py "--output_dir=$(gyp_shared_intermediate_dir)/enums/bitmap_format_java" ../gfx/android/java_bitmap.h
20: $(gyp_shared_intermediate_dir)/enums/bitmap_format_java/org/chromium/ui/gfx/BitmapFormat.java: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
21: $(gyp_shared_intermediate_dir)/enums/bitmap_format_java/org/chromium/ui/gfx/BitmapFormat.java: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
android.googlesource.com/platform/external/chromium_org:ui/android/bitmap_format_java.target.darwin-arm.mk: [ master, ] make Duplicate result
github.com/google/u2f-ref-code:u2f-ref-code/java/src/com/google/u2f/tools/httpserver/servlets/StaticHandler.java: [ master, ] java
23:   private final String path;
25:   public StaticHandler(String mimeType, String path) {
27:     this.path = path;
33:       InputStream inputStream = new BufferedInputStream(new FileInputStream(path));
github.com/apache/karaf-boot:starters/plugin-api/src/main/java/org/apache/karaf/boot/plugin/api/Resource.java: [ master, ] java
6:     String path;
github.com/apache/karaf-cave:server/maven/src/main/java/org/apache/karaf/cave/server/maven/CaveMavenServlet.java: [ master, ] java
382:         private final String path;
517:     protected static String readMvnCoordsPath(File file) throws Exception {
568:     protected MavenCoord convertArtifactPathToCoord(String path) throws InvalidMavenArtifactRequest {
622:     protected MavenCoord convertMetadataPathToCoord(String path) throws InvalidMavenArtifactRequest {
27: import java.nio.file.Path;
79:     //The pattern below matches a path to the following:
86:     //The pattern bellow matches the path to the following:
283:         final String path = tpath;
287:         final ArtifactDownloadFuture future = new ArtifactDownloadFuture(path);
288:         ArtifactDownloadFuture masterFuture = requestMap.putIfAbsent(path, future);
296:                         File file = download(path);
316:                         LOGGER.info("Writing response for file : {}", path);
346:     public File download(String path) throws InvalidMavenArtifactRequest {
347:         if (path == null) {
351:         Matcher artifactMatcher = ARTIFACT_REQUEST_URL_REGEX.matcher(path);
352:         Matcher metadataMatcher = ARTIFACT_METADATA_URL_REGEX.matcher(path);
355:             LOGGER.info("Received request for maven metadata : {}", path);
357:                 MavenCoord coord = convertMetadataPathToCoord(path);
360:                 LOGGER.warn(String.format("Could not find metadata : %s due to %s", path, e.getMessage()), e);
364:             LOGGER.info("Received request for maven artifact : {}", path);
366:                 MavenCoord artifact = convertArtifactPathToCoord(path);
367:                 Path download = resolver.resolve(artifact.groupId, artifact.artifactId, artifact.classifier, artifact.type, artifact.version).toPath();
368:                 Path tmpFile = Files.createTempFile("mvn-", ".tmp");
372:                 LOGGER.warn(String.format("Could not find artifact : %s due to %s", path, e.getMessage()), e);
384:         private ArtifactDownloadFuture(String path) {
385:             this.path = path;
394:                 requestMap.remove(path);
416:             String path = request.getPathInfo();
417:             //Make sure path is valid
418:             if (path != null) {
419:                 if (path.startsWith("/")) {
420:                     path = path.substring(1);
423:             if (path == null || path.isEmpty()) {
432:                 result = upload(new File(location), path, response);
434:                 Path dir = tmpFolder.toPath().resolve(UUID.randomUUID().toString());
435:                 Path temp = dir.resolve(Paths.get(path).getFileName());
440:                 result = upload(temp.toFile(), path, response);
459:     protected boolean upload(File input, String path, HttpServletResponse response) throws InvalidMavenArtifactRequest, NoSuchFileException {
463:         if (path == null) {
466:         // root path, try reading mvn coords
467:         if (path.indexOf('/') < 0) {
477:                 LOGGER.warn(String.format("Failed to deploy artifact : %s due to %s", path, e.getMessage()), e);
482:         return install(input, path);
486:     private boolean install(File file, String path) {
487:         Matcher artifactMatcher = ARTIFACT_REQUEST_URL_REGEX.matcher(path);
488:         Matcher metadataMatcher = ARTIFACT_METADATA_URL_REGEX.matcher(path);
491:             LOGGER.info("Received upload request for maven metadata : {}", path);
493:                 MavenCoord coord = convertMetadataPathToCoord(path);
498:                 LOGGER.warn(String.format("Failed to upload metadata: %s due to %s", path, e.getMessage()), e);
503:             LOGGER.info("Received upload request for maven artifact : {}", path);
505:                 MavenCoord coord = convertArtifactPathToCoord(path);
510:                 LOGGER.warn(String.format("Failed to upload artifact : %s due to %s", path, e.getMessage()), e);
562:      * Converts the path of the request to maven coords.
564:      * @param path The request path, following the format: {@code <groupId>/<artifactId>/<version>/<artifactId>-<version>-[<classifier>].extension}
569:         if (path == null) {
570:             throw new InvalidMavenArtifactRequest("Cannot match request path to maven url, request path is empty.");
572:         Matcher pathMatcher = ARTIFACT_REQUEST_URL_REGEX.matcher(path);
616:      * Converts the path of the request to {@link MavenCoord}.
618:      * @param path The request path, following the format: {@code <groupId>/<artifactId>/<version>/<artifactId>-<version>-[<classifier>].extension}
623:         if (path == null) {
624:             throw new InvalidMavenArtifactRequest("Cannot match request path to maven url, request path is empty.");
626:         Matcher pathMatcher = ARTIFACT_METADATA_URL_REGEX.matcher(path);
28: import java.nio.file.Paths;
275:         String tpath = req.getPathInfo();
276:         if (tpath == null) {
280:         if (tpath.startsWith("/")) {
281:             tpath = tpath.substring(1);
469:                 String mvnCoordsPath = readMvnCoordsPath(input);
470:                 if (mvnCoordsPath != null) {
471:                     return install(input, mvnCoordsPath);
573:         if (pathMatcher.matches()) {
574:             String groupId = pathMatcher.group(1).replaceAll("/", ".");
575:             String artifactId = pathMatcher.group(2);
576:             String version = pathMatcher.group(3);
577:             String filename = pathMatcher.group(4);
627:         if (pathMatcher.matches()) {
629:             coord.groupId = pathMatcher.group(1).replaceAll("/", ".");
630:             coord.artifactId = pathMatcher.group(2);
631:             coord.version = pathMatcher.group(3);
632:             String type = pathMatcher.group(8);
github.com/apache/incubator-servicecomb-saga:saga-format/src/test/java/org/apache/servicecomb/saga/format/JacksonRestOperationTest.java: [ master, ] java
43:   private final String path = uniquify("path");
48:   private final JacksonRestOperation restOperation = new JacksonRestOperation(path, method, params);
58:     when(transport.with(eq(address), eq(path), eq(method), argumentCaptor.capture())).thenReturn(
github.com/apache/incubator-ratis:ratis-server/src/main/java/org/apache/ratis/server/storage/FileInfo.java: [ master, ] java
30:   private final Path path;
46:   public Path getPath() {
20: import java.nio.file.Path;
34:   public FileInfo(Path path, MD5Hash fileDigest) {
35:     this.path = path;
37:     this.fileSize = path.toFile().length();
42:     return path.toString();
45:   /** @return the path of the file. */
47:     return path;
android.googlesource.com/platform/packages/services/BuiltInPrintService:src/com/android/bips/discovery/DiscoveredPrinter.java: [ master, ] java
43:     public final Uri path;
42:     /** Resource path at which the print service can be reached */
53:      * @param path     Network path at which the printer is currently available
56:     public DiscoveredPrinter(Uri uuid, String name, Uri path, String location) {
59:         this.path = path;
66:         Uri uuid = null, path = null;
78:                 case "path":
79:                     path = Uri.parse(reader.nextString());
88:         if (printerName == null || path == null) {
89:             throw new IOException("Missing name or path");
93:         this.path = path;
99:      * from the path (if UUID is missing)
102:         return uuid != null ? uuid : path;
109:         return path.getHost().replaceAll(":[0-9]+", "");
112:     /** Return a generated printer ID based on uuid or (if uuid is missing) its path */
124:         writer.name("path").value(path.toString());
142:                 && Objects.equals(path, other.path)
151:         result = 31 * result + path.hashCode();
github.com/apache/activemq-protobuf:activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/JavaGenerator.java: [ trunk, ] java
44:     private File[] path = new File[]{new File(".")};
1708:     public File[] getPath() {
1712:     public void setPath(File[] path) {
164:             for (int i = 0; i < path.length && !file.exists(); i++) {
165:                 file = new File(path[i], imp);
1709:         return path;
1713:         this.path = path;
98:             errors.add("Failed to open: "+file.getPath()+":"+e.getMessage());
100:             errors.add("Failed to parse: "+file.getPath()+":"+e.getMessage());
138:             String packagePath = javaPackage.replace('.', '/');
139:             outputFile = new File(outputFile, packagePath);
153:             errors.add("Failed to write to: "+outputFile.getPath()+":"+e.getMessage());
180:                 errors.add("Failed to parse: "+file.getPath()+":"+e.getMessage());
182:                 errors.add("Failed to open: "+file.getPath()+":"+e.getMessage());
github.com/grpc/grpc:third_party/protobuf/java/compatibility_tests/v2.5.0/protos/src/proto/google/protobuf/descriptor.proto: [ master, ] protobuf
574:     repeated int32 path = 1 [packed=true];
520:   //   span   path               represents
532:   //   have an outer location whose path refers to the "extensions" repeated
534:   // - Multiple locations may have the same path.  This happens when a single
537:   //   extend blocks in the same scope, each of which will have the same path.
554:     // Each element is a field number or an index.  They form a path from
556:     // example, this path:
569:     // Thus, the above path gives the location of a field name.  If we removed
572:     // this path refers to the whole field declaration (from the beginning
github.com/grpc/grpc:third_party/protobuf/java/compatibility_tests/v2.5.0/more_protos/src/proto/google/protobuf/descriptor.proto: [ master, ] protobuf Duplicate result
github.com/grpc/grpc-node:packages/grpc-native-core/deps/grpc/third_party/protobuf/java/compatibility_tests/v2.5.0/protos/src/proto/google/protobuf/descriptor.proto: [ master, ] protobuf Duplicate result
github.com/grpc/grpc-node:packages/grpc-native-core/deps/grpc/third_party/protobuf/java/compatibility_tests/v2.5.0/more_protos/src/proto/google/protobuf/descriptor.proto: [ master, ] protobuf Duplicate result
chromium.googlesource.com/chromium/src/third_party:WebKit/Source/devtools/scripts/lint_javascript.py: [ master, ] python Duplicate result
github.com/apache/ant-antlibs-svn:src/main/org/apache/ant/svn/SvnEntry.java: [ master, ] java
116:     public static class Path {
133:         public Path(final String name, final char actionChar) {
151:         public Path(final String name, final int action) {
30:     private final ArrayList paths = new ArrayList();
64:     public void addPath(final String name, final char action) {
112:     public Path[] getPaths() {
60:      * Adds a path to the SvnEntry
61:      * @param path the path to add
65:         paths.add(new Path(name, action));
113:         return (Path[]) paths.toArray(new Path[paths.size()]);
51:                     final Collection paths) {
56:         this.paths.addAll(paths);
109:      * Gets the paths in this SvnEntry
github.com/apache/sling-org-apache-sling-query:src/test/java/org/apache/sling/query/ClosestTest.java: [ master, ] java
31: 	private static final String PATH = "application/configuration/labels/jcr:content/configParsys/tab_0/items/text";
37: 		SlingQuery query = $(tree.getChild(PATH)).closest("cq:Page");
43: 		SlingQuery query = $(tree.getChild(PATH)).closest("cq:Undefined");
github.com/spinnaker/orca:orca-pipelinetemplate/src/main/java/com/netflix/spinnaker/orca/pipelinetemplate/v1schema/model/StageDefinition.java: [ master, ] java
123:       String path;
126:       public String getPath() {
130:       public void setPath(String path) {
127:         return path;
131:         this.path = path;
github.com/apache/sling-org-apache-sling-distribution-avro-serializer:src/main/java/org/apache/sling/distribution/serialization/impl/avro/AvroShallowResource.java: [ master, ] java
30:   public java.lang.CharSequence path;
177:     private java.lang.CharSequence path;
112:   public java.lang.CharSequence getPath() {
120:   public void setPath(java.lang.CharSequence value) {
287:     public java.lang.CharSequence getPath() {
292:     public org.apache.sling.distribution.serialization.impl.avro.AvroShallowResource.Builder setPath(java.lang.CharSequence value) {
300:     public boolean hasPath() {
305:     public org.apache.sling.distribution.serialization.impl.avro.AvroShallowResource.Builder clearPath() {
23:   public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AvroShallowResource\",\"namespace\":\"org.apache.sling.distribution.serialization.impl.avro\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"valueMap\",\"type\":{\"type\":\"map\",\"values\":[\"int\",\"long\",\"float\",\"double\",\"string\",\"boolean\",\"bytes\",{\"type\":\"array\",\"items\":[\"int\",\"long\",\"float\",\"double\",\"string\",\"boolean\",\"bytes\"]}]}},{\"name\":\"path\",\"type\":[\"string\",\"null\"]},{\"name\":\"children\",\"type\":[{\"type\":\"array\",\"items\":\"AvroShallowResource\"},\"null\"]},{\"name\":\"resourceType\",\"type\":[\"string\",\"null\"]}]}");
46:   public AvroShallowResource(java.lang.CharSequence name, java.util.Map<java.lang.CharSequence,java.lang.Object> valueMap, java.lang.CharSequence path, java.util.List<org.apache.sling.distribution.serialization.impl.avro.AvroShallowResource> children, java.lang.CharSequence resourceType) {
49:     this.path = path;
60:     case 2: return path;
72:     case 2: path = (java.lang.CharSequence)value$; break;
110:    * Gets the value of the 'path' field.
113:     return path;
117:    * Sets the value of the 'path' field.
121:     this.path = value;
197:       if (isValidValue(fields()[2], other.path)) {
198:         this.path = data().deepCopy(fields()[2].schema(), other.path);
222:       if (isValidValue(fields()[2], other.path)) {
223:         this.path = data().deepCopy(fields()[2].schema(), other.path);
286:     /** Gets the value of the 'path' field */
288:       return path;
291:     /** Sets the value of the 'path' field */
294:       this.path = value;
299:     /** Checks whether the 'path' field has been set */
304:     /** Clears the value of the 'path' field */
306:       path = null;
367:         record.path = fieldSetFlags()[2] ? this.path : (java.lang.CharSequence) defaultValue(fields()[2]);
chromium.googlesource.com/chromium/codesearch:src/third_party/WebKit/Source/devtools/scripts/lint_javascript.py: [ master, ] python Duplicate result
github.com/apache/sling-org-apache-sling-scripting-sightly-compiler:src/main/java/org/apache/sling/scripting/sightly/impl/filter/URIManipulationFilter.java: [ master, ] java
37:     public static final String PATH = "path";
38:     public static final String APPEND_PATH = "appendPath";
39:     public static final String PREPEND_PATH = "prependPath";
69:         if ((expression.containsOption(SCHEME) || expression.containsOption(DOMAIN) || expression.containsOption(PATH) || expression
70:                 .containsOption(APPEND_PATH) || expression.containsOption(PREPEND_PATH) || expression.containsOption(SELECTORS) ||
78:             Map<String, ExpressionNode> uriOptions = getFilterOptions(expression, SCHEME, DOMAIN, PATH, APPEND_PATH, PREPEND_PATH,
github.com/google/patchfield:PatchfieldControl/src/com/noisepages/nettoyeur/patchfield/control/PatchView.java: [ master, ] java
198:     private final Path path = new Path();
31: import android.graphics.Path;
213:       path.reset();
222:           path.moveTo(x0, y0);
223:           path.cubicTo(x0, (y0 + y1) / 2, x1, (y0 + y1) / 2, x1, y1);
226:       canvas.drawPath(path, paint);
github.com/apache/sling-maven-jcrocm-plugin:src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java: [ master, ] java
58:     public static final String PATH = "path";
74:     private boolean isPath;
36:  *      path (true | false) &quot;false&quot;
119:         isPath = Boolean.valueOf(tag.getNamedParameter(PATH)).booleanValue();
140:         xmlWriter.printAttribute(PATH, isPath);
github.com/apache/activemq-protobuf:activemq-protobuf/src/main/java/org/apache/activemq/protobuf/compiler/AltJavaGenerator.java: [ trunk, ] java
42:     private File[] path = new File[]{new File(".")};
2397:     public File[] getPath() {
2401:     public void setPath(File[] path) {
161:             for (int i = 0; i < path.length && !file.exists(); i++) {
162:                 file = new File(path[i], imp);
2398:         return path;
2402:         this.path = path;
95:             errors.add("Failed to open: "+file.getPath()+":"+e.getMessage());
97:             errors.add("Failed to parse: "+file.getPath()+":"+e.getMessage());
135:             String packagePath = javaPackage.replace('.', '/');
136:             outputFile = new File(outputFile, packagePath);
150:             errors.add("Failed to write to: "+outputFile.getPath()+":"+e.getMessage());
177:                 errors.add("Failed to parse: "+file.getPath()+":"+e.getMessage());
179:                 errors.add("Failed to open: "+file.getPath()+":"+e.getMessage());
chromium.googlesource.com/arc/arc:third_party/android/external/chromium_org/ui/android/bitmap_format_java.target.darwin-arm.mk: [ master, ] make
24: $(gyp_shared_intermediate_dir)/templates/org/chromium/ui/gfx/BitmapFormat.java: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
20: $(gyp_shared_intermediate_dir)/templates/org/chromium/ui/gfx/BitmapFormat.java: gyp_local_path := $(LOCAL_PATH)
258: LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
19: # "{'inputs': ['../../build/android/gyp/util/build_utils.py', '../../build/android/gyp/gcc_preprocess.py', '../gfx/android/bitmap_config_list.h'], 'extension': 'template', 'outputs': ['$(gyp_shared_intermediate_dir)/templates/org/chromium/ui/gfx/%(INPUT_ROOT)s.java'], 'variables': {'output_path': '$(gyp_shared_intermediate_dir)/templates/org/chromium/ui/gfx/%(INPUT_ROOT)s.java'}, 'rule_name': 'generate_java_constants', 'rule_sources': ['java/BitmapFormat.template'], 'action': ['python', '../../build/android/gyp/gcc_preprocess.py', '--include-path=../..', '--output=$(gyp_shared_intermediate_dir)/templates/org/chromium/ui/gfx/%(INPUT_ROOT)s.java', '--template=$(RULE_SOURCES)'], 'message': 'Generating Java from cpp template $(RULE_SOURCES)'}":
25: $(gyp_shared_intermediate_dir)/templates/org/chromium/ui/gfx/BitmapFormat.java: $(LOCAL_PATH)/ui/android/java/BitmapFormat.template $(LOCAL_PATH)/build/android/gyp/util/build_utils.py $(LOCAL_PATH)/build/android/gyp/gcc_preprocess.py $(LOCAL_PATH)/ui/gfx/android/bitmap_config_list.h $(GYP_TARGET_DEPENDENCIES)
26: 	mkdir -p $(gyp_shared_intermediate_dir)/templates/org/chromium/ui/gfx; cd $(gyp_local_path)/ui/android; python ../../build/android/gyp/gcc_preprocess.py "--include-path=../.." "--output=$(gyp_shared_intermediate_dir)/templates/org/chromium/ui/gfx/BitmapFormat.java" "--template=java/BitmapFormat.template"
22: $(gyp_shared_intermediate_dir)/templates/org/chromium/ui/gfx/BitmapFormat.java: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
23: $(gyp_shared_intermediate_dir)/templates/org/chromium/ui/gfx/BitmapFormat.java: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
122: # Include paths placed before CFLAGS/CPPFLAGS
223: # Include paths placed before CFLAGS/CPPFLAGS
github.com/apache/ant-easyant-core:src/main/java/org/apache/easyant/core/report/ParameterType.java: [ master, ] java
23:     PATH, //
github.com/apache/incubator-netbeans-website-cleanup:src/content/kb/73/java/javase-deploy_ja.html: [ master, ] html
327:             <h3 class="tutorial"><a name="path"></a>PATH環境変数の設定 </h3>
49:                 <li><a href="#path">PATH環境変数の設定</a> </li>
210:                 <li>コマンド行から<tt>java</tt>バイナリのパスを指定しなくても済むように、PATH環境変数にJavaバイナリを追加します。<a href="#path">PATH環境変数の設定</a>を参照してください。</li>
233:                     このスクリプトでは、JavaバイナリがPATH環境変数に含まれていることを想定しています。このスクリプトが正しく動作しない場合は、<a href="#path">PATH環境変数の設定</a>を参照してください。
328:             システム上のJDKまたはJREの場所を指し示さないとシステム上でJavaクラスまたはJARファイルを実行できない場合は、システムの<tt>PATH</tt>変数の値の変更が必要である可能性があります。
329:             <p>Microsoft Windowsシステム上で実行している場合、PATH変数を設定するための手順は、使用しているWindowsのバージョンによって異なります。</p>
330:             <p>次の手順は、Windows XPシステム上で<tt>PATH</tt>変数を設定する場合を示しています。</p>
335:                 <li>ユーザー変数の一覧で、「<tt>PATH</tt>」を選択し、「編集」をクリックします。</li>
336:             <li>パスのリストの最後にJREの場所を追加します。このリスト内の場所はセミコロン(;)で区切られます。<br>たとえば、JREのある場所が<code>C:\Program Files\Java\jdk1.6.0_23</code>の場合、PATH変数の最後に次を追加します。
341:             <p>UNIXまたはLinuxシステム上で実行している場合、PATH変数を変更するための手順は、使用しているシェル・プログラムによって異なります。詳細は、使用しているシェルのドキュメントを参照してください。</p>
183:             <p class="notes"><strong>注意:</strong> アプリケーションがJDKに含まれているライブラリ以外の追加ライブラリに依存している場合は、配布にそれらのライブラリも含める必要があります(この例には該当しません)。これらのライブラリの相対パスは、IDEでアプリケーションを開発しているときにJARのマニフェスト・ファイルの<tt>classpath</tt>エントリに追加されます。起動時に、これらの追加ライブラリが指定されたクラスパス(つまり、相対パス)に見つからない場合、アプリケーションは起動されません。<br>アプリケーションのJARファイルとライブラリを含むzipアーカイブを作成し、このzipファイルをユーザーに提供します。このzipファイルを展開して、このJARファイルとライブラリのJARファイルが同じフォルダに存在することを確認するようユーザーに指示します。アプリケーションのJARファイルを実行します。 
247:                 set jarpath=&quot;dist/AnotherGrep.jar&quot;
253:                   java -jar %jarpath% %pattern% %files%

Took 866.874213ms for 47MB index data, 14212181 ngram matches, 201536 docs considered, 12776 docs (151MB) loaded, 179202 docs skipped